-
-
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
Kemonoparty: Very long links #2740
Comments
You can add this to your config.json to handle filenames for files from patreon or remove the
Result:
|
You can also use the same "technique" from #2740 (comment) to decide between "extractor": {
"kemonoparty": {
"filename": {
"len(filename) > 100": "{id}_{title}_{num:>02}_{hash}.{extension}",
"" : "{id}_{title}_{num:>02}_{filename}.{extension}"
}
}
} (
Fixed in 7c05058 |
Oh hey, that's pretty damn cool. That'll work for me! |
Just tested, works perfectly. Thanks for your help and for the fix on the extension! |
or you can trim the filename to 25 characters like this |
In some cases, the Kemonoparty links from Patreon end up being extremely long which can cause a couple of issues with the files downloaded.
An example of this would be: https://kemono.party/patreon/user/11975898/post/67500422
The image link in here: https://kemono.party/data/c2/6f/c26f722c64d01abd33529241ad8ee7ba119aad19d7a95b10a4e9f3f10425b5c8.jpg?f=https%3A//www.patreon.com/media-u/Z0FBQUFBQml5RUNfZFFHUXo4RVRvZUFOM3piM25VVzFnQ3FDR1d3Sm9pMEpWVmx3VzQwa0MzcTg5ZTNTWjFQNDE0Ul9xaXUwZTZxUkpSMHVkZndGT2FaYTBEOWFxZFRTbDkxR0htNlFRZEk0MEY3bnVqbUZOamJseUJPakNDWV8zeFlWeVJRc3dLdjVyb1JjWlVnTWxpeXJiaUFLd0c2MGg1ckFpQjZCN1JnazFueDZOMGtnZGZJTFZSV0owbFRJS2RRRURkMVFfdXVIRTQ0dXZpWjlvM0JVZWxPLUI3SUtFUT09
This ends up by default as: 67500422_Set B✧video -小惡魔荷官影片_01_Z0FBQUFBQml5RUNfZFFHUXo4RVRvZUFOM3piM25VVzFnQ3FDR1d3Sm9pMEpWVmx3VzQwa0MzcTg5ZTNTWjFQNDE0Ul9xaXUwZTZxUkpSMHVkZndGT2FaYTBEOWFxZFRTbDkxR0htNlFRZEk0MEY3bnVqbUZOamJseUJPakNDWV8zeFlWeVJR.jpg
Taking the filename variable from the end of the link.
Would there be any way to handle in these cases to use the filename from the first part: c26f722c64d01abd33529241ad8ee7ba119aad19d7a95b10a4e9f3f10425b5c8.jpg
If I run the URL through the -K option it gives:
extension
filename
Z0FBQUFBQml5RUNfZFFHUXo4RVRvZUFOM3piM25VVzFnQ3FDR1d3Sm9pMEpWVmx3VzQwa0MzcTg5ZTNTWjFQNDE0Ul9xaXUwZTZxUkpSMHVkZndGT2FaYTBEOWFxZFRTbDkxR0htNlFRZEk0MEY3bnVqbUZOamJseUJPakNDWV8zeFlWeVJRc3dLdjVyb1JjWlVnTWxpeXJiaUFLd0c2MGg1ckFpQjZCN1JnazFueDZOMGtnZGZJTFZSV0owbFRJS2RRRURkMVFfdXVIRTQ0dXZpWjlvM0JVZWxPLUI3SUtFUT09
Where the extension is empty.
It looks like the URL to the image works without the media link in it, e.g. https://data3.kemono.party/data/c2/6f/c26f722c64d01abd33529241ad8ee7ba119aad19d7a95b10a4e9f3f10425b5c8.jpg
I'm wondering if it might be easiest to split based on
?f=https
? Of course, better thoughts appreciated!The text was updated successfully, but these errors were encountered: