diff options
author | Thanos Apollo <[email protected]> | 2023-07-19 12:01:35 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-07-19 12:01:35 +0300 |
commit | 205ce2dcd2206000ab615ca9ecefc6e173355e51 (patch) | |
tree | a6230d6abecdce010523443d6201cec983e7b53c | |
parent | d1c33baad3959d50c59e6b62bb9c6f3d9fadc764 (diff) |
yeetube-search: Add decoding
decode-region to 'utf-8
-rw-r--r-- | yeetube.el | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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? |