Pass required params when erroring
This commit is contained in:
parent
85d0b8ba74
commit
7b2af300c0
|
@ -159,7 +159,7 @@ class YoutubeDLLiveStreamSource(discord.FFmpegPCMAudio):
|
||||||
raise ExtractionError('Could not extract information from {}\n\n{}'.format(self.url, e))
|
raise ExtractionError('Could not extract information from {}\n\n{}'.format(self.url, e))
|
||||||
|
|
||||||
if not info.get('is_live', False):
|
if not info.get('is_live', False):
|
||||||
raise WrongEntryTypeError("This is not a livestream!")
|
raise WrongEntryTypeError("This is not a livestream!", True, info.get('webpage_url', None) or info.get('url', None))
|
||||||
|
|
||||||
# Set our info
|
# Set our info
|
||||||
self.info = info
|
self.info = info
|
||||||
|
|
Loading…
Reference in a new issue