mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-18 02:18:29 +00:00
refactor: use UserNotLive error when offline
This commit is contained in:
parent
735ce76e22
commit
1dd3d4190d
@ -1,5 +1,5 @@
|
||||
from .common import InfoExtractor
|
||||
from ..utils import ExtractorError
|
||||
from ..utils import ExtractorError, UserNotLive
|
||||
|
||||
|
||||
class MyFreeCamsIE(InfoExtractor):
|
||||
@ -87,7 +87,7 @@ def _real_extract(self, url):
|
||||
|
||||
params = self.get_required_params(webpage)
|
||||
if not params['sid']:
|
||||
raise ExtractorError('Model offline')
|
||||
raise UserNotLive('Model offline')
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
|
Loading…
Reference in New Issue
Block a user