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.
Youtube-dl not working when using with config file #22547
Comments
|
You have non-ASCII in your cookie file. |
|
oh thank, the problem caused by new cookies file, i have to save it from utf8 into ansi |
youtube-dl version : 2019.09.28 (both pip/exe)
config.txt or youtube-dl.conf, everytime i'm running youtube-dl (pip or released .exe version). both have error.
C:\Users\GEN32UC>youtube-dl Traceback (most recent call last): File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\GEN32UC\AppData\Local\Programs\Python\Python37\Scripts\youtube-dl.exe\__main__.py", line 9, in <module> File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\__init__.py", line 474, in main _real_main(argv) File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\__init__.py", line 441, in _real_main with YoutubeDL(ydl_opts) as ydl: File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\YoutubeDL.py", line 418, in __init__ self._setup_opener() File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\YoutubeDL.py", line 2328, in _setup_opener self.cookiejar.load(ignore_discard=True, ignore_expires=True) File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\youtube_dl\utils.py", line 2748, in load for line in f: File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 532: character maps to <undefined>If i'm remove config file, it running.