diff options
author | Anisse Astier <anisse@astier.eu> | 2013-06-13 23:42:48 +0200 |
---|---|---|
committer | Anisse Astier <anisse@astier.eu> | 2013-06-13 23:45:32 +0200 |
commit | 88cebbd7b8ce5c564adecdfdd6a41ba76193fa26 (patch) | |
tree | 8849ce1c40613863bf25395cd6b0397ba0bf3a03 /youtube_dl/InfoExtractors.py | |
parent | fb8f7280bce30d45009c429f0095a9d15cbc9de2 (diff) |
YoutubePlaylistIE: get *all* videos
For that, we add parameter safeSearch=none that asks youtube not filter
results before sending them to us.
Note: this parameter could be added to YoutubeSearchIE and YoutubeUserIE
as well, but I don't know what would be the impact in term of unwanted
results. Maybe expose that as a parameter? For a playlist it's different
since the user chose what she put in the playlist.
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 33ba0fdd1..39278a2e9 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -1544,7 +1544,7 @@ class YoutubePlaylistIE(InfoExtractor): | ((?:PL|EC|UU)[0-9A-Za-z-_]{10,}) )""" - _TEMPLATE_URL = 'https://gdata.youtube.com/feeds/api/playlists/%s?max-results=%i&start-index=%i&v=2&alt=json' + _TEMPLATE_URL = 'https://gdata.youtube.com/feeds/api/playlists/%s?max-results=%i&start-index=%i&v=2&alt=json&safeSearch=none' _MAX_RESULTS = 50 IE_NAME = u'youtube:playlist' |