-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Subscribestar] adding date to folder path #2642
Comments
The way to format
What is the exact error you are getting and format strings your are using? |
Format
Error I use the same/similar format for patreon and fanbox, and they work fine The weird part is that it used to work |
What I think is happening is that gallery-dl fails to parse the date/time information of a post into a I haven't been able to find a post where this happens myself, so could you do a run with |
Plausible on the event of a site change.. |
This? |
That's what I meant, but this looks very much like a valid datetime object that does not cause any errors when applying a date format string to it. The format on subscribestar that gallery-dl tries to parse looks like I tried it with cookies on subscribestar.adult and any date there gets successfully parsed:
Does this only happen with specific accounts? If so, please post them so I can see what's different for them and adapt the code accordingly. |
This is all I have in my config for substar
This one gives me a format error This one works perfectly, cookies or not Perhaps it's the pinned post? |
$ cat config.json
{
"cookies": "/tmp/cookies-subscribestar-adult.txt",
"directory": ["{category}", "{author_name}", "{date:%Y}", "{date:%Y-%m}"],
"filename": "{post_id}_{num:>03}.{filename}.{extension}"
}
$ gallery-dl --ignore-config -c config.json https://subscribestar.adult/KelvinHiu
./gallery-dl/subscribestar/KelvinHiu/2022/2022-04/568238_001.q-9g5PVYM5EVpVujRR4UG1kwYAS_Dsf5rWR9kfVk-UqobjufXnBR8PbWkeeGtZCK7CMko-Da11fnlOvvYyVLbA==.jpg
./gallery-dl/subscribestar/KelvinHiu/2022/2022-04/568238_002.egMIX-akhoaSvFLRFqHD7N0_juqVbqvb8F1s7nx0OHHMeDQkCuR33NeoTEyebBAqOiH7SPa3ZZ2b7t35YQ99dg==.jpg
./gallery-dl/subscribestar/KelvinHiu/2022/2022-04/568238_003.ZWbU_rFq4E5R6HUQ_aqB5qahUHyHUpyV2E1yD0vDuc_n8Ax0jBhLIZ_GBZhxI7SQRaKe5indP7mz-QJDcIrydQ==.jpg
./gallery-dl/subscribestar/KelvinHiu/2022/2022-04/568238_004.BmAP7e8i8I1SfgMkEwHzp4WY3qEXDO7HHQ4qMEUsvjvzkVmq8dz6mjQCWKlLAn6iJHKGOwamMhfgKoVAXtKaoA==.jpg
./gallery-dl/subscribestar/KelvinHiu/2022/2022-04/568238_005.zkj0f5-MYPC4jAEhbB01npuD8Y3-YI90UnslcFNCtFUD14qBvJKveMa341J6JLKOr384h-lfpk-Q2QOHU5CA5g==.jpg
... I also do not see a pinned post for this profile. Maybe it's only visible to subscribers? As a last effort, you could run a failing URL with And as a workaround, conditional directory names: "directory": {
"type(date) == datetime": ["{category}", "{author_name}", "{date:%Y}", "{date:%Y-%m}"],
"" : ["{category}", "{author_name}", "no valid date ({date})"]
}, |
Dump Using two different accounts, it appears that some posts, albeit blurred, are still visible to unsubscribed users, weird. My past sub history to this creator might have something to do with it. The workaround works, though two posts were saved in folders outside the target directory, both were pinned posts
|
Handle instances where the actual datetime information is preceded by "Updated on "
Thanks for sticking around and helping me identify the problem. The old date-parsing code had a problem with the "Updated on" in front of the actual date. |
I remember using
["{date:%Y}", "{date:%Y-%m}"]
with success in the past, but it just started giving me invalid format errors recentlyI use the same format with other sites like patreon and fanbox, and it works without any problems
Does the subscribestar extractor use different strings for this?
The text was updated successfully, but these errors were encountered: