yt-dlp: [Youtube] Downloading infinite pages for channel
Checklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
- I’ve searched known issues, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
Provide a description that is worded well enough to be understood
This started around 6/27/25. The latest version of yt-dlp, when downloading a channel on youtube, will get stuck in an infinite loop downloading “pages” of videos (page might have 250 videos, but yt-dlp will keep going even after page 4,000) This seems to come & go for the same channel! I don’t know if Youtube is randomly turning on “infinite scroll” or what.
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': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
matthew@nuclear:~/programs/videos$ ./military.bat
[debug] Command-line config: ['--verbose', '-f', 'bestvideo[height<=720]+bestaudio/best[height<=720]', '-i', '--download-archive', 'militarysummary.txt', 'https://www.youtube.com/@militarysummary/videos']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2025.06.25 from yt-dlp/yt-dlp [1838a1ce5] (zip)
[debug] Python 3.13.2 (CPython x86_64 64bit) - Linux-6.11.0-28-generic-x86_64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39)
[debug] exe versions: ffmpeg 6.1.1 (setts), ffprobe 6.1.1
[debug] Optional libraries: certifi-2025.04.26, curl_cffi-0.10.0, secretstorage-3.3.3, sqlite3-3.45.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, curl_cffi
[debug] Plugin directories: none
[debug] Loaded 1860 extractors
[debug] Loading archive file 'militarysummary.txt'
[youtube:tab] Extracting URL: https://www.youtube.com/@militarysummary/videos
[youtube:tab] @militarysummary/videos: Downloading webpage
[debug] [youtube:tab] Selected tab: 'videos' (videos), Requested tab: 'videos'
[download] Downloading playlist: Military Summary - Videos
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 1: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 2: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 3: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 4: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 5: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 6: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 7: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 8: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 9: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 10: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 11: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 12: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 13: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 14: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 15: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 16: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 17: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 18: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 19: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 20: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 21: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 22: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 23: Downloading API JSON
[youtube:tab] UCUnc496-PPmFZVKlYxUnToA page 24: Downloading API JSON
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 10
- Comments: 22 (7 by maintainers)
As a workaround, instead of the videos tab URL you could try using the channel’s uploads playlist URL:
Confirmed to be a bug on Youtube’s end: https://support.google.com/youtube/thread/354133210/youtube-videos-looping-on-channel-pages
This works for me! Just replace the channel’s original ID prefix
UCwithUU.For example, change
UCpDJl2EmP7Oh90Vylx0dZtAtoUUpDJl2EmP7Oh90Vylx0dZtA: https://www.youtube.com/playlist?list=UUpDJl2EmP7Oh90Vylx0dZtAYep, that’s why it’s a mere workaround instead of a proper solution.
(you may need to change double-quotes
"to single-quotes'depending on your shell and if it interprets!)To get the user uploads playlist URL from a known
@handlechannel URL: