Skip to content

Commit

Permalink
Merge branch 'telegram-alpha' into telegram-unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
artyshko committed Feb 18, 2019
2 parents f397780 + e09c72a commit 6437396
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ def controller(self, message, id):

logging.info(f"NAME {message}")

elif str(message).find('Мое открытие на Shazam:') > -1:
#fix for russian lang
new = str(message).split('Мое открытие на Shazam: ')[1]
new = str(new).split('. https')[0]
message = new
#logging
logging.info(f"NAME {message}")

state, data = self.downloader.downloadBySearchQuery(message)

#FIX
Expand Down

0 comments on commit 6437396

Please sign in to comment.