summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-07-19 12:01:35 +0300
committerThanos Apollo <[email protected]>2023-07-19 12:01:35 +0300
commit205ce2dcd2206000ab615ca9ecefc6e173355e51 (patch)
treea6230d6abecdce010523443d6201cec983e7b53c
parentd1c33baad3959d50c59e6b62bb9c6f3d9fadc764 (diff)
yeetube-search: Add decoding
decode-region to 'utf-8
-rw-r--r--yeetube.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/yeetube.el b/yeetube.el
index b02c89d..1c4df53 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -159,10 +159,6 @@ It's recommended you keep it as the default value."
(message "mpv play/pause"))
(error "To use this function you need to have mpv installed & set yeetube-player to the default value")))
-;; we should use something like
-;; (decode-coding-region (point-min) (point-max) 'utf-8
-;; (get-buffer-create "decoded"))
-;; in yeetube-search to make sure titles are always correct
;; this is a quick "duck-tape" fix.
(defun yeetube-fix-title (title)
"Adjust TITLE."
@@ -216,6 +212,7 @@ PREFIX [[URL/watch?v=VIDEOID][VIDEOTITLE ]]"
"/search?q="
(replace-regexp-in-string " " "+" query))
t t)
+ (decode-coding-region (point-min) (point-max) 'utf-8)
(goto-char (point-min))
(toggle-enable-multibyte-characters)
(if is-youtube?