This commit is contained in:
MLH
2024-12-09 01:02:27 +01:00
parent 97f50f101c
commit 9b175bf983
4 changed files with 374 additions and 0 deletions

37
config.yaml Normal file
View File

@@ -0,0 +1,37 @@
# config for Jellyfin file modificator for customization
start_directory: '.' # Startverzeichnis für die Suche
modifications:
- file_pattern: 'session-login-index-html\..*\.bundle\.js'
insert_rules:
- after_text: '<div class="padded-left padded-right padded-bottom-page margin-auto-y">'
insert_text: '<img src="/web/logo.png" width=350px style="padding: 0px;display:block; margin-left: auto; margin-right: auto;">'
# Instancename, Jellyseer I-Frame
- file_pattern: 'index.html'
insert_rules:
- before_text: '<link href="{*}" rel="stylesheet">'
insert_text: 'New content to insert'
replace_rules:
- old_text: '<title>Jellyfin</title>'
new_text: '<title>SpaceCloud - Cinema</title>'
- file_pattern: 'another-file-pattern\.js'
insert_rules:
- before_text: 'specific-text-to-search-for'
insert_text: 'Neuer Inhalt vor dem Zieltext'
- after_text: 'another-specific-text'
insert_text: 'Neuer Inhalt nach dem Zieltext'
- file_pattern: '\.js$'
replace_rules:
- old_text: 'const version = '
new_text: 'const version = '
insert_rules:
- before_text: 'function initializeApp() {'
insert_text: '// Neue Initialisierungsvorbereitungen'