Code Monkey home page Code Monkey logo

Comments (8)

nicodoggie avatar nicodoggie commented on July 17, 2024 1

Looking at the /usr/bin/pixiv helper script in the arch package that loads the venv, it looks like the command line arguments aren't being passed onto PixivUtil2.py

Adding $@ to the end of each $HOME/.local/share/PixivUtil2/PixivUtil2.py call will fix it.

from pixivutil2.

nicodoggie avatar nicodoggie commented on July 17, 2024 1

Would this not be an issue for the arch package maintainer?

Most definitely. I suppose I wanted it to be on the record here, since I saw this thread before I tried to investigate myself. I fully intend to report it to the AUR maintainer.

from pixivutil2.

biggestsonicfan avatar biggestsonicfan commented on July 17, 2024 1

So can we close the issue? The issue was related to the AUR package and not PixivUtil2 itself, which has the command line arguments.

from pixivutil2.

biggestsonicfan avatar biggestsonicfan commented on July 17, 2024

I mean you can send it command line arguments to bypass the menus to get exactly what you want. PRs are welcome if you want to implement it, else gallery-dl does exactly what you're suggesting

from pixivutil2.

duarm avatar duarm commented on July 17, 2024

Guess we have a bug then?

Doesnt matter which command I run, I get the menu, I suspect the git error at beginning is the cause, I just ran the pixiv command after installing from AUR

[@USER]$ pixiv --help
error: cannot pull with rebase: You have unstaged changes.
error: Please commit or stash them.
┌──────────────────────────────────────────────────────────┐
│ PixivDownloader2 version 20230105                        │
│ https://github.com/Nandaka/PixivUtil2/releases           │
│ Donate at https://bit.ly/PixivUtilDonation               │
└──────────────────────────────────────────────────────────┘
Reading /home/USER/.local/share/PixivUtil2/config.ini ...
Configuration loaded.
Using default DB Path: /home/USER/.local/share/PixivUtil2/db.sqlite
Creating database... done.
Only process members where the last update is >= 7 days ago
Username login is broken, use cookie to log in.
Trying to log in with saved cookie
Logging in, return url: https://www.pixiv.net/en/
Login successful.
My User Id: xxxxxxxxx.
Premium User: False.
┌──────────────────────────────────────────────────────────┐
│ PixivDownloader2 version 20230105                        │
│ https://github.com/Nandaka/PixivUtil2/releases           │
│ Donate at https://bit.ly/PixivUtilDonation               │
└──────────────────────────────────────────────────────────┘
── Pixiv ───────────────────────────────────────────────────
 1.  Download by member_id
 2.  Download by image_id
 3.  Download by tags
...

Indeed the source was changed

On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   PixivUtil2.py

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        pixiv_venv/
        "123/"

PixivUtil2.py was given execute permission, restoring the file to HEAD we have this

.rw-r--r--  77k USER USER 16 Dec 00:41 PixivUtil2.py

My guess is that the script is not executable by default, and the AUR script tries to make it executable, which causes the git error at the beginning, PixivUtil2 drops whatever command it was given, and opens the menu

from pixivutil2.

duarm avatar duarm commented on July 17, 2024

Even after commiting everything to get rid of the error, it still always opens the menu, even with pixiv -h , maybe the aur script is broken

from pixivutil2.

biggestsonicfan avatar biggestsonicfan commented on July 17, 2024

@nicodoggie Would this not be an issue for the arch package maintainer?

from pixivutil2.

duarm avatar duarm commented on July 17, 2024

Totally, thanks for telling me @nicodoggie

from pixivutil2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.