From fdbe30b2b250b6e94506d93d9328bd53b84b32ff Mon Sep 17 00:00:00 2001 From: sigma67 Date: Sun, 23 Feb 2020 19:36:46 +0100 Subject: [PATCH] Fix for Spotify HTML escaping --- SpotifyExport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpotifyExport.py b/SpotifyExport.py index 704f675..0427dd5 100644 --- a/SpotifyExport.py +++ b/SpotifyExport.py @@ -1,6 +1,7 @@ from spotipy.oauth2 import SpotifyClientCredentials import spotipy import settings +import html class Spotify: def __init__(self): @@ -39,7 +40,7 @@ def getSpotifyPlaylist(self, url): more = len(items["items"]) == 100 count = count + 1 - return {'tracks': tracks, 'name': name, 'description': results['description']} + return {'tracks': tracks, 'name': name, 'description': html.unescape(results['description'])} def getUserPlaylists(self, user): pl = self.api.user_playlists(user)['items']