mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
Merge branch 'dlive-errmsg'
This commit is contained in:
commit
03db8693f2
@ -4,7 +4,10 @@ import json
|
||||
import re
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..utils import int_or_none
|
||||
from ..utils import (
|
||||
int_or_none,
|
||||
ExtractorError,
|
||||
)
|
||||
|
||||
|
||||
class DLiveVODIE(InfoExtractor):
|
||||
@ -76,7 +79,14 @@ class DLiveStreamIE(InfoExtractor):
|
||||
username
|
||||
}
|
||||
}''' % display_name}).encode())['data']['userByDisplayName']
|
||||
|
||||
livestream = user['livestream']
|
||||
|
||||
if(livestream is None):
|
||||
raise ExtractorError(
|
||||
"The requested stream is offline!",
|
||||
expected=True)
|
||||
|
||||
title = livestream['title']
|
||||
username = user['username']
|
||||
formats = self._extract_m3u8_formats(
|
||||
|
Loading…
Reference in New Issue
Block a user