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

ID and Title of videos in a single record. #2007

Closed
ProgramErgoSum opened this issue Dec 19, 2013 · 1 comment
Closed

ID and Title of videos in a single record. #2007

ProgramErgoSum opened this issue Dec 19, 2013 · 1 comment

Comments

@ProgramErgoSum
Copy link

@ProgramErgoSum ProgramErgoSum commented Dec 19, 2013

Hi,
I would like to get the ID and title in a comma separated format for all the videos in a given play-list. First, I started with this command

youtube-dl --skip-download --get-id --get-title playlistURL

The output of this command appears as follows

Title 1
Id1
Title 2
Id2

My intention is to see the result as

Id1,Title1
Id2,Title2

Is there a way to do this with youtube-dl ? Or, should I post process the results ? In which case, is it always guaranteed that the Title precedes the Id ? I am asking this because when I rewrite the command as follows, the result (title followed by Id) does not change.

youtube-dl --skip-download --get-title --get-id playlistURL
@phihag
Copy link
Contributor

@phihag phihag commented Dec 19, 2013

Like in many command-line prorgams, the order of arguments has no meaning for youtube-dl. If you want both Id and title, you can use --get-filename, like this:

youtube-dl --get-filename -o "%(id)s,%(fulltitle)s" playlistURL
@phihag phihag closed this Dec 19, 2013
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
2 participants
You can’t perform that action at this time.