[puhutv] checked with flake8 and fixed
This commit is contained in:
parent
3f82c47394
commit
21c1f8d049
@ -5,7 +5,6 @@ from .common import InfoExtractor
|
|||||||
from ..compat import compat_str
|
from ..compat import compat_str
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
int_or_none,
|
int_or_none,
|
||||||
ExtractorError,
|
|
||||||
float_or_none,
|
float_or_none,
|
||||||
determine_ext
|
determine_ext
|
||||||
)
|
)
|
||||||
@ -65,9 +64,9 @@ class PuhuTVIE(InfoExtractor):
|
|||||||
]
|
]
|
||||||
IE_NAME = 'puhutv'
|
IE_NAME = 'puhutv'
|
||||||
_SUBTITLE_LANGS = { # currently supported for some series
|
_SUBTITLE_LANGS = { # currently supported for some series
|
||||||
'English':'en',
|
'English': 'en',
|
||||||
'Deutsch':'de',
|
'Deutsch': 'de',
|
||||||
'عربى':'ar'
|
'عربى': 'ar'
|
||||||
}
|
}
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
@ -110,7 +109,7 @@ class PuhuTVIE(InfoExtractor):
|
|||||||
tags.append(tag.get('name'))
|
tags.append(tag.get('name'))
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
for id,url in thumbnails_list.items():
|
for id, url in thumbnails_list.items():
|
||||||
thumbnails.append({
|
thumbnails.append({
|
||||||
'url': url,
|
'url': url,
|
||||||
'id': id
|
'id': id
|
||||||
@ -136,7 +135,7 @@ class PuhuTVIE(InfoExtractor):
|
|||||||
media_url = format.get('url')
|
media_url = format.get('url')
|
||||||
ext = format.get('video_format')
|
ext = format.get('video_format')
|
||||||
quality = format.get('quality')
|
quality = format.get('quality')
|
||||||
if ext == 'mp4' and format.get('is_playlist') == False:
|
if ext == 'mp4' and format.get('is_playlist') is False:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': media_url,
|
'url': media_url,
|
||||||
'format_id': 'http-%s' % quality,
|
'format_id': 'http-%s' % quality,
|
||||||
@ -198,7 +197,7 @@ class PuhuTVSerieIE(InfoExtractor):
|
|||||||
season_number = season.get('position')
|
season_number = season.get('position')
|
||||||
pagenum = 1
|
pagenum = 1
|
||||||
has_more = True
|
has_more = True
|
||||||
while has_more == True:
|
while has_more is True:
|
||||||
query = {
|
query = {
|
||||||
'page': pagenum,
|
'page': pagenum,
|
||||||
'per': 40,
|
'per': 40,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user