[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
|
||||||
)
|
)
|
||||||
@ -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