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

[YouTube] --wait-for-video should be able to stop retrying without access when a Private video is available #9816

Open
9 of 11 tasks
moomiji opened this issue Apr 29, 2024 · 0 comments
Labels
site-bug Issue with a specific website triage Untriaged issue

Comments

@moomiji
Copy link

moomiji commented Apr 29, 2024

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

Taiwan

Provide a description that is worded well enough to be understood

I've written a script for downloading live video after the live ending, and recently added the new parameter --wait-for-video 0.

Before starting the download, if the video has been set to Private video, it will keep retrying without access.

The behaviour I'd like is to stop retrying instead of keeping trying for a video that won't download.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

# ./yt-dlp_linux https://www.youtube.com/watch?v=7XcWhiPz57I -P ./Youtube --proxy http://127.0.0.1:7890 --wait-for-video 0 -vU
[debug] Command-line config: ['https://www.youtube.com/watch?v=7XcWhiPz57I', '-P', './Youtube', '--proxy', 'http://127.0.0.1:7890', '--wait-for-video', '0', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp-nightly-builds (linux_exe)
[debug] Python 3.11.9 (CPython x86_64 64bit) - Linux-5.10.0-21-amd64-x86_64-with (OpenSSL 3.1.4 24 Oct 2023)
[debug] exe versions: ffmpeg 4.3.5-0, ffprobe 4.3.5-0, phantomjs broken, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, secretstorage-3.3.3, sqlite3-3.44.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {'all': 'http://127.0.0.1:7890'}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp-nightly-builds)
[youtube] Extracting URL: https://www.youtube.com/watch?v=7XcWhiPz57I
[youtube] 7XcWhiPz57I: Downloading webpage
[youtube] 7XcWhiPz57I: Downloading ios player API JSON
[youtube] 7XcWhiPz57I: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from android clients (got player responses for video "aQvGIIdgFDM" instead of "7XcWhiPz57I")
WARNING: [youtube] Private video. Sign in if you've been granted access to this video
WARNING: Video should already be available according to extracted info
[wait] Waiting for 00:00:00 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=7XcWhiPz57I
[youtube] 7XcWhiPz57I: Downloading webpage
[youtube] 7XcWhiPz57I: Downloading ios player API JSON
[youtube] 7XcWhiPz57I: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from android clients (got player responses for video "aQvGIIdgFDM" instead of "7XcWhiPz57I")
WARNING: [youtube] Private video. Sign in if you've been granted access to this video
WARNING: Video should already be available according to extracted info
[wait] Waiting for 00:00:00 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=7XcWhiPz57I
[youtube] 7XcWhiPz57I: Downloading webpage
[youtube] 7XcWhiPz57I: Downloading ios player API JSON
[youtube] 7XcWhiPz57I: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from android clients (got player responses for video "aQvGIIdgFDM" instead of "7XcWhiPz57I")
WARNING: [youtube] Private video. Sign in if you've been granted access to this video
WARNING: Video should already be available according to extracted info
[wait] Waiting for 00:00:00 - Press Ctrl+C to try now
[wait] Wait period ended; Re-extracting data
[youtube] Extracting URL: https://www.youtube.com/watch?v=7XcWhiPz57I
[youtube] 7XcWhiPz57I: Downloading webpage
^C
ERROR: Interrupted by user
@moomiji moomiji added site-bug Issue with a specific website triage Untriaged issue labels Apr 29, 2024
@moomiji moomiji changed the title [YouTube] --wait-for-video should be able to stop retrying wihout access when a Private video is available [YouTube] --wait-for-video should be able to stop retrying without access when a Private video is available Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

1 participant