mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -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):
|
class BunkrIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?((stream.bunkr\.is)|(bunkr\.su))/v/(?P<id>[0-9A-Za-z\-\.]+)'
|
_VALID_URL = r'https?://(?:www\.)?((stream.bunkr\.is)|(bunkr\.su))/v/(?P<id>[0-9A-Za-z\-\.]+)'
|
||||||
_TESTS = [{
|
_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': {
|
'info_dict': {
|
||||||
'id': 'miera2000-',
|
'id': 'miera2000-',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'miera2000-(18)-xXmlmXQU.mp4'
|
'title': 'miera2000-(18)-xXmlmXQU.mp4'
|
||||||
}
|
}
|
||||||
},
|
}, {
|
||||||
{
|
# NSFW
|
||||||
'url': 'https://bunkr.su/v/1251555_360p-1ehce9V1.mp4', # NSFW
|
'url': 'https://bunkr.su/v/1251555_360p-1ehce9V1.mp4',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1251555',
|
'id': '1251555',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
|
@ -31,12 +32,12 @@ class BunkrIE(InfoExtractor):
|
||||||
title = self._html_search_regex(r'<title>((.|\n)+?|)</title>', webpage, 'title').split(" ")[0]
|
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]
|
url = self._html_search_regex(r'link.href = (.+?|);', webpage, 'url')[1:-1]
|
||||||
formats = [{
|
formats = [{
|
||||||
'url':url,
|
'url': url,
|
||||||
'ext':'mp4'
|
'ext': 'mp4'
|
||||||
}]
|
}]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'formats': formats
|
'formats': formats
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue