1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
diff --git a/t_modules/t_lyrics.py b/t_modules/t_lyrics.py
index 8e5d197a..19b91bd8 100644
--- a/t_modules/t_lyrics.py
+++ b/t_modules/t_lyrics.py
@@ -18,7 +18,7 @@
# along with Tauon Music Box. If not, see <http://www.gnu.org/licenses/>.
-from isounidecode import unidecode
+from unidecode import unidecode
from bs4 import BeautifulSoup
import urllib.parse
import requests
@@ -81,7 +81,7 @@ def genius(artist, title, return_url=False):
line = line.replace("/", "-")
line = line.replace("-&-", "-and-")
line = line.replace("&", "-and-")
- line = unidecode(line).decode()
+ line = unidecode(line)
line = urllib.parse.quote(line)
line = f"https://genius.com/{line}-lyrics"
diff --git a/t_modules/t_main.py b/t_modules/t_main.py
index c2f2ebab..4848b7b2 100644
--- a/t_modules/t_main.py
+++ b/t_modules/t_main.py
@@ -591,7 +591,7 @@ from pathlib import Path
from xml.sax.saxutils import escape, unescape
from ctypes import *
from send2trash import send2trash
-from isounidecode import unidecode
+from unidecode import unidecode
from collections import OrderedDict
musicbrainzngs.set_useragent("TauonMusicBox", n_version, "https://github.com/Taiko2k/Tauon")
@@ -25663,14 +25663,14 @@ def worker2():
s_text = s_cn
if dia_mode:
- title = unidecode(title).decode()
+ title = unidecode(title)
- artist = unidecode(artist).decode()
- album_artist = unidecode(album_artist).decode()
- composer = unidecode(composer).decode()
- album = unidecode(album).decode()
- filename = unidecode(filename).decode()
- sartist = unidecode(sartist).decode()
+ artist = unidecode(artist)
+ album_artist = unidecode(album_artist)
+ composer = unidecode(composer)
+ album = unidecode(album)
+ filename = unidecode(filename)
+ sartist = unidecode(sartist)
if cache_string is None:
search_dia_string_cache[
@@ -30054,9 +30054,9 @@ class Over:
click=self.click, replace="github")
y += spacing
- ddt.text((x, y), "isounidecode", colours.box_sub_text, font)
- ddt.text((xx, y), "New BSD License", colours.box_text_label, font)
- draw_linked_text2(xxx, y, "https://github.com/redvasily/isounidecode", colours.box_sub_text, font,
+ ddt.text((x, y), "unidecode", colours.box_sub_text, font)
+ ddt.text((xx, y), "GPL-2.0+", colours.box_text_label, font)
+ draw_linked_text2(xxx, y, "https://github.com/avian2/unidecode", colours.box_sub_text, font,
click=self.click, replace="github")
y += spacing
diff --git a/t_modules/t_main.py b/t_modules/t_main.py
index 4848b7b2..cc662a74 100644
--- a/t_modules/t_main.py
+++ b/t_modules/t_main.py
@@ -4550,7 +4550,7 @@ try:
gme.gme_open_file.restype = ctypes.c_char_p
except:
- print("Cannont find libgme")
+ pass
def use_id3(tags, nt):
def natural_get(tag, track, frame, attr):
diff --git a/input.txt b/input.txt
index d3a9268..996727f 100644
--- a/input.txt
+++ b/input.txt
@@ -58,7 +58,7 @@ pagedown PageDown
delete-playlist W Ctrl
delete-playlist-force W Shift Ctrl
rename-playlist R Ctrl
-rename-playlist F2
+cycle-theme F2
new-playlist T Ctrl
new-generator-playlist E Ctrl Shift
|