Giter Club home page Giter Club logo

gtst-downloader's People

Contributors

twinone avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lzpfmh wfxiang08

gtst-downloader's Issues

HTTPerror with Python2

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).

UUID not correctly displayed

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.