1
0
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:
JChris246 2025-03-15 17:52:00 -04:00
parent 735ce76e22
commit 1dd3d4190d

View File

@ -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,