diff options
author | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-21 22:44:59 +0530 |
---|---|---|
committer | DemonKingSwarn <rockingswarn@gmail.com> | 2024-02-21 22:44:59 +0530 |
commit | 11cbc28bf951cd9b8788d778fdbe25d2a1f30fa7 (patch) | |
tree | a1fc38921b8914ac4d5cd7d9b1a4bddd6fe230ce /yt_music/__yt_music__.py | |
parent | b28af7fd12630c8abafc13048a1bc7627555377e (diff) | |
download | yt-music-11cbc28bf951cd9b8788d778fdbe25d2a1f30fa7.zip yt-music-11cbc28bf951cd9b8788d778fdbe25d2a1f30fa7.tar.gz |
chore: fixed showing html encoding in title
Diffstat (limited to 'yt_music/__yt_music__.py')
-rw-r--r-- | yt_music/__yt_music__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_music/__yt_music__.py b/yt_music/__yt_music__.py index e1c4304..4b9e977 100644 --- a/yt_music/__yt_music__.py +++ b/yt_music/__yt_music__.py @@ -4,6 +4,7 @@ import subprocess import platform import os import time +import html from pypresence import Presence import httpx @@ -130,6 +131,7 @@ def main(): matches = re.findall(pattern, fetch.text) for match in matches: video_id, title = match + title = html.unescape(title) opt = f"{title} - {video_id}" opts.append(opt) ch = fzf.fzf_prompt(opts) |