mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.69k stars 954 forks source link

[paheal] ':' URLs are not supported/enabled #2892

Closed AlttiRi closed 2 years ago

AlttiRi commented 2 years ago

For https://rule34.paheal.net/post/view/3864982 it prints the ':' URLs are not supported/enabled error.

$ gallery-dl "https://rule34.paheal.net/post/view/3864982" -v
[gallery-dl][debug] Version 1.23.1-dev
[gallery-dl][debug] Python 3.9.13 - Windows-10
[gallery-dl][debug] requests 2.28.1 - urllib3 1.26.12
[gallery-dl][debug] Starting DownloadJob for 'https://rule34.paheal.net/post/view/3864982'
[paheal][debug] Using PahealPostExtractor for 'https://rule34.paheal.net/post/view/3864982'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): rule34.paheal.net:443
[urllib3.connectionpool][debug] https://rule34.paheal.net:443 "GET /post/view/3864982 HTTP/1.1" 200 6676
[download][error] ':' URLs are not supported/enabled
[download][error] Failed to download
AlttiRi commented 2 years ago

Looks working.


Just another question — is --dump-json working as a planned?

For me the result of it looks strange. Checked with paheal, pixiv, safebooru, sankaku.

For example, the result of --write-info-json looks fine.

BTW, it also does download the content and using of --write-info-json --no-skip --no-download --simulate does not help (while it's the suggestion from https://github.com/mikf/gallery-dl/issues/2302). I just get the empty object in info.json.

mikf commented 2 years ago

Just another question — is --dump-json working as a planned?

It works as expected in that it dumps the raw extractor results as a single JSON list to stdout.

The output of a metadata post processor with "filename": "-" might be more useful, but there are several years of development between when --dump-json got implemented and that.

BTW, it also does download the content and using of --write-info-json --no-skip --no-download --simulate does not help (while it's the suggestion from #2302). I just get the empty object in info.json.

What do mean? --no-download as well as --simulate prevents gallery-dl from actually downloading any files. --write-info-json on the other hand will always write its results to disk.

You have to manually specify a post processor with the right options if you want it to dump its results to stdout.

AlttiRi commented 2 years ago

I just wanted to get one time json for tests.

--write-info-json --simulate does not creates info.json.

--write-info-json --no-download creates an empty info.json.

Oh, wait. I, probably, did something wrong that time.

--write-info-json --no-download works fine. It does that I want. Sorry to bother.


Yeah, you also even already mentioned it in https://github.com/mikf/gallery-dl/issues/2302#issuecomment-1039144933