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