yasoob / watchcartoononline-dl

It is a cartoon downloader made in python. Just run this script and type in the url of the cartoons which you want to download from http://www.watchcartoononline.com/
The Unlicense
20 stars 10 forks source link

info_extractor function problem #3

Closed kristjanvariksoo closed 8 years ago

kristjanvariksoo commented 8 years ago

kix@KiXBoX:~/watchcartoononline-dl$ python watch-dl.py url ? http://www.watchcartoononline.com/pokemon-season-1-episode-2 Traceback (most recent call last): File "watch-dl.py", line 84, in final_url = info_extractor(url) File "watch-dl.py", line 24, in info_extractor return urllib.unquote(final_url[-1]).replace(' ','%20') IndexError: list index out of range kix@KiXBoX:~/watchcartoononline-dl$ python watch-dl.py url ? http://www.watchcartoononline.com/pokemon-season-1-episode-1 Traceback (most recent call last): File "watch-dl.py", line 84, in final_url = info_extractor(url) File "watch-dl.py", line 24, in info_extractor return urllib.unquote(final_url[-1]).replace(' ','%20') IndexError: list index out of range kix@KiXBoX:~/watchcartoononline-dl$

Just cloned this repo and just, couldn't get it to work. Not sure If this project is abandoned but, thought I would give writing a issue a shot.

corbin-auriti commented 8 years ago

My pull req fixes this issue, in the meantime, remove the extra comma on line 22: final_url = re.findall(r'file: "(.+?)",',
with

final_url = re.findall(r'file: "(.+?)"',

kristjanvariksoo commented 8 years ago

That appears to of have fixed my issue. Thanks for the help.