projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PEP8: applied even more rules
[youtube-dl]
/
youtube_dl
/
extractor
/
smotri.py
diff --git
a/youtube_dl/extractor/smotri.py
b/youtube_dl/extractor/smotri.py
index 6c1d82dd7bcd2a04dd2092f227bbec94cc55083b..0751efc6111c96ca1c089c66183429f9bde6147c 100644
(file)
--- a/
youtube_dl/extractor/smotri.py
+++ b/
youtube_dl/extractor/smotri.py
@@
-184,7
+184,7
@@
class SmotriIE(InfoExtractor):
view_count = self._html_search_regex(
'Общее количество просмотров.*?<span class="Number">(\\d+)</span>',
view_count = self._html_search_regex(
'Общее количество просмотров.*?<span class="Number">(\\d+)</span>',
- webpage, 'view count', fatal=False, flags=re.MULTILINE
|
re.DOTALL)
+ webpage, 'view count', fatal=False, flags=re.MULTILINE
|
re.DOTALL)
return {
'id': video_id,
return {
'id': video_id,
@@
-212,7
+212,7
@@
class SmotriCommunityIE(InfoExtractor):
},
'playlist_mincount': 4,
}
},
'playlist_mincount': 4,
}
-
+
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
community_id = mobj.group('communityid')
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
community_id = mobj.group('communityid')
@@
-282,7
+282,7
@@
class SmotriBroadcastIE(InfoExtractor):
(username, password) = self._get_login_info()
if username is None:
raise ExtractorError('Erotic broadcasts allowed only for registered users, '
(username, password) = self._get_login_info()
if username is None:
raise ExtractorError('Erotic broadcasts allowed only for registered users, '
- 'use --username and --password options to provide account credentials.', expected=True)
+
'use --username and --password options to provide account credentials.', expected=True)
login_form = {
'login-hint53': '1',
login_form = {
'login-hint53': '1',