diff options
author | Philipp Hagemeister <[email protected]> | 2013-01-01 19:37:07 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-01-01 19:37:07 +0100 |
commit | 4aeae91f86f7ec1cb68a43acd003d6c6109e91f6 (patch) | |
tree | 446c185dc19e0769b429ab063476198707508b84 /youtube_dl/InfoExtractors.py | |
parent | c073e35b1ed738461eba5cc539923d8fa539b03a (diff) | |
download | youtube-dl-4aeae91f86f7ec1cb68a43acd003d6c6109e91f6.tar.gz youtube-dl-4aeae91f86f7ec1cb68a43acd003d6c6109e91f6.zip |
Move gen_extractors to InfoExtractors
Diffstat (limited to 'youtube_dl/InfoExtractors.py')
-rwxr-xr-x | youtube_dl/InfoExtractors.py | 50 |
1 files changed, 48 insertions, 2 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 3dad82835..33669920d 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -3764,7 +3764,7 @@ class SteamIE(InfoExtractor): (?P<videoID>\d*)(?P<extra>\??) #For urltype == video we sometimes get the videoID """ IE_NAME = u'Steam' - + def suitable(self, url): """Receives a URL and returns True if suitable for this IE.""" return re.match(self._VALID_URL, url, re.VERBOSE) is not None @@ -3833,4 +3833,50 @@ class UstreamIE(InfoExtractor): 'uploader': uploader } return [info] - pass + + +def gen_extractors(): + """ Return a list of an instance of every supported extractor. + The order does matter; the first extractor matched is the one handling the URL. + """ + return [ + YoutubePlaylistIE(), + YoutubeChannelIE(), + YoutubeUserIE(), + YoutubeSearchIE(), + YoutubeIE(), + MetacafeIE(), + DailymotionIE(), + GoogleSearchIE(), + PhotobucketIE(), + YahooIE(), + YahooSearchIE(), + DepositFilesIE(), + FacebookIE(), + BlipTVUserIE(), + BlipTVIE(), + VimeoIE(), + MyVideoIE(), + ComedyCentralIE(), + EscapistIE(), + CollegeHumorIE(), + XVideosIE(), + SoundcloudIE(), + InfoQIE(), + MixcloudIE(), + StanfordOpenClassroomIE(), + MTVIE(), + YoukuIE(), + XNXXIE(), + GooglePlusIE(), + ArteTvIE(), + NBAIE(), + JustinTVIE(), + FunnyOrDieIE(), + TweetReelIE(), + SteamIE(), + UstreamIE(), + GenericIE() + ] + + |