diff --git a/config-Jellyfin-example.yaml b/config-Jellyfin-example.yaml new file mode 100644 index 0000000..16d1d22 --- /dev/null +++ b/config-Jellyfin-example.yaml @@ -0,0 +1,90 @@ +# target directory for the modified files +destination_directory: './web' + +# copy rules +copy_rules: + - sources: + # add/replace new logos and icons + - source: './img/icon-transparent.png' + target: './icon-transparent*.png' + - source: './img/banner-light.png' + target: './banner-light*.png' + - source: './img/banner-dark.png' + target: './banner-dark*.png' + + - source: './img/favicon_32x32.ico' + target: './favicon*.ico' + - source: './img/favicon.ico' + target: './favicon*.ico' + - source: './img/touchicon_180x180.png' + target: './touchicon*.png' + - source: './img/notificationicon.png' + target: './notificationicon*.png' + + - source: './img/favicons_dir' + target: './favicons' + mode: 'replace' + + + - sources: + - './seasonals' # add seasonals files from https://github.com/CodeDevMLH/Jellyfin-Seasonals + - './featured' # add featured iframe files from https://github.com/CodeDevMLH/Jellyfin-Featured-Content-Bar + - './pictures' # add pictures for eg. background on login page + + - source: './img/background.png' + target: './assets/img/background.png' + - source: './img/logo.png' + target: './assets/img/logo.png' + mode: 'copy' # copy directories and files + +# modification rules +modification_rules: + # modify login page, insert own logo + - file_pattern: 'session-login-index-html\.[0-9a-z]+\.chunk\.js$' + insert_rules: + - after_text: '
' + insert_text: '' + + # Instancename, Jellyseer I-Frame + - file_pattern: 'index.html' + insert_rules: + # add needed seasonals modifications from https://github.com/CodeDevMLH/Jellyfin-Seasonals + - before_text: '' + insert_text: '
' + + # Page title and requests tab + - before_text: 're:' # using regex to match the hash + # replace 'Your Title' with your own title (first row) and 'Request' with your own request tab name (second row) + insert_text: > + + + + replace_rules: + # Page title - replace 'Your Title' with your own title + - old_text: 'Jellyfin' + new_text: 'Your Title' + + # Instancename, Jellyseer I-Frame + - 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: '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}' + + + + + - file_pattern: 'home-html\.[0-9a-z]+\.chunk\.js$' + insert_rules: + # featured iframe and requests iframe style from https://github.com/CodeDevMLH/Jellyfin-Featured-Content-Bar + - after_text: 'data-backdroptype="movie,series,book">' + insert_text: > + + + + # request tab on main page (embedded iframe of your Jellyseer (Overseerr) instance) + - after_text: 'id="favoritesTab" data-index="1">
' + insert_text: '
' diff --git a/config-Example.yaml b/config-Jellyfin-example_10-10-7.yaml similarity index 97% rename from config-Example.yaml rename to config-Jellyfin-example_10-10-7.yaml index f255321..83d6cad 100644 --- a/config-Example.yaml +++ b/config-Jellyfin-example_10-10-7.yaml @@ -21,7 +21,7 @@ copy_rules: - sources: - './seasonals' # add seasonals files from https://github.com/CodeDevMLH/Jellyfin-Seasonals - - './featured' # add featured iframe files from https://github.com/CodeDevMLH/Jellyfin-Featured-Content-Bar + - './featured' # add featured iframe files from https://github.com/CodeDevMLH/Jellyfin-Featured-Content-Bar - './pictures' # add pictures for eg. background on login page - source: './img/background.png' diff --git a/config.yaml b/config.yaml index 92608b2..fad5d51 100644 --- a/config.yaml +++ b/config.yaml @@ -25,15 +25,11 @@ copy_rules: mode: 'replace' # Überschreibt vorhandene Dateien/Ordner - - - sources: - './seasonals' - './featured' - './pictures' - - source: './img/background.png' - target: './assets/img/background.png' - source: './img/logo.png' target: './assets/img/logo.png' mode: 'copy' # Kopiert Dateien/Ordner