gallery-dl icon indicating copy to clipboard operation
gallery-dl copied to clipboard

blogger & original filenames

Open PowerWasher9000 opened this issue 2 years ago • 4 comments

{filename} used to work properly with blogger, but all I get now are a bunch of gibberish is it still possible after the image domain change?

PowerWasher9000 avatar Mar 21 '22 19:03 PowerWasher9000

I have checked some blogspot URLs. It works as usual.

But there is one thing, I think it makes sense to use decodeURIComponent on {filename}. For example, to convert %28%26%29 to (&).

AlttiRi avatar Mar 22 '22 15:03 AlttiRi

Images served through *.bp.blogspot.com works, but newer images now have blogger.googleusercontent in the URL, those are the ones that don't save with their original filenames

PowerWasher9000 avatar Mar 23 '22 17:03 PowerWasher9000

blogger.googleusercontent files have their original filename in their Content-Disposition headers:

$ wget --debug https://blogger.googleusercontent.com/img/a/AVvXsEihp_z6O9Gh5NJwBgMCTWlWWWqGmhhYVTBwrzo5ndN5U0A6bFhOVkvM1ACz5Zmmzf-Pk10h-jbqWsvcxb8M23nQBACRA3y88mZKuLJz81ffk_aS4oaSOLD583-AJGOHJAWgcIm-84i7RQRN8tNQ2fhl5zh7bEAV0EdTWUitXUPR24tsqInm613xm6ZrUg=s0
...
Content-Disposition: inline;filename="Blog End (1).jpg"

Accessing them is not yet supported.

mikf avatar Mar 24 '22 10:03 mikf

It works now with {filename}, i just tried.

afterdelight avatar Sep 18 '22 21:09 afterdelight