mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 20:07:20 +08:00
[ruleporn] fix flake8 warnings (except E501 - line too long)
This commit is contained in:
parent
2bed3ee9f8
commit
86bd65df8d
@ -1,10 +1,9 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import re
|
|
||||||
|
|
||||||
from .nuevo import NuevoBaseIE
|
from .nuevo import NuevoBaseIE
|
||||||
from ..utils import int_or_none
|
from ..utils import int_or_none
|
||||||
|
|
||||||
|
|
||||||
class RulePornIE(NuevoBaseIE):
|
class RulePornIE(NuevoBaseIE):
|
||||||
_VALID_URL = r'https?://(?:www\.)?ruleporn\.com/(?:[^/?#&]+/)*(?P<id>[^/?#&]+)'
|
_VALID_URL = r'https?://(?:www\.)?ruleporn\.com/(?:[^/?#&]+/)*(?P<id>[^/?#&]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
@ -62,7 +61,6 @@ class RulePornIE(NuevoBaseIE):
|
|||||||
r'lovehomeporn\.com/embed/(\d+)', video_url, 'video_id', default=None)
|
r'lovehomeporn\.com/embed/(\d+)', video_url, 'video_id', default=None)
|
||||||
|
|
||||||
if video_id:
|
if video_id:
|
||||||
|
|
||||||
info = self._extract_nuevo(
|
info = self._extract_nuevo(
|
||||||
'http://lovehomeporn.com/media/nuevo/econfig.php?key=%s&rp=true' % video_id,
|
'http://lovehomeporn.com/media/nuevo/econfig.php?key=%s&rp=true' % video_id,
|
||||||
video_id)
|
video_id)
|
||||||
@ -75,7 +73,6 @@ class RulePornIE(NuevoBaseIE):
|
|||||||
})
|
})
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
video_page = self._download_webpage(video_url, display_id)
|
video_page = self._download_webpage(video_url, display_id)
|
||||||
|
|
||||||
js_str = self._search_regex(
|
js_str = self._search_regex(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user