mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -07:00
flake8 check
This commit is contained in:
parent
795d439db4
commit
a31903f655
1 changed files with 8 additions and 7 deletions
|
@ -7,15 +7,16 @@ from .common import InfoExtractor
|
|||
class BunkrIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?((stream.bunkr\.is)|(bunkr\.su))/v/(?P<id>[0-9A-Za-z\-\.]+)'
|
||||
_TESTS = [{
|
||||
'url': 'https://stream.bunkr.is/v/miera2000-(18)-xXmlmXQU.mp4', # NSFW
|
||||
# NSFW
|
||||
'url': 'https://stream.bunkr.is/v/miera2000-(18)-xXmlmXQU.mp4',
|
||||
'info_dict': {
|
||||
'id': 'miera2000-',
|
||||
'ext': 'mp4',
|
||||
'title': 'miera2000-(18)-xXmlmXQU.mp4'
|
||||
}
|
||||
},
|
||||
{
|
||||
'url': 'https://bunkr.su/v/1251555_360p-1ehce9V1.mp4', # NSFW
|
||||
}, {
|
||||
# NSFW
|
||||
'url': 'https://bunkr.su/v/1251555_360p-1ehce9V1.mp4',
|
||||
'info_dict': {
|
||||
'id': '1251555',
|
||||
'ext': 'mp4',
|
||||
|
@ -31,12 +32,12 @@ class BunkrIE(InfoExtractor):
|
|||
title = self._html_search_regex(r'<title>((.|\n)+?|)</title>', webpage, 'title').split(" ")[0]
|
||||
url = self._html_search_regex(r'link.href = (.+?|);', webpage, 'url')[1:-1]
|
||||
formats = [{
|
||||
'url':url,
|
||||
'ext':'mp4'
|
||||
'url': url,
|
||||
'ext': 'mp4'
|
||||
}]
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
'title': title,
|
||||
'formats': formats
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue