mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 19:02:58 +08:00
youtube filter request
This commit is contained in:
parent
954529c10f
commit
d4144238b1
@ -1206,6 +1206,9 @@ from .youtube import (
|
|||||||
YoutubeRecommendedIE,
|
YoutubeRecommendedIE,
|
||||||
YoutubeSearchDateIE,
|
YoutubeSearchDateIE,
|
||||||
YoutubeSearchIE,
|
YoutubeSearchIE,
|
||||||
|
YoutubeSearchHDIE,
|
||||||
|
YoutubeSearch4kIE,
|
||||||
|
YoutubeSearchCCIE,
|
||||||
YoutubeSearchURLIE,
|
YoutubeSearchURLIE,
|
||||||
YoutubeSharedVideoIE,
|
YoutubeSharedVideoIE,
|
||||||
YoutubeShowIE,
|
YoutubeShowIE,
|
||||||
|
@ -2305,6 +2305,25 @@ class YoutubeSearchDateIE(YoutubeSearchIE):
|
|||||||
IE_DESC = 'YouTube.com searches, newest videos first'
|
IE_DESC = 'YouTube.com searches, newest videos first'
|
||||||
_EXTRA_QUERY_ARGS = {'search_sort': 'video_date_uploaded'}
|
_EXTRA_QUERY_ARGS = {'search_sort': 'video_date_uploaded'}
|
||||||
|
|
||||||
|
class YoutubeSearchCCIE(YoutubeSearchIE):
|
||||||
|
IE_NAME = YoutubeSearchIE.IE_NAME + ':creative_commons'
|
||||||
|
_SEARCH_KEY = 'ytsearchcc'
|
||||||
|
IE_DESC = 'YouTube.com searches by creative commons filter'
|
||||||
|
_EXTRA_QUERY_ARGS = {'filters':'creativecommons'}
|
||||||
|
|
||||||
|
|
||||||
|
class YoutubeSearch4kIE(YoutubeSearchIE):
|
||||||
|
IE_NAME = YoutubeSearchIE.IE_NAME + ':4k'
|
||||||
|
_SEARCH_KEY = 'ytsearch4k'
|
||||||
|
IE_DESC = 'YouTube.com searches by 4k filter'
|
||||||
|
_EXTRA_QUERY_ARGS = {'filters':'4k'}
|
||||||
|
|
||||||
|
class YoutubeSearchHDIE(YoutubeSearchIE):
|
||||||
|
IE_NAME = YoutubeSearchIE.IE_NAME + ':HD'
|
||||||
|
_SEARCH_KEY = 'ytsearchhd'
|
||||||
|
IE_DESC = 'YouTube.com searches by HD filter'
|
||||||
|
_EXTRA_QUERY_ARGS = {'filters':'hd'}
|
||||||
|
|
||||||
|
|
||||||
class YoutubeSearchURLIE(YoutubePlaylistBaseInfoExtractor):
|
class YoutubeSearchURLIE(YoutubePlaylistBaseInfoExtractor):
|
||||||
IE_DESC = 'YouTube.com search URLs'
|
IE_DESC = 'YouTube.com search URLs'
|
||||||
|
Loading…
Reference in New Issue
Block a user