twinone / gtst-downloader Goto Github PK
View Code? Open in Web Editor NEWHLS to mp4 Video downloader
HLS to mp4 Video downloader
I'm getting this traceback when running the script:
Traceback (most recent call last):
File "download.py", line 95, in <module>
content = urllib2.urlopen(url).read()
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 407, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 445, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request
I've already checked out the playlist files and everything, and the method appears to be working just fine. I tried Python3 as well, but it seems that various functions need to be updated first (e.g. print).
I was about to add a new issue about the output files which I was unable to find, but apparently the script stopped working overnight.
pi@raspberrypi ~/gtst-downloader $ ./download.py 88ccb525-4e3a-3153-97ee-5cef127ea666
UUID: 62e33936-b6fd-4086-8474-300930b5eb07
Date: Fri Sep 18 (2 days ago)
Resolution: 1280x720
Downloading 0 parts...
Traceback (most recent call last):
File "./download.py", line 110, in <module>
status, out, err = runprogram([DIR+"/parts.sh", ts_link, str(num_ts), WORK_DIR])
File "/home/pi/gtst-downloader/runprogram.py", line 10, in runprogram
proc = Popen(cmd, stdout=PIPE, stderr=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
raise child_exception
TypeError: execv() arg 2 must contain only strings
This is what I get on my RPi when I run the script. The UUID also doesn't change, it refers to an old episode of GTST. I've tried it on Windows, and the error appears to be the same:
C:\Users\John\Desktop\gtst-downloader-master>python download.py 88ccb525-4e3a-31
53-97ee-5cef127ea666
UUID: 62e33936-b6fd-4086-8474-300930b5eb07
Date: Fri Sep 18 (2 days ago)
Traceback (most recent call last):
File "download.py", line 95, in <module>
content = urllib2.urlopen(url).read()
File "C:\Program Files\Python 2.7.8\lib\urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "C:\Program Files\Python 2.7.8\lib\urllib2.py", line 410, in open
response = meth(req, response)
File "C:\Program Files\Python 2.7.8\lib\urllib2.py", line 523, in http_respons
e
'http', request, response, code, msg, hdrs)
File "C:\Program Files\Python 2.7.8\lib\urllib2.py", line 448, in error
return self._call_chain(*args)
File "C:\Program Files\Python 2.7.8\lib\urllib2.py", line 382, in _call_chain
result = func(*args)
File "C:\Program Files\Python 2.7.8\lib\urllib2.py", line 531, in http_error_d
efault
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request
C:\Users\John\Desktop\gtst-downloader-master>python download.py 88ccb525-4e3a-31
53-97ee-5cef127ea666
UUID: 62e33936-b6fd-4086-8474-300930b5eb07
Date: Fri Sep 18 (2 days ago)
Resolution: 1280x720
Downloading 0 parts...
Traceback (most recent call last):
File "download.py", line 111, in <module>
status, out, err = runprogram([DIR+"/parts.sh", ts_link, str(num_ts), WORK_D
IR])
File "C:\Users\John\Desktop\gtst-downloader-master\runprogram.py", line 10, in
runprogram
proc = Popen(cmd, stdout=PIPE, stderr=PIPE)
File "C:\Program Files\Python 2.7.8\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Program Files\Python 2.7.8\lib\subprocess.py", line 913, in _execute_
child
args = list2cmdline(args)
File "C:\Program Files\Python 2.7.8\lib\subprocess.py", line 616, in list2cmdl
ine
needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'bool' is not iterable
Starting out with fresh files, and only updating the manifest URL didn't help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.