1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Implement placeholder get_suggestion in YoutubeDLVideo

This commit is contained in:
Steffo 2019-01-04 17:59:00 +01:00
parent c47494bbad
commit f17003ce7b

View file

@ -112,8 +112,6 @@ class Video:
raise NotImplementedError() raise NotImplementedError()
# this is not an abstract class pycharm wtf
# noinspection PyAbstractClass
class YoutubeDLVideo(Video): class YoutubeDLVideo(Video):
"""A file sourcing from YoutubeDL.""" """A file sourcing from YoutubeDL."""
@ -186,6 +184,9 @@ class YoutubeDLVideo(Video):
self.audio_source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(self.get_filename(), **ffmpeg_settings)) self.audio_source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(self.get_filename(), **ffmpeg_settings))
return self.audio_source return self.audio_source
def get_suggestion(self):
return None
class LoopMode(enum.Enum): class LoopMode(enum.Enum):
NORMAL = enum.auto() NORMAL = enum.auto()