Browse Source

[viewlift] replace SnagFilms extractors

- add support for other sites that use the same logic
- improve format extraction and sorting
totalwebcasting
remitamine 9 years ago
parent
commit
67167920db
3 changed files with 34 additions and 19 deletions
  1. +4
    -4
      youtube_dl/extractor/extractors.py
  2. +5
    -5
      youtube_dl/extractor/generic.py
  3. +25
    -10
      youtube_dl/extractor/viewlift.py

+ 4
- 4
youtube_dl/extractor/extractors.py View File

@ -673,10 +673,6 @@ from .smotri import (
SmotriUserIE,
SmotriBroadcastIE,
)
from .snagfilms import (
SnagFilmsIE,
SnagFilmsEmbedIE,
)
from .snotr import SnotrIE
from .sohu import SohuIE
from .soundcloud import (
@ -879,6 +875,10 @@ from .vidme import (
)
from .vidzi import VidziIE
from .vier import VierIE, VierVideosIE
from .viewlift import (
ViewLiftIE,
ViewLiftEmbedIE,
)
from .viewster import ViewsterIE
from .viidea import ViideaIE
from .vimeo import (


+ 5
- 5
youtube_dl/extractor/generic.py View File

@ -51,7 +51,7 @@ from .tnaflix import TNAFlixNetworkEmbedIE
from .vimeo import VimeoIE
from .dailymotion import DailymotionCloudIE
from .onionstudios import OnionStudiosIE
from .snagfilms import SnagFilmsEmbedIE
from .viewlift import ViewLiftEmbedIE
from .screenwavemedia import ScreenwaveMediaIE
from .mtv import MTVServicesEmbeddedIE
from .pladform import PladformIE
@ -1924,10 +1924,10 @@ class GenericIE(InfoExtractor):
if onionstudios_url:
return self.url_result(onionstudios_url)
# Look for SnagFilms embeds
snagfilms_url = SnagFilmsEmbedIE._extract_url(webpage)
if snagfilms_url:
return self.url_result(snagfilms_url)
# Look for ViewLift embeds
viewlift_url = ViewLiftEmbedIE._extract_url(webpage)
if viewlift_url:
return self.url_result(viewlift_url)
# Look for JWPlatform embeds
jwplatform_url = JWPlatformIE._extract_url(webpage)


youtube_dl/extractor/snagfilms.py → youtube_dl/extractor/viewlift.py View File


Loading…
Cancel
Save