Merge remote-tracking branch 'mharrys/aftonbladet'
[youtube-dl] / youtube_dl / extractor / __init__.py
1 from .academicearth import AcademicEarthCourseIE
2 from .addanime import AddAnimeIE
3 from .aftonbladet import AftonbladetIE
4 from .anitube import AnitubeIE
5 from .aparat import AparatIE
6 from .appletrailers import AppleTrailersIE
7 from .archiveorg import ArchiveOrgIE
8 from .ard import ARDIE
9 from .arte import (
10     ArteTvIE,
11     ArteTVPlus7IE,
12     ArteTVCreativeIE,
13     ArteTVFutureIE,
14     ArteTVDDCIE,
15 )
16 from .auengine import AUEngineIE
17 from .bambuser import BambuserIE, BambuserChannelIE
18 from .bandcamp import BandcampIE, BandcampAlbumIE
19 from .bbccouk import BBCCoUkIE
20 from .blinkx import BlinkxIE
21 from .bliptv import BlipTVIE, BlipTVUserIE
22 from .bloomberg import BloombergIE
23 from .br import BRIE
24 from .breakcom import BreakIE
25 from .brightcove import BrightcoveIE
26 from .c56 import C56IE
27 from .canal13cl import Canal13clIE
28 from .canalplus import CanalplusIE
29 from .canalc2 import Canalc2IE
30 from .cbs import CBSIE
31 from .ceskatelevize import CeskaTelevizeIE
32 from .channel9 import Channel9IE
33 from .chilloutzone import ChilloutzoneIE
34 from .cinemassacre import CinemassacreIE
35 from .clipfish import ClipfishIE
36 from .cliphunter import CliphunterIE
37 from .clipsyndicate import ClipsyndicateIE
38 from .cmt import CMTIE
39 from .cnn import (
40     CNNIE,
41     CNNBlogsIE,
42 )
43 from .collegehumor import CollegeHumorIE
44 from .comedycentral import ComedyCentralIE, ComedyCentralShowsIE
45 from .condenast import CondeNastIE
46 from .criterion import CriterionIE
47 from .crunchyroll import CrunchyrollIE
48 from .cspan import CSpanIE
49 from .d8 import D8IE
50 from .dailymotion import (
51     DailymotionIE,
52     DailymotionPlaylistIE,
53     DailymotionUserIE,
54 )
55 from .daum import DaumIE
56 from .depositfiles import DepositFilesIE
57 from .dotsub import DotsubIE
58 from .dreisat import DreiSatIE
59 from .defense import DefenseGouvFrIE
60 from .discovery import DiscoveryIE
61 from .dropbox import DropboxIE
62 from .ebaumsworld import EbaumsWorldIE
63 from .ehow import EHowIE
64 from .eighttracks import EightTracksIE
65 from .eitb import EitbIE
66 from .elpais import ElPaisIE
67 from .escapist import EscapistIE
68 from .everyonesmixtape import EveryonesMixtapeIE
69 from .exfm import ExfmIE
70 from .extremetube import ExtremeTubeIE
71 from .facebook import FacebookIE
72 from .faz import FazIE
73 from .firstpost import FirstpostIE
74 from .firsttv import FirstTVIE
75 from .fktv import (
76     FKTVIE,
77     FKTVPosteckeIE,
78 )
79 from .flickr import FlickrIE
80 from .fourtube import FourTubeIE
81 from .franceinter import FranceInterIE
82 from .francetv import (
83     PluzzIE,
84     FranceTvInfoIE,
85     FranceTVIE,
86     GenerationQuoiIE,
87     CultureboxIE,
88 )
89 from .freesound import FreesoundIE
90 from .freespeech import FreespeechIE
91 from .funnyordie import FunnyOrDieIE
92 from .gamekings import GamekingsIE
93 from .gamespot import GameSpotIE
94 from .gametrailers import GametrailersIE
95 from .gdcvault import GDCVaultIE
96 from .generic import GenericIE
97 from .googleplus import GooglePlusIE
98 from .googlesearch import GoogleSearchIE
99 from .hark import HarkIE
100 from .helsinki import HelsinkiIE
101 from .hotnewhiphop import HotNewHipHopIE
102 from .howcast import HowcastIE
103 from .huffpost import HuffPostIE
104 from .hypem import HypemIE
105 from .ign import IGNIE, OneUPIE
106 from .imdb import (
107     ImdbIE,
108     ImdbListIE
109 )
110 from .ina import InaIE
111 from .infoq import InfoQIE
112 from .instagram import InstagramIE
113 from .internetvideoarchive import InternetVideoArchiveIE
114 from .iprima import IPrimaIE
115 from .ivi import (
116     IviIE,
117     IviCompilationIE
118 )
119 from .jadorecettepub import JadoreCettePubIE
120 from .jeuxvideo import JeuxVideoIE
121 from .jukebox import JukeboxIE
122 from .justintv import JustinTVIE
123 from .jpopsukitv import JpopsukiIE
124 from .kankan import KankanIE
125 from .keezmovies import KeezMoviesIE
126 from .khanacademy import KhanAcademyIE
127 from .kickstarter import KickStarterIE
128 from .keek import KeekIE
129 from .kontrtube import KontrTubeIE
130 from .la7 import LA7IE
131 from .lifenews import LifeNewsIE
132 from .liveleak import LiveLeakIE
133 from .livestream import LivestreamIE, LivestreamOriginalIE
134 from .lynda import (
135     LyndaIE,
136     LyndaCourseIE
137 )
138 from .m6 import M6IE
139 from .macgamestore import MacGameStoreIE
140 from .mailru import MailRuIE
141 from .malemotion import MalemotionIE
142 from .mdr import MDRIE
143 from .metacafe import MetacafeIE
144 from .metacritic import MetacriticIE
145 from .mit import TechTVMITIE, MITIE, OCWMITIE
146 from .mixcloud import MixcloudIE
147 from .mpora import MporaIE
148 from .mofosex import MofosexIE
149 from .mooshare import MooshareIE
150 from .mtv import (
151     MTVIE,
152     MTVIggyIE,
153 )
154 from .muzu import MuzuTVIE
155 from .myspace import MySpaceIE
156 from .myspass import MySpassIE
157 from .myvideo import MyVideoIE
158 from .naver import NaverIE
159 from .nba import NBAIE
160 from .nbc import (
161     NBCIE,
162     NBCNewsIE,
163 )
164 from .ndr import NDRIE
165 from .ndtv import NDTVIE
166 from .newgrounds import NewgroundsIE
167 from .nfb import NFBIE
168 from .nhl import NHLIE, NHLVideocenterIE
169 from .niconico import NiconicoIE
170 from .ninegag import NineGagIE
171 from .normalboots import NormalbootsIE
172 from .novamov import NovaMovIE
173 from .nowness import NownessIE
174 from .nowvideo import NowVideoIE
175 from .ooyala import OoyalaIE
176 from .orf import ORFIE
177 from .pbs import PBSIE
178 from .photobucket import PhotobucketIE
179 from .podomatic import PodomaticIE
180 from .pornhd import PornHdIE
181 from .pornhub import PornHubIE
182 from .pornotube import PornotubeIE
183 from .prosiebensat1 import ProSiebenSat1IE
184 from .pyvideo import PyvideoIE
185 from .radiofrance import RadioFranceIE
186 from .rbmaradio import RBMARadioIE
187 from .redtube import RedTubeIE
188 from .ringtv import RingTVIE
189 from .ro220 import Ro220IE
190 from .rottentomatoes import RottenTomatoesIE
191 from .roxwel import RoxwelIE
192 from .rtlnow import RTLnowIE
193 from .rutube import (
194     RutubeIE,
195     RutubeChannelIE,
196     RutubeMovieIE,
197     RutubePersonIE,
198 )
199 from .savefrom import SaveFromIE
200 from .servingsys import ServingSysIE
201 from .sina import SinaIE
202 from .slashdot import SlashdotIE
203 from .slideshare import SlideshareIE
204 from .smotri import (
205     SmotriIE,
206     SmotriCommunityIE,
207     SmotriUserIE,
208     SmotriBroadcastIE,
209 )
210 from .sohu import SohuIE
211 from .soundcloud import SoundcloudIE, SoundcloudSetIE, SoundcloudUserIE
212 from .southparkstudios import (
213     SouthParkStudiosIE,
214     SouthparkDeIE,
215 )
216 from .space import SpaceIE
217 from .spankwire import SpankwireIE
218 from .spiegel import SpiegelIE
219 from .spike import SpikeIE
220 from .stanfordoc import StanfordOpenClassroomIE
221 from .statigram import StatigramIE
222 from .steam import SteamIE
223 from .streamcloud import StreamcloudIE
224 from .streamcz import StreamCZIE
225 from .syfy import SyfyIE
226 from .sztvhu import SztvHuIE
227 from .teamcoco import TeamcocoIE
228 from .techtalks import TechTalksIE
229 from .ted import TEDIE
230 from .testurl import TestURLIE
231 from .tf1 import TF1IE
232 from .theplatform import ThePlatformIE
233 from .thisav import ThisAVIE
234 from .tinypic import TinyPicIE
235 from .toutv import TouTvIE
236 from .traileraddict import TrailerAddictIE
237 from .trilulilu import TriluliluIE
238 from .trutube import TruTubeIE
239 from .tube8 import Tube8IE
240 from .tudou import TudouIE
241 from .tumblr import TumblrIE
242 from .tutv import TutvIE
243 from .tvigle import TvigleIE
244 from .tvp import TvpIE
245 from .unistra import UnistraIE
246 from .ustream import UstreamIE, UstreamChannelIE
247 from .vbox7 import Vbox7IE
248 from .veehd import VeeHDIE
249 from .veoh import VeohIE
250 from .vesti import VestiIE
251 from .vevo import VevoIE
252 from .vice import ViceIE
253 from .viddler import ViddlerIE
254 from .videobam import VideoBamIE
255 from .videodetective import VideoDetectiveIE
256 from .videofyme import VideofyMeIE
257 from .videopremium import VideoPremiumIE
258 from .vimeo import (
259     VimeoIE,
260     VimeoChannelIE,
261     VimeoUserIE,
262     VimeoAlbumIE,
263     VimeoGroupsIE,
264     VimeoReviewIE,
265 )
266 from .vine import VineIE
267 from .viki import VikiIE
268 from .vk import VKIE
269 from .vube import VubeIE
270 from .wat import WatIE
271 from .weibo import WeiboIE
272 from .wimp import WimpIE
273 from .wistia import WistiaIE
274 from .worldstarhiphop import WorldStarHipHopIE
275 from .xhamster import XHamsterIE
276 from .xnxx import XNXXIE
277 from .xvideos import XVideosIE
278 from .xtube import XTubeIE
279 from .yahoo import (
280     YahooIE,
281     YahooNewsIE,
282     YahooSearchIE,
283 )
284 from .youjizz import YouJizzIE
285 from .youku import YoukuIE
286 from .youporn import YouPornIE
287 from .youtube import (
288     YoutubeIE,
289     YoutubeChannelIE,
290     YoutubeFavouritesIE,
291     YoutubeHistoryIE,
292     YoutubePlaylistIE,
293     YoutubeRecommendedIE,
294     YoutubeSearchDateIE,
295     YoutubeSearchIE,
296     YoutubeSearchURLIE,
297     YoutubeShowIE,
298     YoutubeSubscriptionsIE,
299     YoutubeTopListIE,
300     YoutubeTruncatedURLIE,
301     YoutubeUserIE,
302     YoutubeWatchLaterIE,
303 )
304 from .zdf import ZDFIE
305
306
307 _ALL_CLASSES = [
308     klass
309     for name, klass in globals().items()
310     if name.endswith('IE') and name != 'GenericIE'
311 ]
312 _ALL_CLASSES.append(GenericIE)
313
314
315 def gen_extractors():
316     """ Return a list of an instance of every supported extractor.
317     The order does matter; the first extractor matched is the one handling the URL.
318     """
319     return [klass() for klass in _ALL_CLASSES]
320
321
322 def get_info_extractor(ie_name):
323     """Returns the info extractor class with the given ie_name"""
324     return globals()[ie_name+'IE']