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