mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-21 10:45:28 -04:00
Unescape html artifacts from last.fm playlist title
This commit is contained in:
parent
e8a72b62b1
commit
498e8b2f9c
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import concurrent.futures
|
||||
import html
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
|
@ -528,7 +529,7 @@ class MusicDL(list):
|
|||
r'<h1 class="playlisting-playlist-header-title">([^<]+)</h1>', 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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue