Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/mmattbtw/twitchtunes
Browse files Browse the repository at this point in the history
  • Loading branch information
mmattbtw committed Jul 28, 2021
2 parents f722e5b + 7de1aca commit 2a95e1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ async def blacklist_command(self, ctx, *, song_uri: str):
if song_uri not in jscon["blacklist"]:
if re.match(URL_REGEX, song_uri):
data = sp.track(song_uri)
song_uri = data['uri']
song_uri = data["uri"]
song_uri = song_uri.replace("spotify:track:", "")


track = sp.track(song_uri)

track_name = track["name"]
Expand Down

0 comments on commit 2a95e1e

Please sign in to comment.