Make regex searches for offline/private error strings not throw warnings
This commit is contained in:
parent
cd56d28325
commit
af9fa317f1
@ -28,7 +28,8 @@ class CamModelsIE(InfoExtractor):
|
|||||||
r'(?P<id>I\'m offline, but let\'s stay connected!)',
|
r'(?P<id>I\'m offline, but let\'s stay connected!)',
|
||||||
webpage,
|
webpage,
|
||||||
'offline indicator',
|
'offline indicator',
|
||||||
fatal=False)
|
None,
|
||||||
|
False)
|
||||||
if offline:
|
if offline:
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'This user is currently offline, so nothing can be downloaded.',
|
'This user is currently offline, so nothing can be downloaded.',
|
||||||
@ -38,7 +39,8 @@ class CamModelsIE(InfoExtractor):
|
|||||||
r'(?P<id>I’m in a private show right now)',
|
r'(?P<id>I’m in a private show right now)',
|
||||||
webpage,
|
webpage,
|
||||||
'private show indicator',
|
'private show indicator',
|
||||||
fatal=False)
|
None,
|
||||||
|
False)
|
||||||
if private:
|
if private:
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'This user is doing a private show, which requires payment. This extractor currently does not support private streams.',
|
'This user is doing a private show, which requires payment. This extractor currently does not support private streams.',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user