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

Problem downloading from sankaku #1176

Closed
Fukitsu opened this issue Dec 13, 2020 · 9 comments
Closed

Problem downloading from sankaku #1176

Fukitsu opened this issue Dec 13, 2020 · 9 comments

Comments

@Fukitsu
Copy link

Fukitsu commented Dec 13, 2020

gallery-dl https://chan.sankakucomplex.com/?tags=slugbox --verbose
[gallery-dl][debug] Version 1.16.0
[gallery-dl][debug] Python 3.9.1 - Linux-4.14.117-perf-g2146d60-aarch64-with-libc
[gallery-dl][debug] requests 2.24.0 - urllib3 1.25.11
[gallery-dl][debug] Starting DownloadJob for 'https://chan.sankakucomplex.com/?tags=slugbox'
[sankaku][debug] Using SankakuTagExtractor for 'https://chan.sankakucomplex.com/?tags=slugbox'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): capi-v2.sankakucomplex.com:443
[urllib3.connectionpool][debug] https://capi-v2.sankakucomplex.com:443 "GET /posts/keyset?tags=slugbox&lang=en&limit=100 HTTP/1.1" 200 761030

--Downloaded 38 images then got the following error:--

[sankaku][error] An unexpected error occurred: TypeError - 'NoneType' object is not subscriptable. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[sankaku][debug]
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/gallery_dl/job.py", line 68, in run
for msg in self.extractor:
File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/gallery_dl/extractor/booru.py", line 32, in items
url = self._prepare_post(post, extended_tags)
File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/gallery_dl/extractor/sankaku.py", line 41, in _prepare_post
if url[0] == "/":
TypeError: 'NoneType' object is not subscriptable

@wankio
Copy link
Contributor

wankio commented Dec 15, 2020

Well, i'm just downloaded all, have no problems at all

@Fukitsu
Copy link
Author

Fukitsu commented Dec 15, 2020

Did you try with the same tag and did you provide login info?

@wankio
Copy link
Contributor

wankio commented Dec 16, 2020

yes, username and password, but i dont know it if work or not, or maybe now they are just censor it with guest

same tag, with full 2k pictures downloaded

@Fukitsu
Copy link
Author

Fukitsu commented Dec 16, 2020

Hmm, I was using it on my phone but on my PC it works fine, guess it's an issue with Termux

@Fukitsu Fukitsu closed this as completed Dec 16, 2020
mikf added a commit that referenced this issue Dec 17, 2020
e.g. for posts without a valid 'file_url' (#1176)
@mikf
Copy link
Owner

mikf commented Dec 17, 2020

Downloading posts tagged as 'contentious_content' is broken in version 1.16.0. (now fixed in 8d2e4e5 and 465015f, see #1182 (comment)).

This is definitely not Termux's fault. You might simply be using a version of gallery-dl older than 1.16.0 on your PC,

@KonoVitoDa
Copy link

Downloading posts tagged as 'contentious_content' is broken in version 1.16.0. (now fixed in 8d2e4e5 and 465015f, see #1182 (comment)).

Is this bug back?
I got this error when trying to download this post:

[sankaku][warning] Login required to download 'contentious_content' posts
[sankaku][info] No results for https://chan.sankakucomplex.com/post/show/5928163

@mikf
Copy link
Owner

mikf commented Jun 30, 2023

@vitormathews Granted, the warning is wrong, but your linked post is deleted.

@KonoVitoDa
Copy link

@vitormathews Granted, the warning is wrong, but your linked post is deleted.

Yes, I know haha. I just found this error message about the login strange, and I was afraid of it occurring in future downloads.

@mikf
Copy link
Owner

mikf commented Jun 30, 2023

OK, I've now changed the error to a hopefully better "Unable to download post 12345 (deleted)".
Downloading "contentious_content" posts when logged in with username and password still works just fine.

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

No branches or pull requests

4 participants