Merge pull request #3356 from mikeshardmind/temp-branch

Merge an audio dix into dev
This commit is contained in:
Michael H 2020-01-12 17:28:31 -05:00 committed by GitHub
commit a105217e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
Fixed an attribute error that can be raised on play commands for spotify tracks.

View File

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

View File

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