failed to download from tudou.com #116

Closed
weakish opened this Issue Feb 25, 2013 · 3 comments

Comments

Projects
None yet
2 participants

weakish commented Feb 25, 2013

You-Get 0.3.2

Got this error:

ValueError: max() arg is an empty sequence

For example:

you-get http://www.tudou.com/albumplay/0OYg2-sc5v8/7rGmt9lFzjA.html&lvt=8.344

Got:

 Traceback (most recent call last):
  File "/usr/local/bin/you-get", line 9, in <module>
    load_entry_point('you-get==0.3.2', 'console_scripts', 'you-get')()
  File "/usr/local/lib/python3.2/dist-packages/you_get/__main__.py", line 68, in main
    script_main('you-get', any_download, any_download_playlist)
  File "/usr/local/lib/python3.2/dist-packages/you_get/common.py", line 667, in       script_main
   download_main(download, download_playlist, args, playlist, output_dir, merge, info_only)
   File "/usr/local/lib/python3.2/dist-packages/you_get/common.py", line 587, in download_main
   download(url, output_dir = output_dir, merge = merge, info_only = info_only)
   File "/usr/local/lib/python3.2/dist-packages/you_get/__main__.py", line 61, in any_download
    m.download(url, output_dir = output_dir, merge = merge, info_only = info_only)
   File "/usr/local/lib/python3.2/dist-packages/you_get/downloader/tudou.py", line 42, in tudou_download
      tudou_download_by_iid(iid, title, output_dir = output_dir, merge = merge, info_only = info_only)
    File "/usr/local/lib/python3.2/dist-packages/you_get/downloader/tudou.py", line 15, in tudou_download_by_iid
      url = max(urls, key = lambda x:x[0])[1]
   ValueError: max() arg is an empty sequence
Owner

soimort commented Feb 25, 2013

This video can only be accessed from mainland China.

Please make sure you're not using You-Get from an oversea IP address. (like a proxy or VPN something)

soimort closed this Feb 25, 2013

Owner

soimort commented Feb 25, 2013

Using a mainland IP address, I got the same error. Will fix that soon.

soimort reopened this Feb 25, 2013

soimort closed this in 12987f8 Feb 25, 2013

Owner

soimort commented Feb 25, 2013

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment