Add rate_playlist, subscribe_artists, unsubscribe_artists

This commit is contained in:
sigma67 2020-04-22 18:59:51 +02:00
commit 42b6c0a19a
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 129 additions and 27 deletions

View file

@ -17,6 +17,17 @@ def prepare_browse_endpoint(type, browseId):
}
def prepare_like_endpoint(rating):
if rating == 'LIKE':
return 'like/like'
elif rating == 'DISLIKE':
return 'like/dislike'
elif rating == 'INDIFFERENT':
return 'like/removelike'
else:
return None
def html_to_txt(html_text):
tags = re.findall("<[^>]+>",html_text)
for tag in tags: