From 498e8b2f9c02e1b81dd858badb270d7a47b1cf9d Mon Sep 17 00:00:00 2001 From: nathom Date: Tue, 4 May 2021 01:52:01 -0700 Subject: [PATCH] Unescape html artifacts from last.fm playlist title --- streamrip/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/streamrip/core.py b/streamrip/core.py index 924e6af..6782d9c 100644 --- a/streamrip/core.py +++ b/streamrip/core.py @@ -1,4 +1,5 @@ import concurrent.futures +import html import logging import os import re @@ -528,7 +529,7 @@ class MusicDL(list): r'

([^<]+)

', r.text ) if playlist_title_match is not None: - playlist_title = playlist_title_match.group(1) + playlist_title = html.unescape(playlist_title_match.group(1)) else: raise Exception("Error finding title from response")