[DEBUG] Python version: 3.12.0 (main, Nov 21 2023, 17:49:02) [GCC 12.2.0]
[DEBUG] Program version: 0.2.8
[DEBUG] Initialisation parameters: {'headers': None, 'cookies': '/app/cookies.txt', 'proxy': None}
[DEBUG] Created YouTubeChatDownloader session.
Traceback (most recent call last):
File "/usr/local/bin/chat_downloader", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.12/site-packages/chat_downloader/cli.py", line 194, in main
run(**args.__dict__)
File "/usr/local/lib/python3.12/site-packages/chat_downloader/chat_downloader.py", line 351, in run
chat = downloader.get_chat(**chat_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/chat_downloader/chat_downloader.py", line 208, in get_chat
self.create_session(site)
File "/usr/local/lib/python3.12/site-packages/chat_downloader/chat_downloader.py", line 304, in create_session
self.sessions[session_name] = chat_downloader_class(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/chat_downloader/sites/youtube.py", line 62, in __init__
self._initialize_consent()
File "/usr/local/lib/python3.12/site-packages/chat_downloader/sites/youtube.py", line 1369, in _initialize_consent
if socs and not socs.value.startswith('CAA'): # not consented
^^^^^^^^^^
AttributeError: 'str' object has no attribute 'value'
Expected behavior
Adding cookies file does not seem to work with consent, with the string not seemingly working at all. SOCS cookies does appear to be within the cookies file being accessed.
Additional context/information
Cookies file (values replaces with random, but SOCS is there in the cookies). The export from the cookies.txt extension was edited by yt-dlp to produce the file below.
Basic information
Describe the bug
A clear and concise description of what the bug is.
Command/Code used
If running from the command line, provide the following:
-v
):Expected behavior
Adding cookies file does not seem to work with consent, with the string not seemingly working at all. SOCS cookies does appear to be within the cookies file being accessed.
Additional context/information
Cookies file (values replaces with random, but SOCS is there in the cookies). The export from the cookies.txt extension was edited by yt-dlp to produce the file below.