ltsdw / gofile-downloader

Download files from https://gofile.io
GNU General Public License v3.0
140 stars 36 forks source link

Error after downloading 42 of 210 #6

Closed undecidedm8 closed 2 years ago

undecidedm8 commented 2 years ago

Why would this be happening?

Traceback (most recent call last): File "D:\potat0\Downloads\gofile-downloader-main\gofile-downloader.py", line 218, in <module> Main(url=url, password=password)

File "D:\potat0\Downloads\gofile-downloader-main\gofile-downloader.py", line 54, in __init__ self._threadedDownloads()

File "D:\potat0\Downloads\gofile-downloader-main\gofile-downloader.py", line 65, in _threadedDownloads for link in self._getLinks(self._url, self._password):

File "D:\potat0\Downloads\gofile-downloader-main\gofile-downloader.py", line 193, in _getLinks yield content["link"] KeyError: 'link'

ltsdw commented 2 years ago

Basically it's telling that for whatever reason, it couldn't get the download link for that item in specifics.

I was planning getting better error messages and tunable number of parallel downloads, but my notebook died.

you can try opening the gofile-downloader.py and changing the max_workers from this line

def __init__(self, url: str, password: str | None = None, max_workers: int = 5) -> None:

from 5 to 1, or maybe if doesn't work try changing from 5 to a greater number.

undecidedm8 commented 2 years ago

Changing the workers from 5 to 1 fixed it. Thank you so much. I would have never thought to change this