How can I make youtube-dl return the creator of a playlist?

fuumind

I can use youtube-dl with the --dump-json option and jq to get the uploader of a video:

uploader=$(youtube-dl --dump-json "$video_url" | jq -r '.uploader')

Is there a way to get the creator of a playlist in a similar way?

youtube-dl -j "$playlist_url"

returns a list of videos but no information about the playlist creator.

fuumind

As @Seth suggests in his answer I can use the --skip-download and --output options. Experimenting a bit I figured out that the --output option will not put any extra info in the json data. However, calling youtube-dl like this:

youtube-dl --skip-download --playlist-end 1 --output '%(playlist_uploader)s/%(title)s.%(ext)s' "$playlist_url"

does create a folder with the name of the playlist uploader. This folder I can the get using the find command like so:

find . -type d -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "

as suggested in this answer to a question at stackoverflow.com. This is even more roundabout than what @Seth suggests but it does solve my problem.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I download a youtube playlist with youtube-dl and make it a mp3-playlist?

From Dev

How can I download part of a playlist from YouTube with 'youtube-dl'?

From Dev

How can I download part of a playlist from YouTube with 'youtube-dl'?

From Dev

How can I return the number of videos in a YouTube playlist using javascript?

From Dev

How can I download a YouTube playlist?

From Dev

How to download a youtube playlist with numbered prefix via youtube-dl?

From Dev

How to download a youtube playlist with numbered prefix via youtube-dl?

From Dev

In bash script how do I ensure youtube-dl downloads all files in a playlist

From Dev

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

From Dev

How can I pass parameters to --output in youtube-dl?

From Java

Youtube - downloading a playlist - youtube-dl

From Dev

How can I auto-play a YouTube playlist using mps-youtube?

From Dev

youtube-dl, how to write all subs of a youtube playlist to ONE single file?

From Dev

youtube-dl delete files that are no longer in a playlist

From Dev

youtube-dl | Download playlist in respective directory

From Dev

Youtube-dl viewster playlist language selection

From Dev

youtube-dl not downloading the whole playlist

From Dev

youtube-dl delete files that are no longer in a playlist

From Dev

How can I download the video description of a YouTube video without downloading the video with youtube-dl?

From Dev

Can I make calls to APIs such as youtube-dl and ffmpeg from a chrome-app?

From Dev

How can I lock my screen and keep my youtube playlist going?

From Dev

How can I download an entire playlist from youtube even it exceeds 25 videos?

From Dev

How Can I Get my playlist videos from Youtube with angular 2

From Dev

How can I make creator properties and recipients not "swap" correctly?

From Dev

How can I make QT Creator stop logging warning exceptions?

From Dev

How to download multiple video playlist by youtube-dl and avoid repeated recheck?

From Dev

how to make playlist of youtube links in my activity in android?

From Dev

Downloading youtube playlist with youtube-dl, skipping existing files

From Dev

Play youtube playlist with youtube-dl with shuffling or repeat

Related Related

  1. 1

    How can I download a youtube playlist with youtube-dl and make it a mp3-playlist?

  2. 2

    How can I download part of a playlist from YouTube with 'youtube-dl'?

  3. 3

    How can I download part of a playlist from YouTube with 'youtube-dl'?

  4. 4

    How can I return the number of videos in a YouTube playlist using javascript?

  5. 5

    How can I download a YouTube playlist?

  6. 6

    How to download a youtube playlist with numbered prefix via youtube-dl?

  7. 7

    How to download a youtube playlist with numbered prefix via youtube-dl?

  8. 8

    In bash script how do I ensure youtube-dl downloads all files in a playlist

  9. 9

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

  10. 10

    How can I pass parameters to --output in youtube-dl?

  11. 11

    Youtube - downloading a playlist - youtube-dl

  12. 12

    How can I auto-play a YouTube playlist using mps-youtube?

  13. 13

    youtube-dl, how to write all subs of a youtube playlist to ONE single file?

  14. 14

    youtube-dl delete files that are no longer in a playlist

  15. 15

    youtube-dl | Download playlist in respective directory

  16. 16

    Youtube-dl viewster playlist language selection

  17. 17

    youtube-dl not downloading the whole playlist

  18. 18

    youtube-dl delete files that are no longer in a playlist

  19. 19

    How can I download the video description of a YouTube video without downloading the video with youtube-dl?

  20. 20

    Can I make calls to APIs such as youtube-dl and ffmpeg from a chrome-app?

  21. 21

    How can I lock my screen and keep my youtube playlist going?

  22. 22

    How can I download an entire playlist from youtube even it exceeds 25 videos?

  23. 23

    How Can I Get my playlist videos from Youtube with angular 2

  24. 24

    How can I make creator properties and recipients not "swap" correctly?

  25. 25

    How can I make QT Creator stop logging warning exceptions?

  26. 26

    How to download multiple video playlist by youtube-dl and avoid repeated recheck?

  27. 27

    how to make playlist of youtube links in my activity in android?

  28. 28

    Downloading youtube playlist with youtube-dl, skipping existing files

  29. 29

    Play youtube playlist with youtube-dl with shuffling or repeat

HotTag

Archive