[ehow] improve minor bits
[youtube-dl] / youtube_dl / extractor / __init__.py
1 from .archiveorg import ArchiveOrgIE
2 from .ard import ARDIE
3 from .arte import ArteTvIE
4 from .auengine import AUEngineIE
5 from .bandcamp import BandcampIE
6 from .bliptv import BlipTVIE, BlipTVUserIE
7 from .breakcom import BreakIE
8 from .brightcove import BrightcoveIE
9 from .collegehumor import CollegeHumorIE
10 from .comedycentral import ComedyCentralIE
11 from .cspan import CSpanIE
12 from .dailymotion import DailymotionIE
13 from .depositfiles import DepositFilesIE
14 from .dotsub import DotsubIE
15 from .dreisat import DreiSatIE
16 from .ehow import EHowIE
17 from .eighttracks import EightTracksIE
18 from .escapist import EscapistIE
19 from .facebook import FacebookIE
20 from .flickr import FlickrIE
21 from .funnyordie import FunnyOrDieIE
22 from .gamespot import GameSpotIE
23 from .gametrailers import GametrailersIE
24 from .generic import GenericIE
25 from .googleplus import GooglePlusIE
26 from .googlesearch import GoogleSearchIE
27 from .hotnewhiphop import HotNewHipHopIE
28 from .howcast import HowcastIE
29 from .hypem import HypemIE
30 from .ina import InaIE
31 from .infoq import InfoQIE
32 from .instagram import InstagramIE
33 from .jukebox import JukeboxIE
34 from .justintv import JustinTVIE
35 from .keek import KeekIE
36 from .liveleak import LiveLeakIE
37 from .metacafe import MetacafeIE
38 from .mixcloud import MixcloudIE
39 from .mtv import MTVIE
40 from .myspass import MySpassIE
41 from .myvideo import MyVideoIE
42 from .nba import NBAIE
43 from .photobucket import PhotobucketIE
44 from .pornotube import PornotubeIE
45 from .rbmaradio import RBMARadioIE
46 from .redtube import RedTubeIE
47 from .ringtv import RingTVIE
48 from .soundcloud import SoundcloudIE, SoundcloudSetIE
49 from .spiegel import SpiegelIE
50 from .stanfordoc import StanfordOpenClassroomIE
51 from .statigram import StatigramIE
52 from .steam import SteamIE
53 from .teamcoco import TeamcocoIE
54 from .ted import TEDIE
55 from .tf1 import TF1IE
56 from .traileraddict import TrailerAddictIE
57 from .tudou import TudouIE
58 from .tumblr import TumblrIE
59 from .tutv import TutvIE
60 from .ustream import UstreamIE
61 from .vbox7 import Vbox7IE
62 from .veoh import VeohIE
63 from .vevo import VevoIE
64 from .vimeo import VimeoIE
65 from .vine import VineIE
66 from .wat import WatIE
67 from .wimp import WimpIE
68 from .worldstarhiphop import WorldStarHipHopIE
69 from .xhamster import XHamsterIE
70 from .xnxx import XNXXIE
71 from .xvideos import XVideosIE
72 from .yahoo import YahooIE, YahooSearchIE
73 from .youjizz import YouJizzIE
74 from .youku import YoukuIE
75 from .youporn import YouPornIE
76 from .youtube import (
77     YoutubeIE,
78     YoutubePlaylistIE,
79     YoutubeSearchIE,
80     YoutubeUserIE,
81     YoutubeChannelIE,
82     YoutubeShowIE,
83     YoutubeSubscriptionsIE,
84 )
85 from .zdf import ZDFIE
86
87
88 _ALL_CLASSES = [
89     klass
90     for name, klass in globals().items()
91     if name.endswith('IE') and name != 'GenericIE'
92 ]
93 _ALL_CLASSES.append(GenericIE)
94
95 def gen_extractors():
96     """ Return a list of an instance of every supported extractor.
97     The order does matter; the first extractor matched is the one handling the URL.
98     """
99     return [klass() for klass in _ALL_CLASSES]
100
101 def get_info_extractor(ie_name):
102     """Returns the info extractor class with the given ie_name"""
103     return globals()[ie_name+'IE']