mirror of
https://github.com/l1ving/youtube-dl
synced 2024-11-22 01:52:51 +08:00
Added support for Dropbox
This commit is contained in:
parent
2a7c35dd46
commit
6b79f40c3d
@ -47,7 +47,7 @@ from .depositfiles import DepositFilesIE
|
|||||||
from .dotsub import DotsubIE
|
from .dotsub import DotsubIE
|
||||||
from .dreisat import DreiSatIE
|
from .dreisat import DreiSatIE
|
||||||
from .defense import DefenseGouvFrIE
|
from .defense import DefenseGouvFrIE
|
||||||
from .dropbox import DropBoxIE
|
from .dropbox import DropboxIE
|
||||||
from .ebaumsworld import EbaumsWorldIE
|
from .ebaumsworld import EbaumsWorldIE
|
||||||
from .ehow import EHowIE
|
from .ehow import EHowIE
|
||||||
from .eighttracks import EightTracksIE
|
from .eighttracks import EightTracksIE
|
||||||
|
@ -5,13 +5,15 @@ import re
|
|||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
|
||||||
class DropBoxIE(InfoExtractor):
|
class DropboxIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?dropbox.com/s/(?P<id>[a-zA-Z0-9]{15})/(?P<title>.*)'
|
_VALID_URL = r'https?://(?:www\.)?dropbox[.]com/s/(?P<id>[a-zA-Z0-9]{15})/(?P<title>[^?#]*)'
|
||||||
_TEST = {
|
_TEST = {
|
||||||
'url': 'https://www.dropbox.com/s/mcnzehi9wo55th4/20131219_085616.mp4',
|
u'url': u'https://www.dropbox.com/s/mcnzehi9wo55th4/20131219_085616.mp4',
|
||||||
'file': '20131219_085616.mp4',
|
u'file': u'mcnzehi9wo55th4.mp4',
|
||||||
'md5': '2cec58eb277054eca0dbaaf3bdc72564',
|
u'md5': u'2cec58eb277054eca0dbaaf3bdc72564',
|
||||||
|
u'info_dict': {
|
||||||
|
u'title': '20131219_085616'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -24,10 +26,7 @@ class DropBoxIE(InfoExtractor):
|
|||||||
return{
|
return{
|
||||||
'id':video_id,
|
'id':video_id,
|
||||||
'title':title,
|
'title':title,
|
||||||
'formats': [{
|
'url':video_url
|
||||||
'url': video_url,
|
|
||||||
'vcodec': 'none',
|
|
||||||
}]
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user