20dec216c4a75d8f85a8716abd7de83643a7c60b
[youtube-dl] / youtube_dl / extractor / __init__.py
1
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 .collegehumor import CollegeHumorIE
9 from .comedycentral import ComedyCentralIE
10 from .cspan import CSpanIE
11 from .dailymotion import DailymotionIE
12 from .depositfiles import DepositFilesIE
13 from .eighttracks import EightTracksIE
14 from .escapist import EscapistIE
15 from .facebook import FacebookIE
16 from .flickr import FlickrIE
17 from .funnyordie import FunnyOrDieIE
18 from .gametrailers import GametrailersIE
19 from .generic import GenericIE
20 from .googleplus import GooglePlusIE
21 from .googlesearch import GoogleSearchIE
22 from .hotnewhiphop import HotNewHipHopIE
23 from .howcast import HowcastIE
24 from .hypem import HypemIE
25 from .ina import InaIE
26 from .infoq import InfoQIE
27 from .jukebox import JukeboxIE
28 from .justintv import JustinTVIE
29 from .keek import KeekIE
30 from .liveleak import LiveLeakIE
31 from .metacafe import MetacafeIE
32 from .mixcloud import MixcloudIE
33 from .mtv import MTVIE
34 from .myspass import MySpassIE
35 from .myvideo import MyVideoIE
36 from .nba import NBAIE
37 from .photobucket import PhotobucketIE
38 from .pornotube import PornotubeIE
39 from .rbmaradio import RBMARadioIE
40 from .redtube import RedTubeIE
41 from .soundcloud import SoundcloudIE, SoundcloudSetIE
42 from .spiegel import SpiegelIE
43 from .stanfordoc import StanfordOpenClassroomIE
44 from .statigram import StatigramIE
45 from .steam import SteamIE
46 from .teamcoco import TeamcocoIE
47 from .ted import TEDIE
48 from .tudou import TudouIE
49 from .tumblr import TumblrIE
50 from .ustream import UstreamIE
51 from .vbox7 import Vbox7IE
52 from .vevo import VevoIE
53 from .vimeo import VimeoIE
54 from .vine import VineIE
55 from .wimp import WimpIE
56 from .worldstarhiphop import WorldStarHipHopIE
57 from .xhamster import XHamsterIE
58 from .xnxx import XNXXIE
59 from .xvideos import XVideosIE
60 from .yahoo import YahooIE, YahooSearchIE
61 from .youjizz import YouJizzIE
62 from .youku import YoukuIE
63 from .youporn import YouPornIE
64 from .youtube import YoutubeIE, YoutubePlaylistIE, YoutubeSearchIE, YoutubeUserIE, YoutubeChannelIE
65 from .zdf import ZDFIE
66
67 _ALL_CLASSES = [
68     klass
69     for name, klass in globals().items()
70     if name.endswith('IE') and name != 'GenericIE'
71 ]
72 _ALL_CLASSES.append(GenericIE)
73
74 def gen_extractors():
75     """ Return a list of an instance of every supported extractor.
76     The order does matter; the first extractor matched is the one handling the URL.
77     """
78     return [klass() for klass in _ALL_CLASSES]
79
80 def get_info_extractor(ie_name):
81     """Returns the info extractor class with the given ie_name"""
82     return globals()[ie_name+'IE']