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 extractor ignores --no-playlist #27009

Closed
5 tasks done
codl opened this issue Nov 16, 2020 · 2 comments
Closed
5 tasks done

Youtube extractor ignores --no-playlist #27009

codl opened this issue Nov 16, 2020 · 2 comments

Comments

@codl
Copy link

codl commented Nov 16, 2020

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.11.17
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--no-playlist', '--verbose', 'https://www.youtube.com/watch?v=m__OZ3ZsO4Y&list=PL96C35uN7xGI9HGKHsArwxiOejecVyNem&index=1']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.11.17
[debug] Python version 3.8.6 (CPython) - Linux-5.9.8-arch1-1-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
[debug] Proxy map: {}
[youtube:tab] PL96C35uN7xGI9HGKHsArwxiOejecVyNem: Downloading webpage
[download] Downloading playlist: PL96C35uN7xGI9HGKHsArwxiOejecVyNem
[youtube:tab] Downloading page 1
[youtube:tab] Downloading page 2
[youtube:tab] playlist PL96C35uN7xGI9HGKHsArwxiOejecVyNem: Downloading 216 videos
[download] Downloading video 1 of 216
[youtube] m__OZ3ZsO4Y: Downloading webpage
[youtube] Downloading just video m__OZ3ZsO4Y because of --no-playlist
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://r1---sn-cv0tb0xn-gonl.googlevideo.com/videoplayback?expire=1605589602&ei=AgazX_mrFaKCmQarsb3wCw&ip=31.38.14.210&id=o-AIx1g5wXLlVNLTqImw4zkjGYU_nH6G-56JhdPSBMgCTl&itag=303&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=S8&mm=31%2C29&mn=sn-cv0tb0xn-gonl%2Csn-25ge7nsd&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=17&initcwndbps=1007500&vprv=1&mime=video%2Fwebm&ns=YQUJTC1iA0k1h1i2BBYkQt8F&gir=yes&clen=133711143&dur=500.300&lmt=1605401183440426&mt=1605567890&fvip=1&keepalive=yes&c=WEB&txp=5535434&n=um_upHjW6zZU-scbB&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgSFtjgkrDwRi1Q8SzVm3EfEeX9n81elXgPgRip4yCZOsCID99qaRM_W1vFUwSGJ0juY-21DGQYFd4GkzD04ER_E_i&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAOUxGXiM5EwD22EZ2XT8V_DzMZekM06kM62bAnnGY37_AiAwW5Iv89dzHWC57-oNov-iI-nGsdm00RUx4yKe_djV7Q%3D%3D&ratebypass=yes'
[download] Destination: Five Things You Can't Do On British Television-m__OZ3ZsO4Y.f303.webm
[download] 100% of 127.52MiB in 00:26
[debug] Invoking downloader on 'https://r1---sn-cv0tb0xn-gonl.googlevideo.com/videoplayback?expire=1605589602&ei=AgazX_mrFaKCmQarsb3wCw&ip=31.38.14.210&id=o-AIx1g5wXLlVNLTqImw4zkjGYU_nH6G-56JhdPSBMgCTl&itag=251&source=youtube&requiressl=yes&mh=S8&mm=31%2C29&mn=sn-cv0tb0xn-gonl%2Csn-25ge7nsd&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=17&initcwndbps=1007500&vprv=1&mime=audio%2Fwebm&ns=YQUJTC1iA0k1h1i2BBYkQt8F&gir=yes&clen=6522000&dur=500.321&lmt=1605354751670780&mt=1605567890&fvip=1&keepalive=yes&c=WEB&txp=5532434&n=um_upHjW6zZU-scbB&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgOtGaA8tyvJPfm7o6JFhlLLYPZWWrJG2fZ85a-jBm0s0CIQD_SGrdBrOZTk8IjLHvpQ-z8idqCnTt8V9xkEzq9vUuxw%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAOUxGXiM5EwD22EZ2XT8V_DzMZekM06kM62bAnnGY37_AiAwW5Iv89dzHWC57-oNov-iI-nGsdm00RUx4yKe_djV7Q%3D%3D&ratebypass=yes'
[download] Destination: Five Things You Can't Do On British Television-m__OZ3ZsO4Y.f251.webm
[download] 100% of 6.22MiB in 00:01
[ffmpeg] Merging formats into "Five Things You Can't Do On British Television-m__OZ3ZsO4Y.webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Five Things You Can'"'"'t Do On British Television-m__OZ3ZsO4Y.f303.webm' -i 'file:Five Things You Can'"'"'t Do On British Television-m__OZ3ZsO4Y.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:Five Things You Can'"'"'t Do On British Television-m__OZ3ZsO4Y.temp.webm'
Deleting original file Five Things You Can't Do On British Television-m__OZ3ZsO4Y.f303.webm (pass -k to keep)
Deleting original file Five Things You Can't Do On British Television-m__OZ3ZsO4Y.f251.webm (pass -k to keep)
[download] Downloading video 2 of 216
[youtube] ZLF7yife8YE: Downloading webpage
[youtube] Downloading just video ZLF7yife8YE because of --no-playlist
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://r1---sn-cv0tb0xn-gone.googlevideo.com/videoplayback?expire=1605589631&ei=HwazX4q7I4-QWojKs-gM&ip=31.38.14.210&id=o-ANeKOl3HtRK7p6EyuwrFYOt-U9eljtZ5mdmKHDjTVKyf&itag=299&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303&source=youtube&requiressl=yes&mh=yA&mm=31%2C29&mn=sn-cv0tb0xn-gone%2Csn-25ge7nsl&ms=au%2Crdu&mv=m&mvi=1&pl=17&initcwndbps=1002500&vprv=1&mime=video%2Fmp4&ns=pUUTxvYmwyN5ynkbOLSD78AF&gir=yes&clen=237369388&dur=322.638&lmt=1604178257488361&mt=1605567890&fvip=5&keepalive=yes&c=WEB&txp=5432432&n=ualdt2hEoH42V4I-0&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgSFSudktV04KSdhbXIvE9eKinU7GD8Y8SOS7w0-5NgyQCIQCfjh3yiiyaudnwcz7mmabbhOG-n_VMtCXs8sfyRXYT7A%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAJc_LjwFPJfyfcRJ-B8VycD3oeU5qaQ-lQZ8f4nL9sMpAiEAwcFFRcqn61IIfyAso3H6vZeoWu7cN9HgcXC2NivK8iY%3D&ratebypass=yes'
[download] Destination: My Unlicensed Hovercraft Bar Is Technically Legal-ZLF7yife8YE.f299.mp4
[download]   6.2% of 226.37MiB at  4.71MiB/s ETA 00:45^C
ERROR: Interrupted by user

Description

Video links with a list argument will always download the whole playlist, even with --no-playlist specified either in a config file or on the command line. I believe this was introduced in version 2020.11.12.

@codl codl changed the title Youtube extractor ignores --no-playlist Youtube extractor crawls playlist even with --no-playlist Nov 16, 2020
@codl codl changed the title Youtube extractor crawls playlist even with --no-playlist Youtube extractor ignores --no-playlist Nov 16, 2020
@chrisr11
Copy link

I can confirm that this issue happens for me too.

@codl codl mentioned this issue Nov 17, 2020
5 tasks
@thelebster
Copy link

thelebster commented Nov 17, 2020

I can confirm too, option noplaylist does not make sense. To prevent such behaviour I use code listed below to clean up url from list parameter.

from urllib.parse import parse_qsl, urlencode, urlparse

url = urlparse(yt_url)
    if url.query.strip():
        query_params = parse_qsl(url.query)
        # Drop 'list' parameter from youtube url query string due to 'noplaylist' option does not make sense.
        query_params = [(f, v) for (f, v) in query_params if f != 'list']
        new_query_string = urlencode(query_params)
        yt_url = yt_url.replace(url.query, new_query_string)

@dstftw dstftw closed this as completed in 2864179 Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants