mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Merge pull request #3356 from mikeshardmind/temp-branch
Merge an audio dix into dev
This commit is contained in:
commit
a105217e83
1
changelog.d/audio/3328.hotfix.1.rst
Normal file
1
changelog.d/audio/3328.hotfix.1.rst
Normal file
@ -0,0 +1 @@
|
||||
Fixed an attribute error that can be raised on play commands for spotify tracks.
|
||||
@ -750,6 +750,8 @@ class MusicCache:
|
||||
log.debug(f"Querying Local Database for {query}")
|
||||
task = ("update", ("lavalink", {"query": query}))
|
||||
self.append_task(ctx, *task)
|
||||
else:
|
||||
val = None
|
||||
if val and not forced:
|
||||
data = val
|
||||
data["query"] = query
|
||||
|
||||
@ -91,6 +91,8 @@ class CacheFetchResult:
|
||||
k in self.query for k in ["loadType", "playlistInfo", "isSeekable", "isStream"]
|
||||
):
|
||||
self.query = json.loads(self.query)
|
||||
else:
|
||||
self.query = None
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user