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

[Paheal] File extension is missing for some posts #4976

Closed
taskhawk opened this issue Dec 25, 2023 · 0 comments
Closed

[Paheal] File extension is missing for some posts #4976

taskhawk opened this issue Dec 25, 2023 · 0 comments

Comments

@taskhawk
Copy link

I don't know if this is related to the warning they are currently displaying in posts:

Some images are temporarily broken due to server migration.

But some posts are using a new CDN that uses image URLs without file extensions and thus the extension keyword ends up empty.

Examples (NSFW):

https://rule34.paheal.net/post/view/3067

>$ gallery-dl -K "https://rule34.paheal.net/post/view/3067"
[...]
extension
  
file_url
  https://r34i.paheal-cdn.net/51/a5/51a5bc74b512b47a955a40809c72fe8d
[...]

https://rule34.paheal.net/post/view/5393822

>$ gallery-dl -K "https://rule34.paheal.net/post/view/5393822"
[...]
extension
  jpg
file_url
  https://lotus.paheal.net/_images/2b33b95e1fc4d034c773354ccf697ef6/5393822%20-%20Christmas%20featured_image%20saagelius%20Santa_Claus.jpg
[...]

The usual URLs appear to be available on the Links (File Only & Backup Server) section of the page though, maybe they should be used instead.

The Info section has the extension data easily available too, but doesn't seem to be used for anything when extracted so it can't be used as an alternative in case extension from the filename is empty, like {extension|ext} or something. I also found a bug there, the end delimiter should be < instead of >.

dimensions, size, ext = extr("Info</th><td>", ">").split(" // ")

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

No branches or pull requests

2 participants