mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-09 22:57:16 +08:00
Adding name fields to a few extractors
This commit is contained in:
parent
398e1e21d6
commit
4cb8f1e7ee
@ -14,6 +14,7 @@ from ..utils import (
|
||||
|
||||
class FlickrIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.|secure\.)?flickr\.com/photos/[\w\-_@]+/(?P<id>\d+)'
|
||||
IE_NAME = 'flickr'
|
||||
_TEST = {
|
||||
'url': 'http://www.flickr.com/photos/forestwander-nature-pictures/5645318632/in/photostream/',
|
||||
'md5': '164fe3fa6c22e18d448d4d5af2330f31',
|
||||
|
@ -11,6 +11,7 @@ from ..utils import (
|
||||
|
||||
class GodTubeIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?godtube\.com/watch/\?v=(?P<id>[\da-zA-Z]+)'
|
||||
IE_NAME = 'godtube'
|
||||
_TESTS = [
|
||||
{
|
||||
'url': 'https://www.godtube.com/watch/?v=0C0CNNNU',
|
||||
|
@ -23,6 +23,7 @@ from ..utils import (
|
||||
|
||||
class InstagramIE(InfoExtractor):
|
||||
_VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/p/(?P<id>[^/?#&]+))'
|
||||
IE_NAME = 'instagram'
|
||||
_TESTS = [{
|
||||
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
|
||||
'md5': '0d2da106a9d2631273e192b372806516',
|
||||
|
@ -8,6 +8,7 @@ from .common import InfoExtractor
|
||||
|
||||
class JWPlatformIE(InfoExtractor):
|
||||
_VALID_URL = r'(?:https?://(?:content\.jwplatform|cdn\.jwplayer)\.com/(?:(?:feed|player|thumb|preview|video|manifest)s|jw6|v2/media)/|jwplatform:)(?P<id>[a-zA-Z0-9]{8})'
|
||||
IE_NAME = 'jwplatform'
|
||||
_TESTS = [{
|
||||
'url': 'http://content.jwplatform.com/players/nPripu9l-ALJ3XQCI.js',
|
||||
'md5': 'fa8899fa601eb7c83a64e9d568bdf325',
|
||||
|
@ -34,6 +34,7 @@ class KalturaIE(InfoExtractor):
|
||||
)(?:/(?P<path>[^?]+))?(?:\?(?P<query>.*))?
|
||||
)
|
||||
'''
|
||||
IE_NAME = 'kaltura'
|
||||
_SERVICE_URL = 'http://cdnapi.kaltura.com'
|
||||
_SERVICE_BASE = '/api_v3/index.php'
|
||||
# See https://github.com/kaltura/server/blob/master/plugins/content/caption/base/lib/model/enums/CaptionType.php
|
||||
|
@ -108,6 +108,7 @@ class OoyalaBaseIE(InfoExtractor):
|
||||
|
||||
class OoyalaIE(OoyalaBaseIE):
|
||||
_VALID_URL = r'(?:ooyala:|https?://.+?\.ooyala\.com/.*?(?:embedCode|ec)=)(?P<id>.+?)(&|$)'
|
||||
IE_NAME = 'ooyala'
|
||||
|
||||
_TESTS = [
|
||||
{
|
||||
@ -186,6 +187,7 @@ class OoyalaExternalIE(OoyalaBaseIE):
|
||||
(?P<pcode>.+?)
|
||||
(?:&|$)
|
||||
'''
|
||||
IE_NAME = 'ooyalaexternal'
|
||||
|
||||
_TEST = {
|
||||
'url': 'https://player.ooyala.com/player.js?externalId=espn:10365079&pcode=1kNG061cgaoolOncv54OAO1ceO-I&adSetCode=91cDU6NuXTGKz3OdjOxFdAgJVtQcKJnI&callback=handleEvents&hasModuleParams=1&height=968&playerBrandingId=7af3bd04449c444c964f347f11873075&targetReplaceId=videoPlayer&width=1656&wmode=opaque&allowScriptAccess=always',
|
||||
|
@ -9,6 +9,7 @@ from ..compat import compat_urllib_parse_unquote
|
||||
|
||||
class PhotobucketIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:[a-z0-9]+\.)?photobucket\.com/.*(([\?\&]current=)|_)(?P<id>.*)\.(?P<ext>(flv)|(mp4))'
|
||||
IE_NAME = 'photobucket'
|
||||
_TEST = {
|
||||
'url': 'http://media.photobucket.com/user/rachaneronas/media/TiredofLinkBuildingTryBacklinkMyDomaincom_zpsc0c3b9fa.mp4.html?filters[term]=search&filters[primary]=videos&filters[secondary]=images&sort=1&o=0',
|
||||
'md5': '7dabfb92b0a31f6c16cebc0f8e60ff99',
|
||||
|
Loading…
x
Reference in New Issue
Block a user