Add rate_playlist, subscribe_artists, unsubscribe_artists
This commit is contained in:
parent
3692d67df8
commit
42b6c0a19a
4 changed files with 129 additions and 27 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue