Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error message instead of downloading #94

Closed
ByteEater-pl opened this issue Jun 1, 2021 · 4 comments
Closed

[BUG] Error message instead of downloading #94

ByteEater-pl opened this issue Jun 1, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@ByteEater-pl
Copy link

Basic information

  • Program version:
  • Python version: 3.9.5
  • Operating system: 5.12.2-1-MANJARO CSV Output for Data #1 SMP PREEMPT Fri May 7 17:53:15 UTC 2021 x86_64 GNU/Linux

Describe the bug

A long error message with page source is displayed.

Command/Code used

If running from the command line, provide the following:

  1. The command used (including the verbose tag, -v):
~/.local/bin/chat_downloader https://www.youtube.com/watch?v=redacted
  1. Output from the above command:
[INFO] Site: youtube.com
Traceback (most recent call last):
  File "/home/sandbox/.local/bin/chat_downloader", line 8, in <module>
    sys.exit(main())
  File "/home/sandbox/.local/lib/python3.9/site-packages/chat_downloader/cli.py", line 170, in main
    run(**args.__dict__)
  File "/home/sandbox/.local/lib/python3.9/site-packages/chat_downloader/chat_downloader.py", line 273, in run
    chat = downloader.get_chat(**chat_params)
  File "/home/sandbox/.local/lib/python3.9/site-packages/chat_downloader/chat_downloader.py", line 166, in get_chat
    info = self.sessions[site.__name__].get_chat(**params)
  File "/home/sandbox/.local/lib/python3.9/site-packages/chat_downloader/sites/youtube.py", line 1393, in get_chat
    return self.get_chat_by_video_id(match.group('id'), kwargs)
  File "/home/sandbox/.local/lib/python3.9/site-packages/chat_downloader/sites/youtube.py", line 1367, in get_chat_by_video_id
    initial_info = self._get_initial_video_info(video_id)
  File "/home/sandbox/.local/lib/python3.9/site-packages/chat_downloader/sites/youtube.py", line 906, in _get_initial_video_info
    raise ParsingError(
chat_downloader.errors.ParsingError: Unable to parse initial video data. <!doctype html><html lang="en" dir="ltr"><head><base href="https://consent.youtube.com/">

(truncated)

Expected behavior

I'd like the chat (with all message types, including bans, deleted ones and messages not showing in Topchat, only in the all messages view – I hope it's the default but the documentation doesn't specify it) to be downloaded.

Additional context/information

I ran it from a newly created Python virtual environment under a newly created user account for security reasons (I don't have the time now to carefully read the code before I run it; not an intended offense due to mistrust, and I hope none taken by you, it's just following good practices).

@ByteEater-pl ByteEater-pl added the bug Something isn't working label Jun 1, 2021
@ByteEater-pl ByteEater-pl changed the title [BUG] Title goes here [BUG] Error message instead of downloading Jun 7, 2021
@ByteEater-pl
Copy link
Author

I've just noticed:

including the verbose tag, -v

So please see the full output with -v attached.
stderr.txt

@krichbanana
Copy link
Contributor

Judging by the URL, this is the EU cookie consent page. See #85 and this youtube-dl commit: ytdl-org/youtube-dl@14f29f0

@xenova
Copy link
Owner

xenova commented Jun 30, 2021

Hi there 👋 This is next on the TODO list. Will provide an update as soon as possible :)

xenova added a commit that referenced this issue Jul 1, 2021
…tialization (Fixes #85, #94)

Thank you to @turbcool for bringing this issue up and providing a temporary fix for users.
@xenova
Copy link
Owner

xenova commented Jul 1, 2021

This has been fixed in the latest version 😃 (v0.1.1).

Let me know if you have any other questions 👍

@xenova xenova closed this as completed Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants