You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

610 lines
17 KiB

11 years ago
11 years ago
12 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
12 years ago
11 years ago
  1. from __future__ import unicode_literals
  2. from .abc import ABCIE
  3. from .abc7news import Abc7NewsIE
  4. from .academicearth import AcademicEarthCourseIE
  5. from .addanime import AddAnimeIE
  6. from .adobetv import AdobeTVIE
  7. from .adultswim import AdultSwimIE
  8. from .aftonbladet import AftonbladetIE
  9. from .aljazeera import AlJazeeraIE
  10. from .alphaporno import AlphaPornoIE
  11. from .anitube import AnitubeIE
  12. from .anysex import AnySexIE
  13. from .aol import AolIE
  14. from .allocine import AllocineIE
  15. from .aparat import AparatIE
  16. from .appletrailers import AppleTrailersIE
  17. from .archiveorg import ArchiveOrgIE
  18. from .ard import ARDIE, ARDMediathekIE
  19. from .arte import (
  20. ArteTvIE,
  21. ArteTVPlus7IE,
  22. ArteTVCreativeIE,
  23. ArteTVConcertIE,
  24. ArteTVFutureIE,
  25. ArteTVDDCIE,
  26. ArteTVEmbedIE,
  27. )
  28. from .atresplayer import AtresPlayerIE
  29. from .atttechchannel import ATTTechChannelIE
  30. from .audiomack import AudiomackIE, AudiomackAlbumIE
  31. from .azubu import AzubuIE
  32. from .bambuser import BambuserIE, BambuserChannelIE
  33. from .bandcamp import BandcampIE, BandcampAlbumIE
  34. from .bbccouk import BBCCoUkIE
  35. from .beeg import BeegIE
  36. from .behindkink import BehindKinkIE
  37. from .bet import BetIE
  38. from .bild import BildIE
  39. from .bilibili import BiliBiliIE
  40. from .blinkx import BlinkxIE
  41. from .bliptv import BlipTVIE, BlipTVUserIE
  42. from .bloomberg import BloombergIE
  43. from .bpb import BpbIE
  44. from .br import BRIE
  45. from .breakcom import BreakIE
  46. from .brightcove import BrightcoveIE
  47. from .buzzfeed import BuzzFeedIE
  48. from .byutv import BYUtvIE
  49. from .c56 import C56IE
  50. from .canal13cl import Canal13clIE
  51. from .canalplus import CanalplusIE
  52. from .canalc2 import Canalc2IE
  53. from .cbs import CBSIE
  54. from .cbsnews import CBSNewsIE
  55. from .ceskatelevize import CeskaTelevizeIE
  56. from .channel9 import Channel9IE
  57. from .chilloutzone import ChilloutzoneIE
  58. from .cinchcast import CinchcastIE
  59. from .clipfish import ClipfishIE
  60. from .cliphunter import CliphunterIE
  61. from .clipsyndicate import ClipsyndicateIE
  62. from .cloudy import CloudyIE
  63. from .clubic import ClubicIE
  64. from .cmt import CMTIE
  65. from .cnet import CNETIE
  66. from .cnn import (
  67. CNNIE,
  68. CNNBlogsIE,
  69. CNNArticleIE,
  70. )
  71. from .collegehumor import CollegeHumorIE
  72. from .collegerama import CollegeRamaIE
  73. from .comedycentral import ComedyCentralIE, ComedyCentralShowsIE
  74. from .comcarcoff import ComCarCoffIE
  75. from .commonmistakes import CommonMistakesIE
  76. from .condenast import CondeNastIE
  77. from .cracked import CrackedIE
  78. from .criterion import CriterionIE
  79. from .crunchyroll import (
  80. CrunchyrollIE,
  81. CrunchyrollShowPlaylistIE
  82. )
  83. from .cspan import CSpanIE
  84. from .dailymotion import (
  85. DailymotionIE,
  86. DailymotionPlaylistIE,
  87. DailymotionUserIE,
  88. )
  89. from .daum import DaumIE
  90. from .dbtv import DBTVIE
  91. from .deezer import DeezerPlaylistIE
  92. from .dfb import DFBIE
  93. from .dotsub import DotsubIE
  94. from .dreisat import DreiSatIE
  95. from .drbonanza import DRBonanzaIE
  96. from .drtuber import DrTuberIE
  97. from .drtv import DRTVIE
  98. from .dvtv import DVTVIE
  99. from .dump import DumpIE
  100. from .defense import DefenseGouvFrIE
  101. from .discovery import DiscoveryIE
  102. from .divxstage import DivxStageIE
  103. from .dropbox import DropboxIE
  104. from .ebaumsworld import EbaumsWorldIE
  105. from .echomsk import EchoMskIE
  106. from .ehow import EHowIE
  107. from .eighttracks import EightTracksIE
  108. from .einthusan import EinthusanIE
  109. from .eitb import EitbIE
  110. from .ellentv import (
  111. EllenTVIE,
  112. EllenTVClipsIE,
  113. )
  114. from .elpais import ElPaisIE
  115. from .empflix import EMPFlixIE
  116. from .engadget import EngadgetIE
  117. from .eporner import EpornerIE
  118. from .eroprofile import EroProfileIE
  119. from .escapist import EscapistIE
  120. from .everyonesmixtape import EveryonesMixtapeIE
  121. from .exfm import ExfmIE
  122. from .expotv import ExpoTVIE
  123. from .extremetube import ExtremeTubeIE
  124. from .facebook import FacebookIE
  125. from .faz import FazIE
  126. from .fc2 import FC2IE
  127. from .firedrive import FiredriveIE
  128. from .firstpost import FirstpostIE
  129. from .firsttv import FirstTVIE
  130. from .fivemin import FiveMinIE
  131. from .fktv import (
  132. FKTVIE,
  133. FKTVPosteckeIE,
  134. )
  135. from .flickr import FlickrIE
  136. from .folketinget import FolketingetIE
  137. from .fourtube import FourTubeIE
  138. from .foxgay import FoxgayIE
  139. from .foxnews import FoxNewsIE
  140. from .franceculture import FranceCultureIE
  141. from .franceinter import FranceInterIE
  142. from .francetv import (
  143. PluzzIE,
  144. FranceTvInfoIE,
  145. FranceTVIE,
  146. GenerationQuoiIE,
  147. CultureboxIE,
  148. )
  149. from .freesound import FreesoundIE
  150. from .freespeech import FreespeechIE
  151. from .freevideo import FreeVideoIE
  152. from .funnyordie import FunnyOrDieIE
  153. from .gamekings import GamekingsIE
  154. from .gameone import (
  155. GameOneIE,
  156. GameOnePlaylistIE,
  157. )
  158. from .gamespot import GameSpotIE
  159. from .gamestar import GameStarIE
  160. from .gametrailers import GametrailersIE
  161. from .gdcvault import GDCVaultIE
  162. from .generic import GenericIE
  163. from .giantbomb import GiantBombIE
  164. from .giga import GigaIE
  165. from .glide import GlideIE
  166. from .globo import GloboIE
  167. from .godtube import GodTubeIE
  168. from .goldenmoustache import GoldenMoustacheIE
  169. from .golem import GolemIE
  170. from .googleplus import GooglePlusIE
  171. from .googlesearch import GoogleSearchIE
  172. from .gorillavid import GorillaVidIE
  173. from .goshgay import GoshgayIE
  174. from .grooveshark import GroovesharkIE
  175. from .groupon import GrouponIE
  176. from .hark import HarkIE
  177. from .hearthisat import HearThisAtIE
  178. from .heise import HeiseIE
  179. from .hellporno import HellPornoIE
  180. from .helsinki import HelsinkiIE
  181. from .hentaistigma import HentaiStigmaIE
  182. from .hitbox import HitboxIE, HitboxLiveIE
  183. from .hornbunny import HornBunnyIE
  184. from .hostingbulk import HostingBulkIE
  185. from .hotnewhiphop import HotNewHipHopIE
  186. from .howcast import HowcastIE
  187. from .howstuffworks import HowStuffWorksIE
  188. from .huffpost import HuffPostIE
  189. from .hypem import HypemIE
  190. from .iconosquare import IconosquareIE
  191. from .ign import IGNIE, OneUPIE
  192. from .imdb import (
  193. ImdbIE,
  194. ImdbListIE
  195. )
  196. from .ina import InaIE
  197. from .infoq import InfoQIE
  198. from .instagram import InstagramIE, InstagramUserIE
  199. from .internetvideoarchive import InternetVideoArchiveIE
  200. from .iprima import IPrimaIE
  201. from .ivi import (
  202. IviIE,
  203. IviCompilationIE
  204. )
  205. from .izlesene import IzleseneIE
  206. from .jadorecettepub import JadoreCettePubIE
  207. from .jeuxvideo import JeuxVideoIE
  208. from .jove import JoveIE
  209. from .jukebox import JukeboxIE
  210. from .jpopsukitv import JpopsukiIE
  211. from .kankan import KankanIE
  212. from .karaoketv import KaraoketvIE
  213. from .keezmovies import KeezMoviesIE
  214. from .khanacademy import KhanAcademyIE
  215. from .kickstarter import KickStarterIE
  216. from .keek import KeekIE
  217. from .kontrtube import KontrTubeIE
  218. from .krasview import KrasViewIE
  219. from .ku6 import Ku6IE
  220. from .la7 import LA7IE
  221. from .laola1tv import Laola1TvIE
  222. from .lifenews import LifeNewsIE
  223. from .liveleak import LiveLeakIE
  224. from .livestream import (
  225. LivestreamIE,
  226. LivestreamOriginalIE,
  227. LivestreamShortenerIE,
  228. )
  229. from .lnkgo import LnkGoIE
  230. from .lrt import LRTIE
  231. from .lynda import (
  232. LyndaIE,
  233. LyndaCourseIE
  234. )
  235. from .m6 import M6IE
  236. from .macgamestore import MacGameStoreIE
  237. from .mailru import MailRuIE
  238. from .malemotion import MalemotionIE
  239. from .mdr import MDRIE
  240. from .metacafe import MetacafeIE
  241. from .metacritic import MetacriticIE
  242. from .mgoon import MgoonIE
  243. from .minhateca import MinhatecaIE
  244. from .ministrygrid import MinistryGridIE
  245. from .mit import TechTVMITIE, MITIE, OCWMITIE
  246. from .mitele import MiTeleIE
  247. from .mixcloud import MixcloudIE
  248. from .mlb import MLBIE
  249. from .mpora import MporaIE
  250. from .moevideo import MoeVideoIE
  251. from .mofosex import MofosexIE
  252. from .mojvideo import MojvideoIE
  253. from .moniker import MonikerIE
  254. from .mooshare import MooshareIE
  255. from .morningstar import MorningstarIE
  256. from .motherless import MotherlessIE
  257. from .motorsport import MotorsportIE
  258. from .movieclips import MovieClipsIE
  259. from .moviezine import MoviezineIE
  260. from .movshare import MovShareIE
  261. from .mtv import (
  262. MTVIE,
  263. MTVServicesEmbeddedIE,
  264. MTVIggyIE,
  265. )
  266. from .muenchentv import MuenchenTVIE
  267. from .musicplayon import MusicPlayOnIE
  268. from .musicvault import MusicVaultIE
  269. from .muzu import MuzuTVIE
  270. from .myspace import MySpaceIE, MySpaceAlbumIE
  271. from .myspass import MySpassIE
  272. from .myvideo import MyVideoIE
  273. from .myvidster import MyVidsterIE
  274. from .naver import NaverIE
  275. from .nba import NBAIE
  276. from .nbc import (
  277. NBCIE,
  278. NBCNewsIE,
  279. )
  280. from .ndr import NDRIE
  281. from .ndtv import NDTVIE
  282. from .netzkino import NetzkinoIE
  283. from .nerdcubed import NerdCubedFeedIE
  284. from .newgrounds import NewgroundsIE
  285. from .newstube import NewstubeIE
  286. from .nfb import NFBIE
  287. from .nfl import NFLIE
  288. from .nhl import NHLIE, NHLVideocenterIE
  289. from .niconico import NiconicoIE, NiconicoPlaylistIE
  290. from .ninegag import NineGagIE
  291. from .noco import NocoIE
  292. from .normalboots import NormalbootsIE
  293. from .nosvideo import NosVideoIE
  294. from .novamov import NovaMovIE
  295. from .nowness import NownessIE
  296. from .nowvideo import NowVideoIE
  297. from .npo import (
  298. NPOIE,
  299. NPOLiveIE,
  300. TegenlichtVproIE,
  301. )
  302. from .nrk import (
  303. NRKIE,
  304. NRKTVIE,
  305. )
  306. from .ntv import NTVIE
  307. from .nytimes import NYTimesIE
  308. from .nuvid import NuvidIE
  309. from .oktoberfesttv import OktoberfestTVIE
  310. from .ooyala import OoyalaIE
  311. from .openfilm import OpenFilmIE
  312. from .orf import (
  313. ORFTVthekIE,
  314. ORFOE1IE,
  315. ORFFM4IE,
  316. )
  317. from .parliamentliveuk import ParliamentLiveUKIE
  318. from .patreon import PatreonIE
  319. from .pbs import PBSIE
  320. from .phoenix import PhoenixIE
  321. from .photobucket import PhotobucketIE
  322. from .planetaplay import PlanetaPlayIE
  323. from .played import PlayedIE
  324. from .playfm import PlayFMIE
  325. from .playvid import PlayvidIE
  326. from .podomatic import PodomaticIE
  327. from .pornhd import PornHdIE
  328. from .pornhub import PornHubIE
  329. from .pornotube import PornotubeIE
  330. from .pornoxo import PornoXOIE
  331. from .promptfile import PromptFileIE
  332. from .prosiebensat1 import ProSiebenSat1IE
  333. from .pyvideo import PyvideoIE
  334. from .quickvid import QuickVidIE
  335. from .radiode import RadioDeIE
  336. from .radiobremen import RadioBremenIE
  337. from .radiofrance import RadioFranceIE
  338. from .rai import RaiIE
  339. from .rbmaradio import RBMARadioIE
  340. from .redtube import RedTubeIE
  341. from .restudy import RestudyIE
  342. from .reverbnation import ReverbNationIE
  343. from .ringtv import RingTVIE
  344. from .ro220 import Ro220IE
  345. from .rottentomatoes import RottenTomatoesIE
  346. from .roxwel import RoxwelIE
  347. from .rtbf import RTBFIE
  348. from .rte import RteIE
  349. from .rtlnl import RtlXlIE
  350. from .rtlnow import RTLnowIE
  351. from .rtp import RTPIE
  352. from .rts import RTSIE
  353. from .rtve import RTVEALaCartaIE, RTVELiveIE
  354. from .ruhd import RUHDIE
  355. from .rutube import (
  356. RutubeIE,
  357. RutubeChannelIE,
  358. RutubeEmbedIE,
  359. RutubeMovieIE,
  360. RutubePersonIE,
  361. )
  362. from .rutv import RUTVIE
  363. from .sapo import SapoIE
  364. from .savefrom import SaveFromIE
  365. from .sbs import SBSIE
  366. from .scivee import SciVeeIE
  367. from .screencast import ScreencastIE
  368. from .screencastomatic import ScreencastOMaticIE
  369. from .screenwavemedia import CinemassacreIE, ScreenwaveMediaIE, TeamFourIE
  370. from .servingsys import ServingSysIE
  371. from .sexu import SexuIE
  372. from .sexykarma import SexyKarmaIE
  373. from .shared import SharedIE
  374. from .sharesix import ShareSixIE
  375. from .sina import SinaIE
  376. from .slideshare import SlideshareIE
  377. from .slutload import SlutloadIE
  378. from .smotri import (
  379. SmotriIE,
  380. SmotriCommunityIE,
  381. SmotriUserIE,
  382. SmotriBroadcastIE,
  383. )
  384. from .snotr import SnotrIE
  385. from .sockshare import SockshareIE
  386. from .sohu import SohuIE
  387. from .soundcloud import (
  388. SoundcloudIE,
  389. SoundcloudSetIE,
  390. SoundcloudUserIE,
  391. SoundcloudPlaylistIE
  392. )
  393. from .soundgasm import SoundgasmIE
  394. from .southpark import (
  395. SouthParkIE,
  396. SouthparkDeIE,
  397. )
  398. from .space import SpaceIE
  399. from .spankwire import SpankwireIE
  400. from .spiegel import SpiegelIE, SpiegelArticleIE
  401. from .spiegeltv import SpiegeltvIE
  402. from .spike import SpikeIE
  403. from .sport5 import Sport5IE
  404. from .sportbox import SportBoxIE
  405. from .sportdeutschland import SportDeutschlandIE
  406. from .srmediathek import SRMediathekIE
  407. from .stanfordoc import StanfordOpenClassroomIE
  408. from .steam import SteamIE
  409. from .streamcloud import StreamcloudIE
  410. from .streamcz import StreamCZIE
  411. from .streetvoice import StreetVoiceIE
  412. from .sunporno import SunPornoIE
  413. from .swrmediathek import SWRMediathekIE
  414. from .syfy import SyfyIE
  415. from .sztvhu import SztvHuIE
  416. from .tagesschau import TagesschauIE
  417. from .tapely import TapelyIE
  418. from .tass import TassIE
  419. from .teachertube import (
  420. TeacherTubeIE,
  421. TeacherTubeUserIE,
  422. )
  423. from .teachingchannel import TeachingChannelIE
  424. from .teamcoco import TeamcocoIE
  425. from .techtalks import TechTalksIE
  426. from .ted import TEDIE
  427. from .telebruxelles import TeleBruxellesIE
  428. from .telecinco import TelecincoIE
  429. from .telemb import TeleMBIE
  430. from .teletask import TeleTaskIE
  431. from .tenplay import TenPlayIE
  432. from .testurl import TestURLIE
  433. from .testtube import TestTubeIE
  434. from .tf1 import TF1IE
  435. from .theonion import TheOnionIE
  436. from .theplatform import ThePlatformIE
  437. from .thesixtyone import TheSixtyOneIE
  438. from .thisav import ThisAVIE
  439. from .tinypic import TinyPicIE
  440. from .tlc import TlcIE, TlcDeIE
  441. from .tmz import TMZIE
  442. from .tnaflix import TNAFlixIE
  443. from .thvideo import (
  444. THVideoIE,
  445. THVideoPlaylistIE
  446. )
  447. from .toutv import TouTvIE
  448. from .toypics import ToypicsUserIE, ToypicsIE
  449. from .traileraddict import TrailerAddictIE
  450. from .trilulilu import TriluliluIE
  451. from .trutube import TruTubeIE
  452. from .tube8 import Tube8IE
  453. from .tudou import TudouIE
  454. from .tumblr import TumblrIE
  455. from .tunein import TuneInIE
  456. from .turbo import TurboIE
  457. from .tutv import TutvIE
  458. from .tvigle import TvigleIE
  459. from .tvp import TvpIE, TvpSeriesIE
  460. from .tvplay import TVPlayIE
  461. from .twentyfourvideo import TwentyFourVideoIE
  462. from .twitch import (
  463. TwitchVideoIE,
  464. TwitchChapterIE,
  465. TwitchVodIE,
  466. TwitchProfileIE,
  467. TwitchPastBroadcastsIE,
  468. TwitchBookmarksIE,
  469. TwitchStreamIE,
  470. )
  471. from .ubu import UbuIE
  472. from .udemy import (
  473. UdemyIE,
  474. UdemyCourseIE
  475. )
  476. from .unistra import UnistraIE
  477. from .urort import UrortIE
  478. from .ustream import UstreamIE, UstreamChannelIE
  479. from .vbox7 import Vbox7IE
  480. from .veehd import VeeHDIE
  481. from .veoh import VeohIE
  482. from .vesti import VestiIE
  483. from .vevo import VevoIE
  484. from .vgtv import VGTVIE
  485. from .vh1 import VH1IE
  486. from .vice import ViceIE
  487. from .viddler import ViddlerIE
  488. from .videobam import VideoBamIE
  489. from .videodetective import VideoDetectiveIE
  490. from .videolecturesnet import VideoLecturesNetIE
  491. from .videofyme import VideofyMeIE
  492. from .videomega import VideoMegaIE
  493. from .videopremium import VideoPremiumIE
  494. from .videott import VideoTtIE
  495. from .videoweed import VideoWeedIE
  496. from .vidme import VidmeIE
  497. from .vidzi import VidziIE
  498. from .vier import VierIE, VierVideosIE
  499. from .vimeo import (
  500. VimeoIE,
  501. VimeoAlbumIE,
  502. VimeoChannelIE,
  503. VimeoGroupsIE,
  504. VimeoLikesIE,
  505. VimeoReviewIE,
  506. VimeoUserIE,
  507. VimeoWatchLaterIE,
  508. )
  509. from .vimple import VimpleIE
  510. from .vine import (
  511. VineIE,
  512. VineUserIE,
  513. )
  514. from .viki import VikiIE
  515. from .vk import (
  516. VKIE,
  517. VKUserVideosIE,
  518. )
  519. from .vodlocker import VodlockerIE
  520. from .vporn import VpornIE
  521. from .vrt import VRTIE
  522. from .vube import VubeIE
  523. from .vuclip import VuClipIE
  524. from .vulture import VultureIE
  525. from .walla import WallaIE
  526. from .washingtonpost import WashingtonPostIE
  527. from .wat import WatIE
  528. from .wayofthemaster import WayOfTheMasterIE
  529. from .wdr import (
  530. WDRIE,
  531. WDRMobileIE,
  532. WDRMausIE,
  533. )
  534. from .webofstories import WebOfStoriesIE
  535. from .weibo import WeiboIE
  536. from .wimp import WimpIE
  537. from .wistia import WistiaIE
  538. from .worldstarhiphop import WorldStarHipHopIE
  539. from .wrzuta import WrzutaIE
  540. from .xbef import XBefIE
  541. from .xboxclips import XboxClipsIE
  542. from .xhamster import XHamsterIE
  543. from .xminus import XMinusIE
  544. from .xnxx import XNXXIE
  545. from .xvideos import XVideosIE
  546. from .xtube import XTubeUserIE, XTubeIE
  547. from .xxxymovies import XXXYMoviesIE
  548. from .yahoo import (
  549. YahooIE,
  550. YahooSearchIE,
  551. )
  552. from .yesjapan import YesJapanIE
  553. from .ynet import YnetIE
  554. from .youjizz import YouJizzIE
  555. from .youku import YoukuIE
  556. from .youporn import YouPornIE
  557. from .yourupload import YourUploadIE
  558. from .youtube import (
  559. YoutubeIE,
  560. YoutubeChannelIE,
  561. YoutubeFavouritesIE,
  562. YoutubeHistoryIE,
  563. YoutubePlaylistIE,
  564. YoutubeRecommendedIE,
  565. YoutubeSearchDateIE,
  566. YoutubeSearchIE,
  567. YoutubeSearchURLIE,
  568. YoutubeShowIE,
  569. YoutubeSubscriptionsIE,
  570. YoutubeTruncatedIDIE,
  571. YoutubeTruncatedURLIE,
  572. YoutubeUserIE,
  573. YoutubeWatchLaterIE,
  574. )
  575. from .zdf import ZDFIE, ZDFChannelIE
  576. from .zingmp3 import (
  577. ZingMp3SongIE,
  578. ZingMp3AlbumIE,
  579. )
  580. _ALL_CLASSES = [
  581. klass
  582. for name, klass in globals().items()
  583. if name.endswith('IE') and name != 'GenericIE'
  584. ]
  585. _ALL_CLASSES.append(GenericIE)
  586. def gen_extractors():
  587. """ Return a list of an instance of every supported extractor.
  588. The order does matter; the first extractor matched is the one handling the URL.
  589. """
  590. return [klass() for klass in _ALL_CLASSES]
  591. def list_extractors(age_limit):
  592. """
  593. Return a list of extractors that are suitable for the given age,
  594. sorted by extractor ID.
  595. """
  596. return sorted(
  597. filter(lambda ie: ie.is_suitable(age_limit), gen_extractors()),
  598. key=lambda ie: ie.IE_NAME.lower())
  599. def get_info_extractor(ie_name):
  600. """Returns the info extractor class with the given ie_name"""
  601. return globals()[ie_name + 'IE']