1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 17:04:33 +01:00

[cbs.com:playlist] Remove enduser guidance on filtering clips

This commit is contained in:
John Hawkinson 2017-03-25 12:11:22 -04:00
parent a019668cbd
commit 8660a6b1b1

View File

@ -93,19 +93,6 @@ class CBSShowIE(InfoExtractor):
except RegexNotFoundError: except RegexNotFoundError:
clips = { 'entries': [] } clips = { 'entries': [] }
# We separately retrieve a carousel of full episodes, and also one of clips.
# Clips are identifiable as such because they lack an "episode_number" field,
# unlike full episodes.
#
# It might be desirable to specify only retrieving a playlist of one or the other,
# but there isn't a good way for users to pass such parameters to InfoExtractors
# (custom URLs, maybe? With cbs: URLs?).
#
# But since the playlist is filterable, only full episodes can be returned with:
# youtube_dl --match-filter 'episode_number' http://...
# and similarly, only clips can be returned with:
# youtube_dl --match-filter '!episode_number' http://...
playlist = self.carousel_playlist(episodes_url, 'episodes') playlist = self.carousel_playlist(episodes_url, 'episodes')
playlist['entries'] += clips['entries'] playlist['entries'] += clips['entries']
playlist['id'] = show['id'] playlist['id'] = show['id']