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

Include video ID in ERROR: messages #511

Open
kull0rk3x opened this issue Nov 3, 2012 · 5 comments
Open

Include video ID in ERROR: messages #511

kull0rk3x opened this issue Nov 3, 2012 · 5 comments
Labels

Comments

@kull0rk3x
Copy link

@kull0rk3x kull0rk3x commented Nov 3, 2012

Hi,

I was wondering if it is possible to include the video ID in the error messages, eg. turning lines like
ERROR: YouTube said: This video contains content from UMG, who has blocked it in your country on copyright grounds.
to
ERROR [videoIDhere]: YouTube said: This video contains content from UMG, who has blocked it in your country on copyright grounds.
to be able to know which video failed when letting youtube-dl work on a playlist.
I wrote a little script that utilizes youtube-dl and mplayer to playback videos, and if this was changed I could unblock a few videos on the fly (until then I would have to download the whole playlist again via a proxy).

Regards

@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Nov 3, 2012

Yeah, might be useful, but meanwhile the id is on the precedent output line, no?

@kull0rk3x
Copy link
Author

@kull0rk3x kull0rk3x commented Nov 3, 2012

Normally yes, but if you add --get-url --get-title (so that mplayer can do the steaming), its not.

@kull0rk3x
Copy link
Author

@kull0rk3x kull0rk3x commented Feb 8, 2013

This patch (to be applied on git-master) patches all errors & warnings to ERROR/WARNING: [InfoExtractor] video_id: error_message.

@kull0rk3x
Copy link
Author

@kull0rk3x kull0rk3x commented Mar 4, 2013

I posted a solution to this problem, please consider applying the patch. If theres any more work needed for this, I'll update the diff.

@yasoob
Copy link
Contributor

@yasoob yasoob commented Jun 24, 2013

@kull0rk3x Can you do a pull request ? It will ease the developers work while applying the patch.

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
3 participants
You can’t perform that action at this time.