mikf / gallery-dl

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

ValueError when downloading from bunkr #4669

Closed PigeonCometh closed 8 months ago

PigeonCometh commented 8 months ago

C:\WINDOWS\system32>gallery-dl https://bunkrr.su/a/CA2xbk7I --verbose [gallery-dl][debug] Version 1.25.6 [gallery-dl][debug] Python 3.10.6 - Windows-10-10.0.19045-SP0 [gallery-dl][debug] requests 2.31.0 - urllib3 2.0.3 [gallery-dl][debug] Configuration Files [] [gallery-dl][debug] Starting DownloadJob for 'https://bunkrr.su/a/CA2xbk7I' [bunkr][debug] Using BunkrAlbumExtractor for 'https://bunkrr.su/a/CA2xbk7I' [urllib3.connectionpool][debug] Starting new HTTPS connection (1): bunkrr.su:443 [bunkr][debug] HTTPSConnectionPool(host='bunkrr.su', port=443): Read timed out. (read timeout=30) (1/5) [bunkr][debug] Sleeping 1.00 seconds (retry) [urllib3.connectionpool][debug] Starting new HTTPS connection (2): bunkrr.su:443 [bunkr][debug] HTTPSConnectionPool(host='bunkrr.su', port=443): Read timed out. (read timeout=30) (2/5) [bunkr][debug] Sleeping 2.00 seconds (retry) [urllib3.connectionpool][debug] Starting new HTTPS connection (3): bunkrr.su:443 [urllib3.connectionpool][debug] https://bunkrr.su:443 "GET /a/CA2xbk7I HTTP/1.1" 200 None [urllib3.connectionpool][debug] https://bunkrr.su:443 "GET /d/Tq3xAR0yWaI3T HTTP/1.1" 200 None [bunkr][error] An unexpected error occurred: ValueError - substring not found. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues . [bunkr][debug] Traceback (most recent call last): File "C:\Python310\lib\site-packages\gallery_dl\job.py", line 96, in run for msg in extractor: File "C:\Python310\lib\site-packages\gallery_dl\extractor\lolisafe.py", line 56, in items files, data = self.fetch_album(self.album_id) File "C:\Python310\lib\site-packages\gallery_dl\extractor\bunkr.py", line 84, in fetch_album cdn = cdn[:cdn.index("/", 8)] ValueError: substring not found

Any ideas as to what is missing?

Hrxn commented 8 months ago

Outdated version of gallery-dl..

PigeonCometh commented 8 months ago

I've tried updating through the following:

python3 -m pip install -U gallery-dl

Still getting the same ValueError though

mikf commented 8 months ago

Try py -m gallery_dl https://bunkrr.su/a/CA2xbk7I

You have multiple gallery-dl versions on your system. where gallery-dl should find them.

PigeonCometh commented 8 months ago

it worked, thanks! I was only able to find one location with the where function though

mikf commented 8 months ago

Try searching for "gallery_dl" or "gallery-dl" then. You at least have a gallery_dl v1.25.6 module for Python 3.10.6 with an associated .exe file (that's what runs when you run gallery-dl in cmd and what where found), and another up-to-date module for a different Python version (this runs with py -m gallery_dl)