mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-14 12:15:23 +00:00
refactor: use UserNotLive error when offline
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from .common import InfoExtractor
|
||||
from ..utils import ExtractorError
|
||||
from ..utils import ExtractorError, UserNotLive
|
||||
|
||||
|
||||
class MyFreeCamsIE(InfoExtractor):
|
||||
@@ -87,7 +87,7 @@ class MyFreeCamsIE(InfoExtractor):
|
||||
|
||||
params = self.get_required_params(webpage)
|
||||
if not params['sid']:
|
||||
raise ExtractorError('Model offline')
|
||||
raise UserNotLive('Model offline')
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
|
||||
Reference in New Issue
Block a user