Rapsys Git
/
youtubedl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start preparing new release.
[youtubedl]
/
youtube_dl
/
extractor
/
eroprofile.py
diff --git
a/youtube_dl/extractor/eroprofile.py
b/youtube_dl/extractor/eroprofile.py
index 316033cf18b42cefead780ceca15b361ebbddac7..c08643a17cb99a92dd508201ad5c1ca69fd863ad 100644
(file)
--- a/
youtube_dl/extractor/eroprofile.py
+++ b/
youtube_dl/extractor/eroprofile.py
@@
-3,7
+3,7
@@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
import re
from .common import InfoExtractor
-from ..compat import compat_urllib_parse
+from ..compat import compat_urllib_parse
_urlencode
from ..utils import (
ExtractorError,
unescapeHTML
from ..utils import (
ExtractorError,
unescapeHTML
@@
-22,7
+22,7
@@
class EroProfileIE(InfoExtractor):
'display_id': 'sexy-babe-softcore',
'ext': 'm4v',
'title': 'sexy babe softcore',
'display_id': 'sexy-babe-softcore',
'ext': 'm4v',
'title': 'sexy babe softcore',
- 'thumbnail': 're:https?://.*\.jpg',
+ 'thumbnail':
r
're:https?://.*\.jpg',
'age_limit': 18,
}
}, {
'age_limit': 18,
}
}, {
@@
-32,7
+32,7
@@
class EroProfileIE(InfoExtractor):
'id': '1133519',
'ext': 'm4v',
'title': 'Try It On Pee_cut_2.wmv - 4shared.com - file sharing - download movie file',
'id': '1133519',
'ext': 'm4v',
'title': 'Try It On Pee_cut_2.wmv - 4shared.com - file sharing - download movie file',
- 'thumbnail': 're:https?://.*\.jpg',
+ 'thumbnail':
r
're:https?://.*\.jpg',
'age_limit': 18,
},
'skip': 'Requires login',
'age_limit': 18,
},
'skip': 'Requires login',
@@
-43,7
+43,7
@@
class EroProfileIE(InfoExtractor):
if username is None:
return
if username is None:
return
- query = compat_urllib_parse
.
urlencode({
+ query = compat_urllib_parse
_
urlencode({
'username': username,
'password': password,
'url': 'http://www.eroprofile.com/',
'username': username,
'password': password,
'url': 'http://www.eroprofile.com/',
@@
-71,8
+71,7
@@
class EroProfileIE(InfoExtractor):
m = re.search(r'You must be logged in to view this video\.', webpage)
if m:
m = re.search(r'You must be logged in to view this video\.', webpage)
if m:
- raise ExtractorError(
- 'This video requires login. Please specify a username and password and try again.', expected=True)
+ self.raise_login_required('This video requires login')
video_id = self._search_regex(
[r"glbUpdViews\s*\('\d*','(\d+)'", r'p/report/video/(\d+)'],
video_id = self._search_regex(
[r"glbUpdViews\s*\('\d*','(\d+)'", r'p/report/video/(\d+)'],