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

[polskieradio] Download skips first nine files in playlist. #8419

Closed
9 of 11 tasks
mrto opened this issue Oct 23, 2023 · 3 comments · Fixed by #8459
Closed
9 of 11 tasks

[polskieradio] Download skips first nine files in playlist. #8419

mrto opened this issue Oct 23, 2023 · 3 comments · Fixed by #8459
Labels
site-bug Issue with a specific website

Comments

@mrto
Copy link

mrto commented Oct 23, 2023

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

No response

Provide a description that is worded well enough to be understood

The download starts from the 10th file in the playlist. Skip the first 9.

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

[debug] Command-line config: ['-vU', '--max-downloads', '1', 'https://trojka.polskieradio.pl/audycja/6568']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.10.13 [b634ba742] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, sqlite3-3.35.5, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1890 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.10.13, Current version: stable@2023.10.13
Current Build Hash: 13d6a04ef6678dc61cb6e2d42eb53e69486bd2f52b8e5d778db029ccd4c600b4
yt-dlp is up to date (stable@2023.10.13)
[polskieradio:audition] Extracting URL: https://trojka.polskieradio.pl/audycja/6568
[polskieradio:audition] 6568: Downloading webpage
[download] Downloading playlist: AnagrammarganA
[polskieradio:audition] 6568: Downloading article list page 1
[polskieradio:audition] 6568: Downloading article list page 2
[polskieradio:audition] 6568: Downloading article list page 3
[polskieradio:audition] 6568: Downloading article list page 4
[polskieradio:audition] 6568: Downloading article list page 5
[polskieradio:audition] 6568: Downloading article list page 6
[polskieradio:audition] 6568: Downloading article list page 7
[polskieradio:audition] 6568: Downloading article list page 8
[polskieradio:audition] 6568: Downloading article list page 9
[polskieradio:audition] 6568: Downloading article list page 10
[polskieradio:audition] 6568: Downloading article list page 11
[polskieradio:audition] 6568: Downloading article list page 12
[polskieradio:audition] 6568: Downloading article list page 13
[polskieradio:audition] 6568: Downloading article list page 14
[polskieradio:audition] 6568: Downloading article list page 15
[polskieradio:audition] 6568: Downloading article list page 16
[polskieradio:audition] 6568: Downloading article list page 17
[polskieradio:audition] 6568: Downloading article list page 18
[polskieradio:audition] 6568: Downloading article list page 19
[polskieradio:audition] 6568: Downloading article list page 20
[polskieradio:audition] 6568: Downloading article list page 21
[polskieradio:audition] 6568: Downloading article list page 22
[polskieradio:audition] 6568: Downloading article list page 23
[polskieradio:audition] 6568: Downloading article list page 24
[polskieradio:audition] 6568: Downloading article list page 25
[polskieradio:audition] 6568: Downloading article list page 26
[polskieradio:audition] 6568: Downloading article list page 27
[polskieradio:audition] 6568: Downloading article list page 28
[polskieradio:audition] 6568: Downloading article list page 29
[polskieradio:audition] 6568: Downloading article list page 30
[polskieradio:audition] 6568: Downloading article list page 31
[polskieradio:audition] 6568: Downloading article list page 32
[polskieradio:audition] 6568: Downloading article list page 33
[polskieradio:audition] 6568: Downloading article list page 34
[polskieradio:audition] 6568: Downloading article list page 35
[polskieradio:audition] 6568: Downloading article list page 36
[polskieradio:audition] 6568: Downloading article list page 37
[polskieradio:audition] Playlist AnagrammarganA: Downloading 322 items of 322
[download] Downloading item 1 of 322
[PolskieRadio] Extracting URL: https://trojka.polskieradio.pl/artykul/3252342,AnagrammarganA-1-pazdziernika-godz-0006
[PolskieRadio] 3252342: Downloading webpage
[download] Downloading playlist: AnagrammarganA 1 października godz. 00:06
[PolskieRadio] Playlist AnagrammarganA 1 października godz. 00:06: Downloading 1 items of 1
[download] Downloading item 1 of 1
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] e73612ee-5031-450c-b6da-896e10578f78: Downloading 1 format(s): 0
[debug] Invoking http downloader on "https://static.prsa.pl/e73612ee-5031-450c-b6da-896e10578f78.file"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: AnagrammarganA 1 października godz. 00_06 [e73612ee-5031-450c-b6da-896e10578f78].mp3
[download] 100% of  211.12MiB in 00:00:19 at 10.86MiB/s
[info] Maximum number of downloads reached, stopping due to --max-downloads
Aborting remaining downloads
@mrto mrto added site-bug Issue with a specific website triage Untriaged issue labels Oct 23, 2023
@bashonly
Copy link
Member

The items returned by the extractor may not necessarily be in the same order as they are on the webpage. Try not passing --max-downloads 1 and seeing if the "skipped" videos are extracted later on in the playlist

@bashonly bashonly added incomplete Further information is needed and removed triage Untriaged issue labels Oct 23, 2023
@mrto
Copy link
Author

mrto commented Oct 25, 2023

It seems that the extractor is building the playlist incorrectly. The first page (9 episodes) is skipped completely and the playlist starts from page 2.
Simple change of "1" to "0" on line 284:
for i in itertools.count(1) if has_articles else []:
it seems to fix this bug.

@bashonly bashonly removed the incomplete Further information is needed label Oct 25, 2023
@shubhexists
Copy link
Contributor

Checked the proposed changes and it is now working fine !
Added a PR to fix the issue!

bashonly pushed a commit that referenced this issue Oct 28, 2023
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this issue Apr 21, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants