Request - Verbosity option - Print original video url #126

Closed
opened 2026-02-20 22:26:03 -05:00 by deekerman · 4 comments
Owner

Originally created by @jherazob on GitHub (Sep 28, 2011).

Let's say that you give youtube-dl a playlist, or use a search. You get a list of videos and it'll start downloading them.

If you had the option of only printing the original URL and exit, you could download the playlist itself or the search to a text file. Maybe to save later, maybe to edit and then feed it back to youtube-dl, maybe for reference.

Doing this with youtube is easy ( http://www.youtube.com/watch?v=VIDEOID ), but with other sites it may or may not get a bit complicated.

Originally created by @jherazob on GitHub (Sep 28, 2011). Let's say that you give youtube-dl a playlist, or use a search. You get a list of videos and it'll start downloading them. If you had the option of only printing the original URL and exit, you could download the playlist itself or the search to a text file. Maybe to save later, maybe to edit and then feed it back to youtube-dl, maybe for reference. Doing this with youtube is easy ( http://www.youtube.com/watch?v=VIDEOID ), but with other sites it may or may not get a bit complicated.
deekerman 2026-02-20 22:26:03 -05:00
  • closed this issue
  • added the
    request
    label
Author
Owner

@phihag commented on GitHub (Sep 29, 2011):

Good idea. I'll implement it as soon as I playlists across IEs. If anyone wants to provide a fast patch, I'll merge it in even before that.

@phihag commented on GitHub (Sep 29, 2011): Good idea. I'll implement it as soon as I playlists across IEs. If anyone wants to provide a fast patch, I'll merge it in even before that.
Author
Owner

@yasoob commented on GitHub (Jul 3, 2013):

@phihag I guess -g option is there for this purpose. Isn't it ?

@yasoob commented on GitHub (Jul 3, 2013): @phihag I guess -g option is there for this purpose. Isn't it ?
Author
Owner

@clampak commented on GitHub (Nov 17, 2014):

@phihag, as @yasoob noted, isn't this implemented with the -g option?

@clampak commented on GitHub (Nov 17, 2014): @phihag, as @yasoob noted, isn't this implemented with the -g option?
Author
Owner

@phihag commented on GitHub (Nov 17, 2014):

The -g option results in the URL of the video file, whereas @jherazob wants the URL of the video webpage.

Notably, this has indeed been implemented in the meantime:

$ youtube-dl https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re -j | \
   jq .webpage_url
"https://www.youtube.com/watch?v=bV9L5Ht9LgY"
"https://www.youtube.com/watch?v=FXxLjLQi3Fg"
"https://www.youtube.com/watch?v=tU3Bgo5qJZE"
@phihag commented on GitHub (Nov 17, 2014): The `-g` option results in the URL of the video file, whereas @jherazob wants the URL of the video webpage. Notably, this has indeed been implemented in the meantime: ``` $ youtube-dl https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re -j | \ jq .webpage_url "https://www.youtube.com/watch?v=bV9L5Ht9LgY" "https://www.youtube.com/watch?v=FXxLjLQi3Fg" "https://www.youtube.com/watch?v=tU3Bgo5qJZE" ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#126
No description provided.