diff --git a/config.yaml b/config.yaml
index 4160e5e..41de78e 100644
--- a/config.yaml
+++ b/config.yaml
@@ -15,8 +15,6 @@ copy_rules:
target: './bc8d51405ec040305a87.ico'
- source: './img/favicon.ico'
target: './favicon.ico'
- - source: './img/favicon.png'
- target: './assets/img/favicon.png'
mode: 'replace' # Überschreibt vorhandene Dateien/Ordner
@@ -25,11 +23,14 @@ copy_rules:
- sources:
- './seasonals'
- './ui'
+ - './pictures'
- source: './img/background.png'
target: './assets/img/background.png'
- source: './img/logo.png'
target: './assets/img/logo.png'
+ - source: './img/favicon.png'
+ target: './assets/img/favicon.png'
mode: 'copy' # Kopiert Dateien/Ordner
# Modifikationsregeln
@@ -52,7 +53,7 @@ modification_rules:
insert_text: >
-
+
replace_rules:
# Page title
- old_text: '
Jellyfin'
@@ -78,7 +79,7 @@ modification_rules:
- after_text: 'data-backdroptype="movie,series,book">'
insert_text: >
-
+
# request tab on main page
- after_text: 'id="favoritesTab" data-index="1"> '
diff --git a/customize-WebUI.py b/customize-WebUI.py
index 682858a..c47b72f 100644
--- a/customize-WebUI.py
+++ b/customize-WebUI.py
@@ -174,7 +174,8 @@ def modifyFiles(config, destinationDirectory):
raise ValueError(f"Text '{after_text}' not found in file: {filePath}")
elif insert_text not in content:
print(f" {Colors.GREEN}Inserting text after: {after_text} {Colors.YELLOW}+ ->{Colors.GREEN} {insert_text}{Colors.RESET}")
- content = content.replace(after_text, after_text + insert_text)
+ # content = content.replace(after_text, after_text + insert_text)
+ content = content.replace(after_text, after_text + insert_text.replace('\n', ''))
else:
print(f" {Colors.YELLOW}Text already present after: {after_text}{Colors.RESET}")
errorList['modWarnings'] += 1
@@ -187,7 +188,8 @@ def modifyFiles(config, destinationDirectory):
raise ValueError(f"Text '{before_text}' not found in file: {filePath}")
elif insert_text not in content:
print(f" {Colors.GREEN}Inserting text before: {insert_text} {Colors.YELLOW}+ <-{Colors.GREEN} {before_text}{Colors.RESET}")
- content = content.replace(before_text, insert_text + before_text)
+ # content = content.replace(before_text, insert_text + before_text)
+ content = content.replace(before_text, insert_text.replace('\n', '') + before_text)
else:
print(f" {Colors.YELLOW}Text already present before: {before_text}{Colors.RESET}")
errorList['modWarnings'] += 1