[addanime] improve
[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 ArteTvIE
6 from .auengine import AUEngineIE
7 from .bandcamp import BandcampIE
8 from .bliptv import BlipTVIE, BlipTVUserIE
9 from .breakcom import BreakIE
10 from .brightcove import BrightcoveIE
11 from .c56 import C56IE
12 from .canalplus import CanalplusIE
13 from .canalc2 import Canalc2IE
14 from .cnn import CNNIE
15 from .collegehumor import CollegeHumorIE
16 from .comedycentral import ComedyCentralIE
17 from .condenast import CondeNastIE
18 from .criterion import CriterionIE
19 from .cspan import CSpanIE
20 from .dailymotion import DailymotionIE, DailymotionPlaylistIE
21 from .depositfiles import DepositFilesIE
22 from .dotsub import DotsubIE
23 from .dreisat import DreiSatIE
24 from .ehow import EHowIE
25 from .eighttracks import EightTracksIE
26 from .escapist import EscapistIE
27 from .exfm import ExfmIE
28 from .facebook import FacebookIE
29 from .flickr import FlickrIE
30 from .freesound import FreesoundIE
31 from .funnyordie import FunnyOrDieIE
32 from .gamespot import GameSpotIE
33 from .gametrailers import GametrailersIE
34 from .generic import GenericIE
35 from .googleplus import GooglePlusIE
36 from .googlesearch import GoogleSearchIE
37 from .hark import HarkIE
38 from .hotnewhiphop import HotNewHipHopIE
39 from .howcast import HowcastIE
40 from .hypem import HypemIE
41 from .ign import IGNIE, OneUPIE
42 from .ina import InaIE
43 from .infoq import InfoQIE
44 from .instagram import InstagramIE
45 from .jeuxvideo import JeuxVideoIE
46 from .jukebox import JukeboxIE
47 from .justintv import JustinTVIE
48 from .kankan import KankanIE
49 from .keek import KeekIE
50 from .liveleak import LiveLeakIE
51 from .livestream import LivestreamIE
52 from .metacafe import MetacafeIE
53 from .mixcloud import MixcloudIE
54 from .mtv import MTVIE
55 from .muzu import MuzuTVIE
56 from .myspass import MySpassIE
57 from .myvideo import MyVideoIE
58 from .nba import NBAIE
59 from .nbc import NBCNewsIE
60 from .ooyala import OoyalaIE
61 from .pbs import PBSIE
62 from .photobucket import PhotobucketIE
63 from .pornotube import PornotubeIE
64 from .rbmaradio import RBMARadioIE
65 from .redtube import RedTubeIE
66 from .ringtv import RingTVIE
67 from .ro220 import Ro220IE
68 from .roxwel import RoxwelIE
69 from .rtlnow import RTLnowIE
70 from .sina import SinaIE
71 from .slashdot import SlashdotIE
72 from .soundcloud import SoundcloudIE, SoundcloudSetIE
73 from .spiegel import SpiegelIE
74 from .stanfordoc import StanfordOpenClassroomIE
75 from .statigram import StatigramIE
76 from .steam import SteamIE
77 from .teamcoco import TeamcocoIE
78 from .ted import TEDIE
79 from .tf1 import TF1IE
80 from .thisav import ThisAVIE
81 from .traileraddict import TrailerAddictIE
82 from .trilulilu import TriluliluIE
83 from .tudou import TudouIE
84 from .tumblr import TumblrIE
85 from .tutv import TutvIE
86 from .unistra import UnistraIE
87 from .ustream import UstreamIE
88 from .vbox7 import Vbox7IE
89 from .veoh import VeohIE
90 from .vevo import VevoIE
91 from .videofyme import VideofyMeIE
92 from .vimeo import VimeoIE, VimeoChannelIE
93 from .vine import VineIE
94 from .wat import WatIE
95 from .weibo import WeiboIE
96 from .wimp import WimpIE
97 from .worldstarhiphop import WorldStarHipHopIE
98 from .xhamster import XHamsterIE
99 from .xnxx import XNXXIE
100 from .xvideos import XVideosIE
101 from .yahoo import YahooIE, YahooSearchIE
102 from .youjizz import YouJizzIE
103 from .youku import YoukuIE
104 from .youporn import YouPornIE
105 from .youtube import (
106     YoutubeIE,
107     YoutubePlaylistIE,
108     YoutubeSearchIE,
109     YoutubeUserIE,
110     YoutubeChannelIE,
111     YoutubeShowIE,
112     YoutubeSubscriptionsIE,
113     YoutubeRecommendedIE,
114     YoutubeWatchLaterIE,
115     YoutubeFavouritesIE,
116 )
117 from .zdf import ZDFIE
118
119
120 _ALL_CLASSES = [
121     klass
122     for name, klass in globals().items()
123     if name.endswith('IE') and name != 'GenericIE'
124 ]
125 _ALL_CLASSES.append(GenericIE)
126
127
128 def gen_extractors():
129     """ Return a list of an instance of every supported extractor.
130     The order does matter; the first extractor matched is the one handling the URL.
131     """
132     return [klass() for klass in _ALL_CLASSES]
133
134
135 def get_info_extractor(ie_name):
136     """Returns the info extractor class with the given ie_name"""
137     return globals()[ie_name+'IE']