Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pixiv][info] No results for https://www.pixiv.net/ranking.php #6531

Open
OdinShiva opened this issue Nov 26, 2024 · 6 comments
Open

[pixiv][info] No results for https://www.pixiv.net/ranking.php #6531

OdinShiva opened this issue Nov 26, 2024 · 6 comments

Comments

@OdinShiva
Copy link

i typed:
gallery-dl -d ["{category}"-"{ranking[mode]}"-"{ranking[date]}"] "https://www.pixiv.net/ranking.php"

it shows:
[pixiv][info] No results for https://www.pixiv.net/ranking.php

@Hrxn
Copy link
Contributor

Hrxn commented Nov 26, 2024

Full verbose log? (run gallery-dl -v <URL>)

@OdinShiva
Copy link
Author

image
retried but shows as the pic
couldn't save to the folder like“pixiv-综合今日排行榜-20241127”

@OdinShiva
Copy link
Author

Full verbose log? (run gallery-dl -v <URL>)

can't make a repetition

@mikf
Copy link
Owner

mikf commented Nov 27, 2024

-d ["{category}"-"{ranking[mode]}"-"{ranking[date]}]"

couldn't save to the folder like“pixiv-综合今日排行榜-20241127”

-d does not support replacement fields.

You have to use directory settings in a config file or some unwieldy -o command-line option.

{
    "extractor": {
        "pixiv": {
            "ranking": {
                "directory": ["{category}", "{ranking[mode]}", "{ranking[date]}"]
            }
        }
    }
}
$ gallery-dl -o "directory=[\"{category}\", \"{ranking[mode]}\", \"{ranking[date]}\"]" https://www.pixiv.net/ranking.php
./pixiv/day/2024-11-26/124607066_p0.jpg
./pixiv/day/2024-11-26/124635058_p0.png
./pixiv/day/2024-11-26/124635058_p1.png
...

@OdinShiva
Copy link
Author

OdinShiva commented Nov 27, 2024

        "pixiv":
        {
            "directory": ["pixiv","{user[id]}_{user[name]}"],
            "filename": "{id}_p{num}_{title}.{extension}",
            "ranking": 
            {
                "directory": ["{category}", "{ranking[mode]}", "{ranking[date]}"],
                "filename": "r_{id}_p{num}_{title}.{extension}"
            },
            "refresh-token": null,
            "include": "artworks",
            "embeds": false,
            "metadata": false,
            "metadata-bookmark": false,
            "tags": "translated",
            "ugoira": true
        },

it works
but also one question
could i replace the "r" to data-rank,like this:"filename": "{data-rank}_{id}p{num}{title}.{extension}"
which word should i use
image

@mikf
Copy link
Owner

mikf commented Nov 28, 2024

could i replace the "r" to data-rank,like this:"filename": "{data-rank}_{id}p{num}{title}.{extension}"

79fd344 adds a {ranking[rank]} metadata field, which should reflect a work's rank.


The No results for https://www.pixiv.net/ranking.php "error" might be due to gallery-dl using UTC time instead of JST when automatically selecting yesterday's date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants