fix replace rules

This commit is contained in:
MLH
2024-12-12 00:17:25 +01:00
parent baf406eb96
commit 3584482967
3 changed files with 33 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
# Zielverzeichnis für Operationen
destination_directory: './'
destination_directory: './web'
# Kopierregeln
copy_rules:
@@ -15,6 +15,8 @@ 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
@@ -26,15 +28,13 @@ copy_rules:
- source: './img/background.png'
target: './assets/img/background.png'
- source: './img/favicon.png'
target: './assets/img/favicon.png'
- source: './img/logo.png'
target: './assets/img/logo.png'
mode: 'copy' # Kopiert Dateien/Ordner
# Modifikationsregeln
modification_rules:
- file_pattern: 'session-login-index-html..*.bundle.js'
- file_pattern: 'session-login-index-html..*.chunk.js'
insert_rules:
- after_text: '<div class="padded-left padded-right padded-bottom-page margin-auto-y">'
insert_text: '<img id="login-logo" src="/web/assets/img/banner-dark.png" width=350px style="padding: 0px;display:block; margin-left: auto; margin-right: auto;">'
@@ -48,7 +48,7 @@ modification_rules:
insert_text: '<div class="seasonals-container"></div><script src="seasonals.js"></script><link rel="stylesheet" href="seasonals.css">'
# Page title and requests tab
- before_text: '<link href=".*" rel="stylesheet">'
- before_text: '<link href="main.jellyfin.1ed46a7a22b550acaef3.css?1a23c104c65d0a7517c7" rel="stylesheet">'
insert_text: >
<script>
document.addEventListener("DOMContentLoaded", function () {
@@ -96,11 +96,12 @@ modification_rules:
new_text: '<title>SpaceCloud - Cinema</title>'
# Instancename, Jellyseer I-Frame
- file_pattern: 'main.jellyfin.bundle.js'
#- file_pattern: 'main.jellyfin.bundle.js' # would also match 'home-html.123456.chunk.js.LICENSE.txt'
- file_pattern: '^main.jellyfin.bundle.js$' #file_pattern: '^main\.jellyfin\.bundle\.js$'
replace_rules:
# Set limit on how many days items should be in the next up section (last number)
- old_text: 't("maxDaysForNextUp",e.toString(),!1);var t=parseInt(this.get("maxDaysForNextUp",!1),10);return 0===t?0:t||365}}'
new_text: 't("maxDaysForNextUp",e.toString(),!1);var t=parseInt(this.get("maxDaysForNextUp",!1),10);return 0===t?0:t||28}}'
- old_text: 'this.set("maxDaysForNextUp",e.toString(),!1);var t=parseInt(this.get("maxDaysForNextUp",!1),10);return 0===t?0:t||365}}'
new_text: 'this.set("maxDaysForNextUp",e.toString(),!1);var t=parseInt(this.get("maxDaysForNextUp",!1),10);return 0===t?0:t||28}}'
# Default user page size (last number), 99 fits perfect on most desktops
- old_text: 'this.get("libraryPageSize",!1),10);return 0===t?0:t||100}'
new_text: 'this.get("libraryPageSize",!1),10);return 0===t?0:t||99}'