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

Skip private videos in playlists #1594

Closed
benovic opened this issue Oct 13, 2013 · 8 comments
Closed

Skip private videos in playlists #1594

benovic opened this issue Oct 13, 2013 · 8 comments

Comments

@benovic
Copy link

benovic commented Oct 13, 2013

hi there,
when I youtube-dl a playlist from youtube, youtube-dl does not skip private videos, instead it's just stopping the script.

i had a look around and did not find a solution for that :(

@benovic
Copy link
Author

benovic commented Oct 13, 2013

It's more of a feature request than a bug. I did a quick look in the python files but couldn't track it down due to user incompetence.

@jaimeMF
Copy link
Collaborator

jaimeMF commented Oct 13, 2013

Please post the output of youtube-dl {THE_PLAYLIST_URL} -v, so that we can test it and find a solution.

@benovic
Copy link
Author

benovic commented Oct 13, 2013

Playlist is 3 videos:
public
private
public

Here ya go:

[bg@bundesnachrichtendienst random]$ youtube-dl http://www.youtube.com/playlist?list=PLX0g748fkegS54oiDN4AXKl7BR7mLIydP -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/playlist?list=PLX0g748fkegS54oiDN4AXKl7BR7mLIydP', '-v']
WARNING: Assuming --restrict-filenames isnce file system encoding cannot encode all charactes. Set the LC_ALL environment variable to fix this.
[debug] youtube-dl version 2013.10.07
[debug] Python version 3.3.2 - Linux-3.11.4-1-ARCH-x86_64-with-arch
[debug] Proxy map: {}
[youtube:playlist] PLX0g748fkegS54oiDN4AXKl7BR7mLIydP: Downloading page #1
[youtube:playlist] PLX0g748fkegS54oiDN4AXKl7BR7mLIydP: Downloading page #2
[download] Downloading playlist: ytdl_test
[youtube:playlist] playlist 'ytdl_test': Collected 3 video ids (downloading 3 of them)
[download] Downloading video #1 of 3
[youtube] Setting language
[youtube] eL8FVkTVP_g: Downloading video webpage
[youtube] eL8FVkTVP_g: Downloading video info webpage
[youtube] eL8FVkTVP_g: Extracting video information
[download] Destination: What_is_this_216_number_Sol_Kinetic_Typography_inspired_by_the_movie_PI_-_made_in_Blender_3D-eL8FVkTVP_g.mp4
[download] 100% of 31.91MiB in 00:19
[download] Downloading video #2 of 3
[youtube] S9c1s1kir8M: Downloading video webpage
[youtube] S9c1s1kir8M: Downloading video info webpage
ERROR: YouTube said: This video is private.
Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 348, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/common.py", line 117, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.3/site-packages/youtube_dl/extractor/youtube.py", line 1310, in _real_extract
    raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0], expected=True)
youtube_dl.utils.ExtractorError: YouTube said: This video is private.

@phihag
Copy link
Contributor

phihag commented Oct 13, 2013

By convention, all shell programs abort if they encounter any error (for example, the user may have forgotten to specify the --user and --password options to log in to get all his videos, including the private ones). You can simply pass in the -i option to advise youtube-dl to skip videos it can't download. We may make that the default in future versions.

@phihag phihag closed this as completed Oct 13, 2013
@benovic
Copy link
Author

benovic commented Oct 13, 2013

Thank you and sorry for taking your time on a non-issue. I have used a shell that doesn't scroll up enough to display the -i option.

@andrewgdunn
Copy link

Thanks for posting this, I didn't know that --ignore-errors would resolve the issue until finding it.

@nigawtesterb
Copy link

thank you for this. It solved my issue as well :)

@vatsarahul999
Copy link

Me too

@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants