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.

611 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 .rtl2 import RTL2IE
  352. from .rtp import RTPIE
  353. from .rts import RTSIE
  354. from .rtve import RTVEALaCartaIE, RTVELiveIE
  355. from .ruhd import RUHDIE
  356. from .rutube import (
  357. RutubeIE,
  358. RutubeChannelIE,
  359. RutubeEmbedIE,
  360. RutubeMovieIE,
  361. RutubePersonIE,
  362. )
  363. from .rutv import RUTVIE
  364. from .sapo import SapoIE
  365. from .savefrom import SaveFromIE
  366. from .sbs import SBSIE
  367. from .scivee import SciVeeIE
  368. from .screencast import ScreencastIE
  369. from .screencastomatic import ScreencastOMaticIE
  370. from .screenwavemedia import CinemassacreIE, ScreenwaveMediaIE, TeamFourIE
  371. from .servingsys import ServingSysIE
  372. from .sexu import SexuIE
  373. from .sexykarma import SexyKarmaIE
  374. from .shared import SharedIE
  375. from .sharesix import ShareSixIE
  376. from .sina import SinaIE
  377. from .slideshare import SlideshareIE
  378. from .slutload import SlutloadIE
  379. from .smotri import (
  380. SmotriIE,
  381. SmotriCommunityIE,
  382. SmotriUserIE,
  383. SmotriBroadcastIE,
  384. )
  385. from .snotr import SnotrIE
  386. from .sockshare import SockshareIE
  387. from .sohu import SohuIE
  388. from .soundcloud import (
  389. SoundcloudIE,
  390. SoundcloudSetIE,
  391. SoundcloudUserIE,
  392. SoundcloudPlaylistIE
  393. )
  394. from .soundgasm import SoundgasmIE
  395. from .southpark import (
  396. SouthParkIE,
  397. SouthparkDeIE,
  398. )
  399. from .space import SpaceIE
  400. from .spankwire import SpankwireIE
  401. from .spiegel import SpiegelIE, SpiegelArticleIE
  402. from .spiegeltv import SpiegeltvIE
  403. from .spike import SpikeIE
  404. from .sport5 import Sport5IE
  405. from .sportbox import SportBoxIE
  406. from .sportdeutschland import SportDeutschlandIE
  407. from .srmediathek import SRMediathekIE
  408. from .stanfordoc import StanfordOpenClassroomIE
  409. from .steam import SteamIE
  410. from .streamcloud import StreamcloudIE
  411. from .streamcz import StreamCZIE
  412. from .streetvoice import StreetVoiceIE
  413. from .sunporno import SunPornoIE
  414. from .swrmediathek import SWRMediathekIE
  415. from .syfy import SyfyIE
  416. from .sztvhu import SztvHuIE
  417. from .tagesschau import TagesschauIE
  418. from .tapely import TapelyIE
  419. from .tass import TassIE
  420. from .teachertube import (
  421. TeacherTubeIE,
  422. TeacherTubeUserIE,
  423. )
  424. from .teachingchannel import TeachingChannelIE
  425. from .teamcoco import TeamcocoIE
  426. from .techtalks import TechTalksIE
  427. from .ted import TEDIE
  428. from .telebruxelles import TeleBruxellesIE
  429. from .telecinco import TelecincoIE
  430. from .telemb import TeleMBIE
  431. from .teletask import TeleTaskIE
  432. from .tenplay import TenPlayIE
  433. from .testurl import TestURLIE
  434. from .testtube import TestTubeIE
  435. from .tf1 import TF1IE
  436. from .theonion import TheOnionIE
  437. from .theplatform import ThePlatformIE
  438. from .thesixtyone import TheSixtyOneIE
  439. from .thisav import ThisAVIE
  440. from .tinypic import TinyPicIE
  441. from .tlc import TlcIE, TlcDeIE
  442. from .tmz import TMZIE
  443. from .tnaflix import TNAFlixIE
  444. from .thvideo import (
  445. THVideoIE,
  446. THVideoPlaylistIE
  447. )
  448. from .toutv import TouTvIE
  449. from .toypics import ToypicsUserIE, ToypicsIE
  450. from .traileraddict import TrailerAddictIE
  451. from .trilulilu import TriluliluIE
  452. from .trutube import TruTubeIE
  453. from .tube8 import Tube8IE
  454. from .tudou import TudouIE
  455. from .tumblr import TumblrIE
  456. from .tunein import TuneInIE
  457. from .turbo import TurboIE
  458. from .tutv import TutvIE
  459. from .tvigle import TvigleIE
  460. from .tvp import TvpIE, TvpSeriesIE
  461. from .tvplay import TVPlayIE
  462. from .twentyfourvideo import TwentyFourVideoIE
  463. from .twitch import (
  464. TwitchVideoIE,
  465. TwitchChapterIE,
  466. TwitchVodIE,
  467. TwitchProfileIE,
  468. TwitchPastBroadcastsIE,
  469. TwitchBookmarksIE,
  470. TwitchStreamIE,
  471. )
  472. from .ubu import UbuIE
  473. from .udemy import (
  474. UdemyIE,
  475. UdemyCourseIE
  476. )
  477. from .unistra import UnistraIE
  478. from .urort import UrortIE
  479. from .ustream import UstreamIE, UstreamChannelIE
  480. from .vbox7 import Vbox7IE
  481. from .veehd import VeeHDIE
  482. from .veoh import VeohIE
  483. from .vesti import VestiIE
  484. from .vevo import VevoIE
  485. from .vgtv import VGTVIE
  486. from .vh1 import VH1IE
  487. from .vice import ViceIE
  488. from .viddler import ViddlerIE
  489. from .videobam import VideoBamIE
  490. from .videodetective import VideoDetectiveIE
  491. from .videolecturesnet import VideoLecturesNetIE
  492. from .videofyme import VideofyMeIE
  493. from .videomega import VideoMegaIE
  494. from .videopremium import VideoPremiumIE
  495. from .videott import VideoTtIE
  496. from .videoweed import VideoWeedIE
  497. from .vidme import VidmeIE
  498. from .vidzi import VidziIE
  499. from .vier import VierIE, VierVideosIE
  500. from .vimeo import (
  501. VimeoIE,
  502. VimeoAlbumIE,
  503. VimeoChannelIE,
  504. VimeoGroupsIE,
  505. VimeoLikesIE,
  506. VimeoReviewIE,
  507. VimeoUserIE,
  508. VimeoWatchLaterIE,
  509. )
  510. from .vimple import VimpleIE
  511. from .vine import (
  512. VineIE,
  513. VineUserIE,
  514. )
  515. from .viki import VikiIE
  516. from .vk import (
  517. VKIE,
  518. VKUserVideosIE,
  519. )
  520. from .vodlocker import VodlockerIE
  521. from .vporn import VpornIE
  522. from .vrt import VRTIE
  523. from .vube import VubeIE
  524. from .vuclip import VuClipIE
  525. from .vulture import VultureIE
  526. from .walla import WallaIE
  527. from .washingtonpost import WashingtonPostIE
  528. from .wat import WatIE
  529. from .wayofthemaster import WayOfTheMasterIE
  530. from .wdr import (
  531. WDRIE,
  532. WDRMobileIE,
  533. WDRMausIE,
  534. )
  535. from .webofstories import WebOfStoriesIE
  536. from .weibo import WeiboIE
  537. from .wimp import WimpIE
  538. from .wistia import WistiaIE
  539. from .worldstarhiphop import WorldStarHipHopIE
  540. from .wrzuta import WrzutaIE
  541. from .xbef import XBefIE
  542. from .xboxclips import XboxClipsIE
  543. from .xhamster import XHamsterIE
  544. from .xminus import XMinusIE
  545. from .xnxx import XNXXIE
  546. from .xvideos import XVideosIE
  547. from .xtube import XTubeUserIE, XTubeIE
  548. from .xxxymovies import XXXYMoviesIE
  549. from .yahoo import (
  550. YahooIE,
  551. YahooSearchIE,
  552. )
  553. from .yesjapan import YesJapanIE
  554. from .ynet import YnetIE
  555. from .youjizz import YouJizzIE
  556. from .youku import YoukuIE
  557. from .youporn import YouPornIE
  558. from .yourupload import YourUploadIE
  559. from .youtube import (
  560. YoutubeIE,
  561. YoutubeChannelIE,
  562. YoutubeFavouritesIE,
  563. YoutubeHistoryIE,
  564. YoutubePlaylistIE,
  565. YoutubeRecommendedIE,
  566. YoutubeSearchDateIE,
  567. YoutubeSearchIE,
  568. YoutubeSearchURLIE,
  569. YoutubeShowIE,
  570. YoutubeSubscriptionsIE,
  571. YoutubeTruncatedIDIE,
  572. YoutubeTruncatedURLIE,
  573. YoutubeUserIE,
  574. YoutubeWatchLaterIE,
  575. )
  576. from .zdf import ZDFIE, ZDFChannelIE
  577. from .zingmp3 import (
  578. ZingMp3SongIE,
  579. ZingMp3AlbumIE,
  580. )
  581. _ALL_CLASSES = [
  582. klass
  583. for name, klass in globals().items()
  584. if name.endswith('IE') and name != 'GenericIE'
  585. ]
  586. _ALL_CLASSES.append(GenericIE)
  587. def gen_extractors():
  588. """ Return a list of an instance of every supported extractor.
  589. The order does matter; the first extractor matched is the one handling the URL.
  590. """
  591. return [klass() for klass in _ALL_CLASSES]
  592. def list_extractors(age_limit):
  593. """
  594. Return a list of extractors that are suitable for the given age,
  595. sorted by extractor ID.
  596. """
  597. return sorted(
  598. filter(lambda ie: ie.is_suitable(age_limit), gen_extractors()),
  599. key=lambda ie: ie.IE_NAME.lower())
  600. def get_info_extractor(ie_name):
  601. """Returns the info extractor class with the given ie_name"""
  602. return globals()[ie_name + 'IE']