Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[noco.tv] TypeError: Unicode-objects must be encoded before hashing #3816
Comments
|
Still happening with 2014.09.22.1: [debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--netrc', '--prefer-ffmpeg', '--output', '%(title)s.%(ext)s', '--verbose', 'http://noco.tv/emission/14537/nolife/le-point-info/the-place-to-be-demain']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.09.22.1
[debug] Python version 3.4.1 - Linux-3.16.3-1-ck-i686-with-arch
[debug] Proxy map: {}
[Noco] Logging in as ianux
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 9, in <module>
load_entry_point('youtube-dl==2014.09.22.1', 'console_scripts', 'youtube-dl')()
File "/usr/lib/python3.4/site-packages/youtube_dl/__init__.py", line 430, in main
_real_main(argv)
File "/usr/lib/python3.4/site-packages/youtube_dl/__init__.py", line 420, in _real_main
retcode = ydl.download(all_urls)
File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 1067, in download
self.extract_info(url)
File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 524, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 180, in extract
return self._real_extract(url)
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/noco.py", line 86, in _real_extract
video_id, 'Downloading video JSON')
File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/noco.py", line 65, in _call_api
tk = hashlib.md5(hashlib.md5(ts).hexdigest() + '#8S?uCraTedap6a').hexdigest()
TypeError: Unicode-objects must be encoded before hashing |
|
Thanks for the report. This issue seems to be specific to Python 3. If you really need it, you might try running youtube-dl with Python 2 (2.6 or 2.7), until it is resolved, I think it should work (at least for this issue). |
|
Sorry, my bad. Should work in next version. Thanks for the report. |
|
Hey @naglis, feel free to fix if you catch anyone's bugs. |
|
Indeed it works with 2014.09.22.1 build against python 2. I will wait for f7d159c to be included in the next release to see if it works with python 3. |
|
I've just tested 2014.09.24.1 and it works with python 3. Great job! |
Still no joy since 7522976