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

--playlist-reverse no longer seems to work with --playlist-items in the expected way #26306

Closed
NinKenDo64 opened this issue Aug 12, 2020 · 1 comment
Labels

Comments

@NinKenDo64
Copy link

@NinKenDo64 NinKenDo64 commented Aug 12, 2020

Checklist

  • [ - ] I'm reporting a broken site support issue
  • [ x ] I've verified that I'm running youtube-dl version 2020.07.28
  • [ x ] I've checked that all provided URLs are alive and playable in a browser
  • [ x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • [ x ] I've searched the bugtracker for similar bug reports including closed ones
  • [ x ] I've read bugs section in FAQ

Verbose log

VERBOSE LOG WITHOUT --PLAYLIST-REVERSE ARGUMENT

youtube-dl https://www.youtube.com/channel/UCa6ERCDt3GzkvLye32ar89w --playlist-items 1 -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/channel/UCa6ERCDt3GzkvLye32ar89w', '--playlist-items', '1', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.8.5 (CPython) - Linux-5.7.12-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:channel] UCa6ERCDt3GzkvLye32ar89w: Downloading channel page
[youtube:playlist] UUa6ERCDt3GzkvLye32ar89w: Downloading webpage
[download] Downloading playlist: Uploads from 江峰时刻
[youtube:playlist] playlist Uploads from 江峰时刻: Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] D36l-j-cDBw: Downloading webpage
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r3---sn-v2u0n-hxad.googlevideo.com/videoplayback?expire=1597247453&ei=fLszX9esO9XCpge_k5LYCw&ip=49.192.195.8&id=o-ABf9uihYp4BCnMnchUbqNc_XxLeVDca0l0T3pFcAlL3v&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160&source=youtube&requiressl=yes&mh=Pf&mm=31%2C29&mn=sn-v2u0n-hxad%2Csn-v2u0n-ntqd&ms=au%2Crdu&mv=m&mvi=3&pcm2cms=yes&pl=17&initcwndbps=1080000&vprv=1&mime=video%2Fmp4&gir=yes&clen=277381429&dur=1191.056&lmt=1597205035944053&mt=1597225718&fvip=3&keepalive=yes&fexp=23883098&c=WEB&txp=6416222&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgK4rkmTAPehyAHgna6QnbyQ9AWKwcvY_4mfKvZxVuM4UCIQCg8p1--dk0sKW_J5b7qjW_FQ6BXEn0jopwCu6GbvxJFA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAOxppul9so_xrB2x1-05s5kNlSH-Oj-F0cGWZIgaT2U0AiEAkwrCXexo05nPtA6k1zm2W9j4OEMhCxe7caxpBUCvLRM%3D&ratebypass=yes'
[download] Destination: 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f137.mp4
[download] 100% of 264.53MiB in 00:23
[debug] Invoking downloader on 'https://r3---sn-v2u0n-hxad.googlevideo.com/videoplayback?expire=1597247453&ei=fLszX9esO9XCpge_k5LYCw&ip=49.192.195.8&id=o-ABf9uihYp4BCnMnchUbqNc_XxLeVDca0l0T3pFcAlL3v&itag=251&source=youtube&requiressl=yes&mh=Pf&mm=31%2C29&mn=sn-v2u0n-hxad%2Csn-v2u0n-ntqd&ms=au%2Crdu&mv=m&mvi=3&pcm2cms=yes&pl=17&initcwndbps=1080000&vprv=1&mime=audio%2Fwebm&gir=yes&clen=15105497&dur=1191.081&lmt=1597205043860831&mt=1597225718&fvip=3&keepalive=yes&fexp=23883098&c=WEB&txp=6411222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgBKwhtsfcmNZxPoTgXS_35jx_72j6HUrm7RN10vB0Gz8CIFzIiP6JI4QUQrb3y_69FYqoyqbslXeZADP9VwEsxUrA&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAOxppul9so_xrB2x1-05s5kNlSH-Oj-F0cGWZIgaT2U0AiEAkwrCXexo05nPtA6k1zm2W9j4OEMhCxe7caxpBUCvLRM%3D&ratebypass=yes'
[download] Destination: 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f251.webm
[download] 100% of 14.41MiB in 00:01
[ffmpeg] Merging formats into "黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f137.mp4' -i 'file:黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.temp.mkv'
Deleting original file 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f137.mp4 (pass -k to keep)
Deleting original file 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f251.webm (pass -k to keep)
[download] Finished downloading playlist: Uploads from 江峰时刻

VERBOSE LOG WITH --PLAYLIST-REVERSE ARGUMENT

youtube-dl https://www.youtube.com/channel/UCa6ERCDt3GzkvLye32ar89w --playlist-reverse --playlist-items 1 -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/channel/UCa6ERCDt3GzkvLye32ar89w', '--playlist-reverse', '--playlist-items', '1', '-v']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.8.5 (CPython) - Linux-5.7.12-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:channel] UCa6ERCDt3GzkvLye32ar89w: Downloading channel page
[youtube:playlist] UUa6ERCDt3GzkvLye32ar89w: Downloading webpage
[download] Downloading playlist: Uploads from 江峰时刻
[youtube:playlist] playlist Uploads from 江峰时刻: Downloading 1 videos
[download] Downloading video 1 of 1
[youtube] D36l-j-cDBw: Downloading webpage
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r3---sn-v2u0n-hxad.googlevideo.com/videoplayback?expire=1597247248&ei=sLozX-KQH4_OogPSzojoAQ&ip=49.192.195.8&id=o-AHuHk-oL4fEN_d3N54t73RTTGNtT-wqRhOYS8PvI3r2F&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160&source=youtube&requiressl=yes&mh=Pf&mm=31%2C29&mn=sn-v2u0n-hxad%2Csn-v2u0n-ntqd&ms=au%2Crdu&mv=m&mvi=3&pcm2cms=yes&pl=17&initcwndbps=1137500&vprv=1&mime=video%2Fmp4&gir=yes&clen=277381429&dur=1191.056&lmt=1597205035944053&mt=1597225543&fvip=3&keepalive=yes&fexp=23883098&c=WEB&txp=6416222&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAIy4m3weZSzO5nvVu4kUuBYCADyAjKAcjd4JRBFlwmZaAiEAygmL1cjsu8rNL0F3VlMXDxGkbma50QWzSehE7BiXVSU%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgJAElfuk4BbPm7jWYadmJam7b1MXrIcNlsGh0Lo6VZMkCIQDfyuo3YuG6APec9oV8NaKgC9jWza0abTZBsVNtlH8j_Q%3D%3D&ratebypass=yes'
[download] Resuming download at byte 52106139
[download] Destination: 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f137.mp4
[download] 100% of 264.53MiB in 00:19
[debug] Invoking downloader on 'https://r3---sn-v2u0n-hxad.googlevideo.com/videoplayback?expire=1597247248&ei=sLozX-KQH4_OogPSzojoAQ&ip=49.192.195.8&id=o-AHuHk-oL4fEN_d3N54t73RTTGNtT-wqRhOYS8PvI3r2F&itag=251&source=youtube&requiressl=yes&mh=Pf&mm=31%2C29&mn=sn-v2u0n-hxad%2Csn-v2u0n-ntqd&ms=au%2Crdu&mv=m&mvi=3&pcm2cms=yes&pl=17&initcwndbps=1137500&vprv=1&mime=audio%2Fwebm&gir=yes&clen=15105497&dur=1191.081&lmt=1597205043860831&mt=1597225543&fvip=3&keepalive=yes&fexp=23883098&c=WEB&txp=6411222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAOXSaLxOsj6iOjyoY3Cq8BdTngIQBVf7uRt6QB8eWvycAiBO84yBOU72xnvm-6RCy_4khODbJ78naz1LfSCqQfV1Sg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgJAElfuk4BbPm7jWYadmJam7b1MXrIcNlsGh0Lo6VZMkCIQDfyuo3YuG6APec9oV8NaKgC9jWza0abTZBsVNtlH8j_Q%3D%3D&ratebypass=yes'
[download] Destination: 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f251.webm
[download] 100% of 14.41MiB in 00:01
[ffmpeg] Merging formats into "黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f137.mp4' -i 'file:黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.temp.mkv'
Deleting original file 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f137.mp4 (pass -k to keep)
Deleting original file 黎智英保釋,港澳辦“嚴懲不手軟”受挫;川普稱習不再是朋友,是恥辱;香港製造正式變中國製造,美國駐華使館刪掉中國字樣的內裡乾坤(江峰漫談20200811第221期)-D36l-j-cDBw.f251.webm (pass -k to keep)
[download] Finished downloading playlist: Uploads from 江峰时刻

Description

When calling youtube-dl on a channel, as I'm sure you're aware, it treats it like a playlist. So it's possible to call --youtube-items N argument on it and download the Nth video on the channel. This works in reverse chronological order, so 1 is the most recent video, with the numbers in descending date order. I was previously using the --playlist-reverse argument to ensure that 1 was the oldest video and the numbers went in ascending date order instead. However this expected behaviour appears to have broken at some point, I'm unclear when, and now the --playlist-items argument seems to ignore the --playlist-reverse argument. Therefore it's no longer possible to have a stable numbering of videos (stable assuming none are removed from the channel), which seems like a negative outcome and seems to largely defeat the purpose of --playlist-reverse in the first place.

The channel I'm testing with is at https://www.youtube.com/channel/UCa6ERCDt3GzkvLye32ar89w

However have tested with other channels and no difference. I have also tested with actual standard YouTuber playlists as opposed to channel pages and same thing happens.

Let me know if there's anything else I should try.

Thanks so much for this awesome tool.

@NinKenDo64 NinKenDo64 changed the title --reverse-playlist no longer seems to work with --playlist-items in the expected way --playlist-reverse no longer seems to work with --playlist-items in the expected way Aug 12, 2020
@dstftw dstftw closed this Aug 12, 2020
@dstftw dstftw added the duplicate label Aug 12, 2020
@NinKenDo64
Copy link
Author

@NinKenDo64 NinKenDo64 commented Aug 12, 2020

Can I ask why this issue was marked a duplicate. I genuinely could not find the same issue.

The closest I can find is: 6845

But that's a feature request. My issue is not a feature request, it's a feature that worked and is now broken. That feature request also predates by years my use of --playlist-reverse and --playlist-items together.

If somebody has already logged this issue, fair enough, but I can't find it and would like to follow the thread if it exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.