diff --git a/config-testserver.yaml b/config-testserver.yaml index 1fd2253..7d7f046 100644 --- a/config-testserver.yaml +++ b/config-testserver.yaml @@ -4,31 +4,27 @@ destination_directory: './web' # Kopierregeln copy_rules: - sources: - - './seasonals' - './featured' - './pictures' mode: 'copy' # Kopiert Dateien/Ordner # Modifikationsregeln modification_rules: + # Login logo - file_pattern: 'session-login-index-html\.[0-9a-z]+\.chunk\.js$' insert_rules: - after_text: '
' insert_text: '' - # Jellyseer I-Frame + # Jellyseer Tab Button - file_pattern: 'index.html' insert_rules: - # Seasonals - - before_text: '' - insert_text: '
' - - # Page title and requests tab + # requests tab - before_text: 're:' insert_text: > - # Jellyseer I-Frame + # Limits and defaults - file_pattern: '^main\.jellyfin\.bundle\.js$' replace_rules: # Set limit on how many days items should be in the next up section (last number) @@ -38,9 +34,7 @@ modification_rules: - 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}' - - - + # Jellyseer I-Frame and featured iframe - file_pattern: 'home-html\.[0-9a-z]+\.chunk\.js$' insert_rules: # featured iframe and requests iframe style diff --git a/config-testserver_with_seasonals.yaml b/config-testserver_with_seasonals.yaml new file mode 100644 index 0000000..064c841 --- /dev/null +++ b/config-testserver_with_seasonals.yaml @@ -0,0 +1,52 @@ +# Zielverzeichnis für Operationen +destination_directory: './web' + +# Kopierregeln +copy_rules: + - sources: + - './featured' + - './pictures' + mode: 'copy' # Kopiert Dateien/Ordner + +# Modifikationsregeln +modification_rules: + # Login logo + - file_pattern: 'session-login-index-html\.[0-9a-z]+\.chunk\.js$' + insert_rules: + - after_text: '
' + insert_text: '' + + # Jellyseer Tab Button and Seasonals + - file_pattern: 'index.html' + insert_rules: + # Seasonals + - before_text: '' + insert_text: '
' + + # requests tab + - before_text: 're:' + insert_text: > + + + # Limits and defaults + - 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}' + + # Jellyseer I-Frame and featured iframe + - file_pattern: 'home-html\.[0-9a-z]+\.chunk\.js$' + insert_rules: + # featured iframe and requests iframe style + - after_text: 'data-backdroptype="movie,series,book">' + insert_text: > + + + + # request tab on main page + - after_text: 'id="favoritesTab" data-index="1">
' + insert_text: '
' diff --git a/config.yaml b/config.yaml index 63df9ba..087f8f6 100644 --- a/config.yaml +++ b/config.yaml @@ -26,7 +26,6 @@ copy_rules: mode: 'replace' # Überschreibt vorhandene Dateien/Ordner - sources: - - './seasonals' - './featured' - './pictures' @@ -44,19 +43,15 @@ modification_rules: - after_text: '
' insert_text: '' - # Jellyseer I-Frame + # Jellyseer Tab Button - file_pattern: 'index.html' insert_rules: - # Seasonals - - before_text: '' - insert_text: '
' - - # Page title and requests tab + # requests tab - before_text: 're:' insert_text: > - # Jellyseer I-Frame + # Limits and defaults - file_pattern: '^main\.jellyfin\.bundle\.js$' replace_rules: # Set limit on how many days items should be in the next up section (last number) @@ -66,9 +61,7 @@ modification_rules: - 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}' - - - + # Jellyseer I-Frame and featured iframe - file_pattern: 'home-html\.[0-9a-z]+\.chunk\.js$' insert_rules: # featured iframe and requests iframe style diff --git a/config_with_seasonals.yaml b/config_with_seasonals.yaml new file mode 100644 index 0000000..1c62c1f --- /dev/null +++ b/config_with_seasonals.yaml @@ -0,0 +1,80 @@ +# Zielverzeichnis für Operationen +destination_directory: './web' + +# Kopierregeln +copy_rules: + - sources: + - 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' # Überschreibt vorhandene Dateien/Ordner + + - sources: + - './seasonals' + - './featured' + - './pictures' + + - source: './img/logo.png' + target: './assets/img/logo.png' + - source: './img/banner-dark.png' + target: './assets/img/logo-banner.png' + mode: 'copy' # Kopiert Dateien/Ordner + +# Modifikationsregeln +modification_rules: + # Login logo + - file_pattern: 'session-login-index-html\.[0-9a-z]+\.chunk\.js$' + insert_rules: + - after_text: '
' + insert_text: '' + + # Jellyseer Tab Button and Seasonals + - file_pattern: 'index.html' + insert_rules: + # Seasonals + - before_text: '' + insert_text: '
' + + # requests tab + - before_text: 're:' + insert_text: > + + + # Limits and defaults + - 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}' + + # Jellyseer I-Frame and featured iframe + - file_pattern: 'home-html\.[0-9a-z]+\.chunk\.js$' + insert_rules: + # featured iframe and requests iframe style + - after_text: 'data-backdroptype="movie,series,book">' + insert_text: > + + + + # request tab on main page + - after_text: 'id="favoritesTab" data-index="1">
' + insert_text: '
'