From 11cbc28bf951cd9b8788d778fdbe25d2a1f30fa7 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Wed, 21 Feb 2024 22:44:59 +0530 Subject: chore: fixed showing html encoding in title --- yt_music/__version__.py | 2 +- yt_music/__yt_music__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'yt_music') diff --git a/yt_music/__version__.py b/yt_music/__version__.py index 7dcb47f..a952047 100644 --- a/yt_music/__version__.py +++ b/yt_music/__version__.py @@ -1 +1 @@ -__core__ = "0.0.5" +__core__ = "0.0.6" 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) -- cgit v1.1