mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 08:17:00 +00:00
[eroprofile] Use raise_login_required
This commit is contained in:
parent
bbb43a39fd
commit
3c53455d15
1 changed files with 1 additions and 2 deletions
|
@ -71,8 +71,7 @@ class EroProfileIE(InfoExtractor):
|
||||||
|
|
||||||
m = re.search(r'You must be logged in to view this video\.', webpage)
|
m = re.search(r'You must be logged in to view this video\.', webpage)
|
||||||
if m:
|
if m:
|
||||||
raise ExtractorError(
|
self.raise_login_required('This video requires login')
|
||||||
'This video requires login. Please specify a username and password and try again.', expected=True)
|
|
||||||
|
|
||||||
video_id = self._search_regex(
|
video_id = self._search_regex(
|
||||||
[r"glbUpdViews\s*\('\d*','(\d+)'", r'p/report/video/(\d+)'],
|
[r"glbUpdViews\s*\('\d*','(\d+)'", r'p/report/video/(\d+)'],
|
||||||
|
|
Loading…
Reference in a new issue