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

Request - Verbosity option - Print original video url #183

Closed
jherazob opened this issue Sep 28, 2011 · 4 comments
Closed

Request - Verbosity option - Print original video url #183

jherazob opened this issue Sep 28, 2011 · 4 comments
Labels

Comments

@jherazob
Copy link

@jherazob jherazob commented 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.

@phihag
Copy link
Contributor

@phihag phihag commented 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.

@yasoob
Copy link
Contributor

@yasoob yasoob commented Jul 3, 2013

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

@clampak
Copy link

@clampak clampak commented Nov 17, 2014

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

@phihag
Copy link
Contributor

@phihag phihag commented 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 phihag closed this Nov 17, 2014
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
4 participants
You can’t perform that action at this time.