Skip to content

Commit

Permalink
Merge pull request #46 from SEbbaDK/Fix-Spotify-Bug
Browse files Browse the repository at this point in the history
Fix spotify bug
  • Loading branch information
SEbbaDK authored Oct 29, 2021
2 parents 3a76b53 + 956b22a commit 151dcaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions players.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from dataclasses import dataclass
from collections.abc import Callable

import re
import deemix
import deemix.settings
from deemix.downloader import Downloader
Expand Down Expand Up @@ -91,6 +92,9 @@ def send(self, kind, message):
self.callback(message['downloadPath'])

def search(self, query: str):
url_check = query
if re.search("([a-z]*[.])\w+", url_check):
return []
results = self.dz.api.search(query)['data']
#print(results[0:9])
res_list = [
Expand Down

0 comments on commit 151dcaa

Please sign in to comment.