Merge pull request #1758 from migbac/master
[youtube-dl] / youtube_dl / extractor / __init__.py
1 from .appletrailers import AppleTrailersIE
2 from .addanime import AddAnimeIE
3 from .archiveorg import ArchiveOrgIE
4 from .ard import ARDIE
5 from .arte import (
6     ArteTvIE,
7     ArteTVPlus7IE,
8     ArteTVCreativeIE,
9     ArteTVFutureIE,
10 )
11 from .auengine import AUEngineIE
12 from .bambuser import BambuserIE, BambuserChannelIE
13 from .bandcamp import BandcampIE
14 from .bliptv import BlipTVIE, BlipTVUserIE
15 from .bloomberg import BloombergIE
16 from .breakcom import BreakIE
17 from .brightcove import BrightcoveIE
18 from .c56 import C56IE
19 from .canalplus import CanalplusIE
20 from .canalc2 import Canalc2IE
21 from .cinemassacre import CinemassacreIE
22 from .cnn import CNNIE
23 from .collegehumor import CollegeHumorIE
24 from .comedycentral import ComedyCentralIE
25 from .condenast import CondeNastIE
26 from .criterion import CriterionIE
27 from .cspan import CSpanIE
28 from .d8 import D8IE
29 from .dailymotion import (
30     DailymotionIE,
31     DailymotionPlaylistIE,
32     DailymotionUserIE,
33 )
34 from .daum import DaumIE
35 from .depositfiles import DepositFilesIE
36 from .dotsub import DotsubIE
37 from .dreisat import DreiSatIE
38 from .defense import DefenseGouvFrIE
39 from .ebaumsworld import EbaumsWorldIE
40 from .ehow import EHowIE
41 from .eighttracks import EightTracksIE
42 from .eitb import EitbIE
43 from .escapist import EscapistIE
44 from .exfm import ExfmIE
45 from .extremetube import ExtremeTubeIE
46 from .facebook import FacebookIE
47 from .faz import FazIE
48 from .fktv import (
49     FKTVIE,
50     FKTVPosteckeIE,
51 )
52 from .flickr import FlickrIE
53 from .francetv import (
54     PluzzIE,
55     FranceTvInfoIE,
56     France2IE,
57     GenerationQuoiIE
58 )
59 from .freesound import FreesoundIE
60 from .funnyordie import FunnyOrDieIE
61 from .gamekings import GamekingsIE
62 from .gamespot import GameSpotIE
63 from .gametrailers import GametrailersIE
64 from .generic import GenericIE
65 from .googleplus import GooglePlusIE
66 from .googlesearch import GoogleSearchIE
67 from .hark import HarkIE
68 from .hotnewhiphop import HotNewHipHopIE
69 from .howcast import HowcastIE
70 from .hypem import HypemIE
71 from .ign import IGNIE, OneUPIE
72 from .ina import InaIE
73 from .infoq import InfoQIE
74 from .instagram import InstagramIE
75 from .internetvideoarchive import InternetVideoArchiveIE
76 from .jeuxvideo import JeuxVideoIE
77 from .jukebox import JukeboxIE
78 from .justintv import JustinTVIE
79 from .kankan import KankanIE
80 from .keezmovies import KeezMoviesIE
81 from .kickstarter import KickStarterIE
82 from .keek import KeekIE
83 from .liveleak import LiveLeakIE
84 from .livestream import LivestreamIE, LivestreamOriginalIE
85 from .metacafe import MetacafeIE
86 from .metacritic import MetacriticIE
87 from .mit import TechTVMITIE, MITIE
88 from .mixcloud import MixcloudIE
89 from .mofosex import MofosexIE
90 from .mtv import MTVIE
91 from .muzu import MuzuTVIE
92 from .myspace import MySpaceIE
93 from .myspass import MySpassIE
94 from .myvideo import MyVideoIE
95 from .naver import NaverIE
96 from .nba import NBAIE
97 from .nbc import NBCNewsIE
98 from .newgrounds import NewgroundsIE
99 from .nhl import NHLIE, NHLVideocenterIE
100 from .nowvideo import NowVideoIE
101 from .ooyala import OoyalaIE
102 from .orf import ORFIE
103 from .pbs import PBSIE
104 from .photobucket import PhotobucketIE
105 from .pornhub import PornHubIE
106 from .pornotube import PornotubeIE
107 from .rbmaradio import RBMARadioIE
108 from .redtube import RedTubeIE
109 from .ringtv import RingTVIE
110 from .ro220 import Ro220IE
111 from .rottentomatoes import RottenTomatoesIE
112 from .roxwel import RoxwelIE
113 from .rtlnow import RTLnowIE
114 from .rutube import RutubeIE
115 from .sina import SinaIE
116 from .slashdot import SlashdotIE
117 from .slideshare import SlideshareIE
118 from .sohu import SohuIE
119 from .soundcloud import SoundcloudIE, SoundcloudSetIE, SoundcloudUserIE
120 from .southparkstudios import (
121     SouthParkStudiosIE,
122     SouthparkDeIE,
123 )
124 from .space import SpaceIE
125 from .spankwire import SpankwireIE
126 from .spiegel import SpiegelIE
127 from .stanfordoc import StanfordOpenClassroomIE
128 from .statigram import StatigramIE
129 from .steam import SteamIE
130 from .sztvhu import SztvHuIE
131 from .teamcoco import TeamcocoIE
132 from .techtalks import TechTalksIE
133 from .ted import TEDIE
134 from .tf1 import TF1IE
135 from .thisav import ThisAVIE
136 from .traileraddict import TrailerAddictIE
137 from .trilulilu import TriluliluIE
138 from .tube8 import Tube8IE
139 from .tudou import TudouIE
140 from .tumblr import TumblrIE
141 from .tutv import TutvIE
142 from .tvp import TvpIE
143 from .unistra import UnistraIE
144 from .ustream import UstreamIE, UstreamChannelIE
145 from .vbox7 import Vbox7IE
146 from .veehd import VeeHDIE
147 from .veoh import VeohIE
148 from .vevo import VevoIE
149 from .vice import ViceIE
150 from .viddler import ViddlerIE
151 from .videodetective import VideoDetectiveIE
152 from .videofyme import VideofyMeIE
153 from .videopremium import VideoPremiumIE
154 from .vimeo import VimeoIE, VimeoChannelIE
155 from .vine import VineIE
156 from .vk import VKIE
157 from .wat import WatIE
158 from .websurg import WeBSurgIE
159 from .weibo import WeiboIE
160 from .wimp import WimpIE
161 from .worldstarhiphop import WorldStarHipHopIE
162 from .xhamster import XHamsterIE
163 from .xnxx import XNXXIE
164 from .xvideos import XVideosIE
165 from .xtube import XTubeIE
166 from .yahoo import YahooIE, YahooSearchIE
167 from .youjizz import YouJizzIE
168 from .youku import YoukuIE
169 from .youporn import YouPornIE
170 from .youtube import (
171     YoutubeIE,
172     YoutubePlaylistIE,
173     YoutubeSearchIE,
174     YoutubeSearchDateIE,
175     YoutubeUserIE,
176     YoutubeChannelIE,
177     YoutubeShowIE,
178     YoutubeSubscriptionsIE,
179     YoutubeRecommendedIE,
180     YoutubeTruncatedURLIE,
181     YoutubeWatchLaterIE,
182     YoutubeFavouritesIE,
183 )
184 from .zdf import ZDFIE
185
186
187 _ALL_CLASSES = [
188     klass
189     for name, klass in globals().items()
190     if name.endswith('IE') and name != 'GenericIE'
191 ]
192 _ALL_CLASSES.append(GenericIE)
193
194
195 def gen_extractors():
196     """ Return a list of an instance of every supported extractor.
197     The order does matter; the first extractor matched is the one handling the URL.
198     """
199     return [klass() for klass in _ALL_CLASSES]
200
201
202 def get_info_extractor(ie_name):
203     """Returns the info extractor class with the given ie_name"""
204     return globals()[ie_name+'IE']