youtube-dl; How download ONLY the playlist, NOT the files therein












2















Trying to get only the playlist content (should be 600+ entries) from an url, thus:



youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


which according to the man page should list playlist entries while preventing files download.



Instead it hangs, after producing this output:



~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  
[1] 4531
~ $ [debug] System config:
[debug] User config:
[debug] Custom config:
[debug] Command-line args: ['-i', '-v', '--flat-playlist', '--skip-download', 'https://www.youtube.com/watch?v=CNotezuR73g']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.10
[debug] Python version 3.6.6 (CPython) - Linux-4.17.6-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] CNotezuR73g: Downloading webpage
[youtube] CNotezuR73g: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best


How should I do this?










share|improve this question

























  • I'm on Windows so perhaps this doesn't apply to Linux, but I had to change the url to https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr Also, see this: archive.zhimingwang.org/blog/…

    – wysiwyg
    Jul 19 '18 at 22:35













  • Comments seem to be limited to one line so I must make a separate post instead, see below.

    – user985675
    Jul 20 '18 at 19:21


















2















Trying to get only the playlist content (should be 600+ entries) from an url, thus:



youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


which according to the man page should list playlist entries while preventing files download.



Instead it hangs, after producing this output:



~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  
[1] 4531
~ $ [debug] System config:
[debug] User config:
[debug] Custom config:
[debug] Command-line args: ['-i', '-v', '--flat-playlist', '--skip-download', 'https://www.youtube.com/watch?v=CNotezuR73g']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.10
[debug] Python version 3.6.6 (CPython) - Linux-4.17.6-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] CNotezuR73g: Downloading webpage
[youtube] CNotezuR73g: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best


How should I do this?










share|improve this question

























  • I'm on Windows so perhaps this doesn't apply to Linux, but I had to change the url to https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr Also, see this: archive.zhimingwang.org/blog/…

    – wysiwyg
    Jul 19 '18 at 22:35













  • Comments seem to be limited to one line so I must make a separate post instead, see below.

    – user985675
    Jul 20 '18 at 19:21
















2












2








2


1






Trying to get only the playlist content (should be 600+ entries) from an url, thus:



youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


which according to the man page should list playlist entries while preventing files download.



Instead it hangs, after producing this output:



~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  
[1] 4531
~ $ [debug] System config:
[debug] User config:
[debug] Custom config:
[debug] Command-line args: ['-i', '-v', '--flat-playlist', '--skip-download', 'https://www.youtube.com/watch?v=CNotezuR73g']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.10
[debug] Python version 3.6.6 (CPython) - Linux-4.17.6-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] CNotezuR73g: Downloading webpage
[youtube] CNotezuR73g: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best


How should I do this?










share|improve this question
















Trying to get only the playlist content (should be 600+ entries) from an url, thus:



youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


which according to the man page should list playlist entries while preventing files download.



Instead it hangs, after producing this output:



~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  
[1] 4531
~ $ [debug] System config:
[debug] User config:
[debug] Custom config:
[debug] Command-line args: ['-i', '-v', '--flat-playlist', '--skip-download', 'https://www.youtube.com/watch?v=CNotezuR73g']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.10
[debug] Python version 3.6.6 (CPython) - Linux-4.17.6-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 4.0.1, ffprobe 4.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] CNotezuR73g: Downloading webpage
[youtube] CNotezuR73g: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best


How should I do this?







linux youtube playlists






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 19 '18 at 23:21









music2myear

31.1k85799




31.1k85799










asked Jul 19 '18 at 22:11









user985675user985675

1041215




1041215













  • I'm on Windows so perhaps this doesn't apply to Linux, but I had to change the url to https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr Also, see this: archive.zhimingwang.org/blog/…

    – wysiwyg
    Jul 19 '18 at 22:35













  • Comments seem to be limited to one line so I must make a separate post instead, see below.

    – user985675
    Jul 20 '18 at 19:21





















  • I'm on Windows so perhaps this doesn't apply to Linux, but I had to change the url to https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr Also, see this: archive.zhimingwang.org/blog/…

    – wysiwyg
    Jul 19 '18 at 22:35













  • Comments seem to be limited to one line so I must make a separate post instead, see below.

    – user985675
    Jul 20 '18 at 19:21



















I'm on Windows so perhaps this doesn't apply to Linux, but I had to change the url to https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr Also, see this: archive.zhimingwang.org/blog/…

– wysiwyg
Jul 19 '18 at 22:35







I'm on Windows so perhaps this doesn't apply to Linux, but I had to change the url to https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr Also, see this: archive.zhimingwang.org/blog/…

– wysiwyg
Jul 19 '18 at 22:35















Comments seem to be limited to one line so I must make a separate post instead, see below.

– user985675
Jul 20 '18 at 19:21







Comments seem to be limited to one line so I must make a separate post instead, see below.

– user985675
Jul 20 '18 at 19:21












3 Answers
3






active

oldest

votes


















4














Did u read the page wysiwig suggested in his comment? (thanks @wysiwig!)



List Youtube playlist with youtube-dl



Anyway, here I'll try to explain what you could do (extracted from the previous web site)



Try using this command:



youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.log


This will produce an output similar to this in result.log:



https://youtu.be/0gvUCLL-UGE
https://youtu.be/CPV7zcUy4J0
https://youtu.be/4wyZNwIrH9I
...


which should be what you need (a list of discrete links to YT videos).



Command explanation
With the -j option youtube-dl will produce a JSON output which contains all the information about the link you pass (a playlist in this case).



This JSON output is then passed to jq JSON processor (you have to install it before see JQ website) searching for all the "id" keys contained in the JSON output (0gvUCLL-UGE,CPV7zcUy4J0,4wyZNwIrH9I,...). We then pass those "id"s to sed which will prefix each of them with https://youtu.be/ giving the result I shown before.



Note 1:To install JQ you can simply use: sudo apt-get install jq



Note 2:This approach works for Youtube only.






share|improve this answer


























  • After I got tired of dutifully looking up movie names on imdb and downloading them individually, I settled on your solution as the most convenient, but with the insertion of another sed command before jq to eliminate all the 'Private videos', thus: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>"|sed '/Private video/d'|jq -r '.id'|sed 's_^_https://youtu.be/_' > result.log

    – user985675
    Dec 6 '18 at 22:56



















1














It appears you're not quoting the URL. Always quote URLs. On any operating system.



In your example, the issue is clearly visible:




~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr
[1] 4531



[1] 4531 means a job (ID 1) has been started and is running with PID 4531.



This command line is more or less equivalent to:



youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g &
list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


The ampersand at the end means line 1 will be executed in the background. It’ll still be connected to your shell, so you’ll see its output. It’s probably not hanging, just finished: It’s just a link to a video after all.



Line 2 is a variable assignment in Bash. It’ll define a variable called list if it doesn’t already exist. It’ll be usable like this:



~ $ echo $list
PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


The correct command line you want to use is:



youtube-dl -i -v --flat-playlist --skip-download "https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr"





share|improve this answer































    0














    @wysiwig's method does produce output on linux, but not what I sought, thus :



    $ youtube-dl --flat-playlist --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


    Output :




    [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading webpage

    [download] Downloading playlist: Full Length Arthouse Movies

    [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #1

    [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #2

    [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #3

    [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #4

    [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #5

    [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #6

    [youtube:playlist] playlist Full Length Arthouse Movies: Downloading 636 videos

    [download] Downloading video 1 of 636

    [download] Downloading video 2 of 636

    [download] Downloading video 3 of 636

    ...




    What I really wanted to get from the playlist are the the video-names, so that I could pick out only those I want to download, which I get with :



    $ youtube-dl -i --get-filename --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


    Output :




    The Waiters (full length MOVIE, entire feature film, full film) _watch full movies for free-CNotezuR73g.mp4

    Malcolm X (MORGAN FREEMAN, Full Movie, Englisch, Film in Full Length) _watch full movies for free-3C8j1C7HMj8.mp4

    The Arizona Kid - Western, Full Movie, Full Length Feature Film starring ROY ROGERS, Classic Movies-8McZ6G2Uud8.mp4

    Desperado Man aka Sagebrush Trail (Western Movie, Full Length Movie, Feature Film, Classic Movie)-7udmB5M6IIE.mp4

    ...







    share|improve this answer

























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1341684%2fyoutube-dl-how-download-only-the-playlist-not-the-files-therein%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      Did u read the page wysiwig suggested in his comment? (thanks @wysiwig!)



      List Youtube playlist with youtube-dl



      Anyway, here I'll try to explain what you could do (extracted from the previous web site)



      Try using this command:



      youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.log


      This will produce an output similar to this in result.log:



      https://youtu.be/0gvUCLL-UGE
      https://youtu.be/CPV7zcUy4J0
      https://youtu.be/4wyZNwIrH9I
      ...


      which should be what you need (a list of discrete links to YT videos).



      Command explanation
      With the -j option youtube-dl will produce a JSON output which contains all the information about the link you pass (a playlist in this case).



      This JSON output is then passed to jq JSON processor (you have to install it before see JQ website) searching for all the "id" keys contained in the JSON output (0gvUCLL-UGE,CPV7zcUy4J0,4wyZNwIrH9I,...). We then pass those "id"s to sed which will prefix each of them with https://youtu.be/ giving the result I shown before.



      Note 1:To install JQ you can simply use: sudo apt-get install jq



      Note 2:This approach works for Youtube only.






      share|improve this answer


























      • After I got tired of dutifully looking up movie names on imdb and downloading them individually, I settled on your solution as the most convenient, but with the insertion of another sed command before jq to eliminate all the 'Private videos', thus: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>"|sed '/Private video/d'|jq -r '.id'|sed 's_^_https://youtu.be/_' > result.log

        – user985675
        Dec 6 '18 at 22:56
















      4














      Did u read the page wysiwig suggested in his comment? (thanks @wysiwig!)



      List Youtube playlist with youtube-dl



      Anyway, here I'll try to explain what you could do (extracted from the previous web site)



      Try using this command:



      youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.log


      This will produce an output similar to this in result.log:



      https://youtu.be/0gvUCLL-UGE
      https://youtu.be/CPV7zcUy4J0
      https://youtu.be/4wyZNwIrH9I
      ...


      which should be what you need (a list of discrete links to YT videos).



      Command explanation
      With the -j option youtube-dl will produce a JSON output which contains all the information about the link you pass (a playlist in this case).



      This JSON output is then passed to jq JSON processor (you have to install it before see JQ website) searching for all the "id" keys contained in the JSON output (0gvUCLL-UGE,CPV7zcUy4J0,4wyZNwIrH9I,...). We then pass those "id"s to sed which will prefix each of them with https://youtu.be/ giving the result I shown before.



      Note 1:To install JQ you can simply use: sudo apt-get install jq



      Note 2:This approach works for Youtube only.






      share|improve this answer


























      • After I got tired of dutifully looking up movie names on imdb and downloading them individually, I settled on your solution as the most convenient, but with the insertion of another sed command before jq to eliminate all the 'Private videos', thus: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>"|sed '/Private video/d'|jq -r '.id'|sed 's_^_https://youtu.be/_' > result.log

        – user985675
        Dec 6 '18 at 22:56














      4












      4








      4







      Did u read the page wysiwig suggested in his comment? (thanks @wysiwig!)



      List Youtube playlist with youtube-dl



      Anyway, here I'll try to explain what you could do (extracted from the previous web site)



      Try using this command:



      youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.log


      This will produce an output similar to this in result.log:



      https://youtu.be/0gvUCLL-UGE
      https://youtu.be/CPV7zcUy4J0
      https://youtu.be/4wyZNwIrH9I
      ...


      which should be what you need (a list of discrete links to YT videos).



      Command explanation
      With the -j option youtube-dl will produce a JSON output which contains all the information about the link you pass (a playlist in this case).



      This JSON output is then passed to jq JSON processor (you have to install it before see JQ website) searching for all the "id" keys contained in the JSON output (0gvUCLL-UGE,CPV7zcUy4J0,4wyZNwIrH9I,...). We then pass those "id"s to sed which will prefix each of them with https://youtu.be/ giving the result I shown before.



      Note 1:To install JQ you can simply use: sudo apt-get install jq



      Note 2:This approach works for Youtube only.






      share|improve this answer















      Did u read the page wysiwig suggested in his comment? (thanks @wysiwig!)



      List Youtube playlist with youtube-dl



      Anyway, here I'll try to explain what you could do (extracted from the previous web site)



      Try using this command:



      youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.log


      This will produce an output similar to this in result.log:



      https://youtu.be/0gvUCLL-UGE
      https://youtu.be/CPV7zcUy4J0
      https://youtu.be/4wyZNwIrH9I
      ...


      which should be what you need (a list of discrete links to YT videos).



      Command explanation
      With the -j option youtube-dl will produce a JSON output which contains all the information about the link you pass (a playlist in this case).



      This JSON output is then passed to jq JSON processor (you have to install it before see JQ website) searching for all the "id" keys contained in the JSON output (0gvUCLL-UGE,CPV7zcUy4J0,4wyZNwIrH9I,...). We then pass those "id"s to sed which will prefix each of them with https://youtu.be/ giving the result I shown before.



      Note 1:To install JQ you can simply use: sudo apt-get install jq



      Note 2:This approach works for Youtube only.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Jan 7 at 23:16









      johan456789

      54




      54










      answered Sep 18 '18 at 9:44









      radiolondraradiolondra

      564




      564













      • After I got tired of dutifully looking up movie names on imdb and downloading them individually, I settled on your solution as the most convenient, but with the insertion of another sed command before jq to eliminate all the 'Private videos', thus: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>"|sed '/Private video/d'|jq -r '.id'|sed 's_^_https://youtu.be/_' > result.log

        – user985675
        Dec 6 '18 at 22:56



















      • After I got tired of dutifully looking up movie names on imdb and downloading them individually, I settled on your solution as the most convenient, but with the insertion of another sed command before jq to eliminate all the 'Private videos', thus: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>"|sed '/Private video/d'|jq -r '.id'|sed 's_^_https://youtu.be/_' > result.log

        – user985675
        Dec 6 '18 at 22:56

















      After I got tired of dutifully looking up movie names on imdb and downloading them individually, I settled on your solution as the most convenient, but with the insertion of another sed command before jq to eliminate all the 'Private videos', thus: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>"|sed '/Private video/d'|jq -r '.id'|sed 's_^_https://youtu.be/_' > result.log

      – user985675
      Dec 6 '18 at 22:56





      After I got tired of dutifully looking up movie names on imdb and downloading them individually, I settled on your solution as the most convenient, but with the insertion of another sed command before jq to eliminate all the 'Private videos', thus: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>"|sed '/Private video/d'|jq -r '.id'|sed 's_^_https://youtu.be/_' > result.log

      – user985675
      Dec 6 '18 at 22:56













      1














      It appears you're not quoting the URL. Always quote URLs. On any operating system.



      In your example, the issue is clearly visible:




      ~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr
      [1] 4531



      [1] 4531 means a job (ID 1) has been started and is running with PID 4531.



      This command line is more or less equivalent to:



      youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g &
      list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


      The ampersand at the end means line 1 will be executed in the background. It’ll still be connected to your shell, so you’ll see its output. It’s probably not hanging, just finished: It’s just a link to a video after all.



      Line 2 is a variable assignment in Bash. It’ll define a variable called list if it doesn’t already exist. It’ll be usable like this:



      ~ $ echo $list
      PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


      The correct command line you want to use is:



      youtube-dl -i -v --flat-playlist --skip-download "https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr"





      share|improve this answer




























        1














        It appears you're not quoting the URL. Always quote URLs. On any operating system.



        In your example, the issue is clearly visible:




        ~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr
        [1] 4531



        [1] 4531 means a job (ID 1) has been started and is running with PID 4531.



        This command line is more or less equivalent to:



        youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g &
        list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


        The ampersand at the end means line 1 will be executed in the background. It’ll still be connected to your shell, so you’ll see its output. It’s probably not hanging, just finished: It’s just a link to a video after all.



        Line 2 is a variable assignment in Bash. It’ll define a variable called list if it doesn’t already exist. It’ll be usable like this:



        ~ $ echo $list
        PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


        The correct command line you want to use is:



        youtube-dl -i -v --flat-playlist --skip-download "https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr"





        share|improve this answer


























          1












          1








          1







          It appears you're not quoting the URL. Always quote URLs. On any operating system.



          In your example, the issue is clearly visible:




          ~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr
          [1] 4531



          [1] 4531 means a job (ID 1) has been started and is running with PID 4531.



          This command line is more or less equivalent to:



          youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g &
          list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


          The ampersand at the end means line 1 will be executed in the background. It’ll still be connected to your shell, so you’ll see its output. It’s probably not hanging, just finished: It’s just a link to a video after all.



          Line 2 is a variable assignment in Bash. It’ll define a variable called list if it doesn’t already exist. It’ll be usable like this:



          ~ $ echo $list
          PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


          The correct command line you want to use is:



          youtube-dl -i -v --flat-playlist --skip-download "https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr"





          share|improve this answer













          It appears you're not quoting the URL. Always quote URLs. On any operating system.



          In your example, the issue is clearly visible:




          ~ $ youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr
          [1] 4531



          [1] 4531 means a job (ID 1) has been started and is running with PID 4531.



          This command line is more or less equivalent to:



          youtube-dl -i -v --flat-playlist --skip-download https://www.youtube.com/watch?v=CNotezuR73g &
          list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


          The ampersand at the end means line 1 will be executed in the background. It’ll still be connected to your shell, so you’ll see its output. It’s probably not hanging, just finished: It’s just a link to a video after all.



          Line 2 is a variable assignment in Bash. It’ll define a variable called list if it doesn’t already exist. It’ll be usable like this:



          ~ $ echo $list
          PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr


          The correct command line you want to use is:



          youtube-dl -i -v --flat-playlist --skip-download "https://www.youtube.com/watch?v=CNotezuR73g&list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 18 '18 at 10:01









          Daniel BDaniel B

          33.9k76387




          33.9k76387























              0














              @wysiwig's method does produce output on linux, but not what I sought, thus :



              $ youtube-dl --flat-playlist --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


              Output :




              [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading webpage

              [download] Downloading playlist: Full Length Arthouse Movies

              [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #1

              [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #2

              [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #3

              [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #4

              [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #5

              [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #6

              [youtube:playlist] playlist Full Length Arthouse Movies: Downloading 636 videos

              [download] Downloading video 1 of 636

              [download] Downloading video 2 of 636

              [download] Downloading video 3 of 636

              ...




              What I really wanted to get from the playlist are the the video-names, so that I could pick out only those I want to download, which I get with :



              $ youtube-dl -i --get-filename --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


              Output :




              The Waiters (full length MOVIE, entire feature film, full film) _watch full movies for free-CNotezuR73g.mp4

              Malcolm X (MORGAN FREEMAN, Full Movie, Englisch, Film in Full Length) _watch full movies for free-3C8j1C7HMj8.mp4

              The Arizona Kid - Western, Full Movie, Full Length Feature Film starring ROY ROGERS, Classic Movies-8McZ6G2Uud8.mp4

              Desperado Man aka Sagebrush Trail (Western Movie, Full Length Movie, Feature Film, Classic Movie)-7udmB5M6IIE.mp4

              ...







              share|improve this answer






























                0














                @wysiwig's method does produce output on linux, but not what I sought, thus :



                $ youtube-dl --flat-playlist --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


                Output :




                [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading webpage

                [download] Downloading playlist: Full Length Arthouse Movies

                [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #1

                [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #2

                [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #3

                [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #4

                [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #5

                [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #6

                [youtube:playlist] playlist Full Length Arthouse Movies: Downloading 636 videos

                [download] Downloading video 1 of 636

                [download] Downloading video 2 of 636

                [download] Downloading video 3 of 636

                ...




                What I really wanted to get from the playlist are the the video-names, so that I could pick out only those I want to download, which I get with :



                $ youtube-dl -i --get-filename --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


                Output :




                The Waiters (full length MOVIE, entire feature film, full film) _watch full movies for free-CNotezuR73g.mp4

                Malcolm X (MORGAN FREEMAN, Full Movie, Englisch, Film in Full Length) _watch full movies for free-3C8j1C7HMj8.mp4

                The Arizona Kid - Western, Full Movie, Full Length Feature Film starring ROY ROGERS, Classic Movies-8McZ6G2Uud8.mp4

                Desperado Man aka Sagebrush Trail (Western Movie, Full Length Movie, Feature Film, Classic Movie)-7udmB5M6IIE.mp4

                ...







                share|improve this answer




























                  0












                  0








                  0







                  @wysiwig's method does produce output on linux, but not what I sought, thus :



                  $ youtube-dl --flat-playlist --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


                  Output :




                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading webpage

                  [download] Downloading playlist: Full Length Arthouse Movies

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #1

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #2

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #3

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #4

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #5

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #6

                  [youtube:playlist] playlist Full Length Arthouse Movies: Downloading 636 videos

                  [download] Downloading video 1 of 636

                  [download] Downloading video 2 of 636

                  [download] Downloading video 3 of 636

                  ...




                  What I really wanted to get from the playlist are the the video-names, so that I could pick out only those I want to download, which I get with :



                  $ youtube-dl -i --get-filename --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


                  Output :




                  The Waiters (full length MOVIE, entire feature film, full film) _watch full movies for free-CNotezuR73g.mp4

                  Malcolm X (MORGAN FREEMAN, Full Movie, Englisch, Film in Full Length) _watch full movies for free-3C8j1C7HMj8.mp4

                  The Arizona Kid - Western, Full Movie, Full Length Feature Film starring ROY ROGERS, Classic Movies-8McZ6G2Uud8.mp4

                  Desperado Man aka Sagebrush Trail (Western Movie, Full Length Movie, Feature Film, Classic Movie)-7udmB5M6IIE.mp4

                  ...







                  share|improve this answer















                  @wysiwig's method does produce output on linux, but not what I sought, thus :



                  $ youtube-dl --flat-playlist --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


                  Output :




                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading webpage

                  [download] Downloading playlist: Full Length Arthouse Movies

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #1

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #2

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #3

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #4

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #5

                  [youtube:playlist] PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr: Downloading page #6

                  [youtube:playlist] playlist Full Length Arthouse Movies: Downloading 636 videos

                  [download] Downloading video 1 of 636

                  [download] Downloading video 2 of 636

                  [download] Downloading video 3 of 636

                  ...




                  What I really wanted to get from the playlist are the the video-names, so that I could pick out only those I want to download, which I get with :



                  $ youtube-dl -i --get-filename --skip-download https://www.youtube.com/playlist?list=PLm9l7EEbJuhyDYNuItj3sG8h3xAZbjIxr  


                  Output :




                  The Waiters (full length MOVIE, entire feature film, full film) _watch full movies for free-CNotezuR73g.mp4

                  Malcolm X (MORGAN FREEMAN, Full Movie, Englisch, Film in Full Length) _watch full movies for free-3C8j1C7HMj8.mp4

                  The Arizona Kid - Western, Full Movie, Full Length Feature Film starring ROY ROGERS, Classic Movies-8McZ6G2Uud8.mp4

                  Desperado Man aka Sagebrush Trail (Western Movie, Full Length Movie, Feature Film, Classic Movie)-7udmB5M6IIE.mp4

                  ...








                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 21 '18 at 11:48









                  C0deDaedalus

                  1,1301216




                  1,1301216










                  answered Jul 20 '18 at 19:40









                  user985675user985675

                  1041215




                  1041215






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1341684%2fyoutube-dl-how-download-only-the-playlist-not-the-files-therein%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Plaza Victoria

                      Puebla de Zaragoza

                      Musa