tag utf-8

This commit is contained in:
VineFeeder
2025-10-05 14:38:17 +01:00
parent 261ee38ecb
commit d0495a3eee
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -109,11 +109,11 @@ class Config:
# noinspection PyProtectedMember
POSSIBLE_CONFIG_PATHS = (
# The unshackle Namespace Folder (e.g., %appdata%/Python/Python311/site-packages/unshackle)
# The envied Namespace Folder (e.g., %appdata%/Python/Python311/site-packages/envied)
Config._Directories.namespace_dir / Config._Filenames.root_config,
# The Parent Folder to the unshackle Namespace Folder (e.g., %appdata%/Python/Python311/site-packages)
# The Parent Folder to the envied Namespace Folder (e.g., %appdata%/Python/Python311/site-packages)
Config._Directories.namespace_dir.parent / Config._Filenames.root_config,
# The AppDirs User Config Folder (e.g., %localappdata%/unshackle)
# The AppDirs User Config Folder (e.g., %localappdata%/envied)
Config._Directories.user_configs / Config._Filenames.root_config,
)
@@ -294,7 +294,7 @@ def _apply_tags(path: Path, tags: dict[str, str]) -> None:
for name, value in tags.items():
xml_lines.append(f" <Simple><Name>{escape(name)}</Name><String>{escape(value)}</String></Simple>")
xml_lines.extend([" </Tag>", "</Tags>"])
with tempfile.NamedTemporaryFile("w", suffix=".xml", delete=False) as f:
with tempfile.NamedTemporaryFile("w", suffix=".xml", delete=False, encoding="utf-8") as f:
f.write("\n".join(xml_lines))
tmp_path = Path(f.name)
try:
@@ -21,7 +21,7 @@ import subprocess
import pkgutil
from .pretty import catppuccin_mocha
from .config_loader import load_config_with_fallback, get_bool, project_config_path, save_project_config
import shutil
PAGE_SIZE = 8 # size of beaupy pagination
@@ -1,2 +1,2 @@
BATCH_DOWNLOAD: false
BATCH_DOWNLOAD: true
TERMINAL_RESET: true
@@ -7,7 +7,7 @@ media_dict:
animation: https://watch.plex.tv/on-demand/category/animation
comedy: https://watch.plex.tv/on-demand/category/comedy
crime: https://watch.plex.tv/on-demand/category/crime
documantary: https://watch.plex.tv/on-demand/category/documentary
documentary: https://watch.plex.tv/on-demand/category/documentary
drama: https://watch.plex.tv/on-demand/category/drama
en epsaniol: https://watch.plex.tv/on-demand/category/en-espanol
horror: https://watch.plex.tv/on-demand/category/horror