Jellyfin Seasonals Plugin
Jellyfin Seasonals is a plugin that adds seasonal themes to your Jellyfin web interface. Depending on the configuration, it automatically selects a theme based on the current date or allows you to manually set a default theme.
This plugin is based on my manual mod (see the legacy branch), which builds up on the awesome work of BobHasNoSoul-jellyfin-mods.
Table of Contents
Features
- Automatic Theme Selection: Dynamically updates the theme based on the date (e.g., snowflakes in December, fireworks for new year's eve).
- Easy Integration: No manual file editing required. The plugin injects everything automatically.
- Configuration UI: Configure settings directly in the Jellyfin Dashboard (very basic for now, needs some work in the future).
Overview
Installation
This plugin is based on Jellyfin Version 10.11.x
To install this plugin, you will first need to add the repository in Jellyfin.
- Open your Jellyfin Dashboard.
- Navigate to Plugins > Manage Repositories.
- Click the + New Repository button to add a new repository.
- Enter a name (e.g., "Seasonals") and paste the following URL into the 'Repository URL' field:
https://raw.githubusercontent.com/CodeDevMLH/Jellyfin-Seasonals/refs/heads/main/manifest.json
- Click Add.
- Go to the Available tab at the top.
- Find the Seasonals plugin (Under General)
- Click on it and select Install.
- Restart your Jellyfin server.
- You may need to refresh your browser page (F5 or Ctrl+R) to see the changes.
Configuration
After installation and restart:
- Go to Dashboard > Plugins > Seasonals.
- Enable Seasonals: Toggle the plugin on or off.
- Automatic Selection:
- If enabled, the plugin selects the theme based on the current date (e.g., Snow in Winter, Hearts in February). See the table below for details.
- If disabled, you can manually select a theme from the dropdown list.
- Save your settings.
- Reload your browser page (F5 or Ctrl+R) to see the changes.
Automatic Theme Selection
If automatic selection is enabled, the following themes are applied based on the date. Specific holiday events take precedence over general seasonal themes.:
| Theme | Active Period | Description |
|---|---|---|
santa |
Dec 22 – Dec 27 | Christmas theme |
fireworks |
Dec 28 – Jan 05 | New Year's celebration |
hearts |
Feb 10 – Feb 18 | Valentine's Day |
easter |
Mar 25 – Apr 25 | Easter theme |
halloween |
Oct 24 – Nov 05 | Halloween theme |
snowflakes |
December (Remainder) | General December winter theme |
snowfall |
January & February | General winter theme (outside of holidays) |
autumn |
Sep, Oct, Nov | Fall theme (when not Halloween) |
none |
All other dates | Default appearance |
Note: Holiday themes (like
santaorfireworks) override monthly seasonal themes (likesnowflakes).
Theme Settings
Each theme contains additional settings to customize its behavior. Expand the advanced configuration section to configure each theme, adjust parameters like particle count, animation speed etc.
Build Process
If you want to build the plugin yourself:
- Clone the repository.
- Ensure you have the .NET SDK installed (NET 8 or 9 depending on your Jellyfin version).
- Run the build command:
dotnet build Jellyfin.Plugin.Seasonals/Jellyfin.Plugin.Seasonals.csproj --configuration Release --output bin/Publish - The compiled DLL and resources will be in bin/Publish.
Troubleshooting
Effects Not Showing
-
Verify plugin installation:
- Check that the plugin appears in the jellyfin admin panel
- Ensure that the plugin is enabled and active
-
Clear browser cache:
- Force refresh browser (Ctrl+F5)
- Clear jellyfin web client cache (--> mostly you have to clear the whole browser cache)
Docker Permission Issues
If you encounter the message Access was denied when attempting to inject script into index.html. Automatic direct injection failed. Automatic direct insertion failed. The system will now attempt to use the File Transformation plugin. in the log or similar permission errors in Docker:
Option 1: Use File Transformation Plugin (Recommended)
Seasonals now automatically detects and uses the File Transformation plugin (v2.5.0.0+) if it's installed. This eliminates permission issues by transforming content at runtime without modifying files on disk.
Installation Steps:
- Install the File Transformation plugin from the Jellyfin plugin catalog
- Restart Jellyfin
- Seasonals will automatically detect and use it (no configuration needed)
- Check logs to confirm: Look for "Successfully registered transformation with File Transformation plugin"
Benefits:
- No file permission issues in Docker environments
- Works with read-only web directories
- Survives Jellyfin updates without re-injection
- No manual file modifications required
Option 2: Fix File Permissions
# Find the actual index.html location
docker exec -it jellyfin find / -name index.html
# Fix ownership (replace 'jellyfin' with your container name and adjust user:group if needed)
docker exec -it --user root jellyfin chown jellyfin:jellyfin /jellyfin/jellyfin-web/index.html
# Restart container
docker restart jellyfin
Option 3: Manual Volume Mapping
# Extract index.html from container
docker cp jellyfin:/jellyfin/jellyfin-web/index.html /path/to/jellyfin/config/index.html
# Add to docker-compose.yml volumes section:
volumes:
- /path/to/jellyfin/config/index.html:/jellyfin/jellyfin-web/index.html
Contributing
Feel free to contribute to this project by creating pull requests or reporting issues.
Legacy Manual Installation
Click to expand instructions for the old manual installation method (without plugin)
Installation
Tip
Take a look at CodeDevMLH/Jellyfin-Mods-Automated-Script
-
Add Seasonal Container to
index.html
Edit theindex.htmlfile of your Jellyfin web instance. Add the following code inside the<body>tag:<div class="seasonals-container"></div> <script src="seasonals/seasonals.js"></script> -
Deploy Files
Place the seasonals folder (including seasonals.js, CSS, and additional JavaScript files for each theme this one) inside the Jellyfin web server directory (labeld with "web"). -
Configure Themes
Customize the theme-configs.js file to modify or add new themes. The default configuration is shown below:const automateThemeSelection = true; // Set to false to disable automatic theme selection based on current date const defaultTheme = 'none'; // Default theme if automatic selection is off const themeConfigs = { snowflakes: { css: 'seasonals/snowflakes.css', js: 'seasonals/snowflakes.js', containerClass: 'snowflakes' }, snowfall: { css: 'seasonals/snowfall.css', js: 'seasonals/snowfall.js', containerClass: 'snowfall-container' }, // more configs... none: { containerClass: 'none' }, }; -
Reload the web interface
After making these changes, restart your Jellyfin server and/or refresh the web interface (ctrl+F5, sometimes you need to clear the browsers temp files/cache (every time with firefox ;-()) to see the changes.
Theme Settings
Each theme's JavaScript file contains additional settings to customize its behavior. Here are examples for the autumn and snowflakes themes:
Autumn Theme Settings
const leaves = true; // Enable/disable leaves
const randomLeaves = true; // Enable random leaves
const randomLeavesMobile = false; // Enable random leaves on mobile devices
const enableDiffrentDuration = true; // Enable different animation duration for random leaves
const leafCount = 25; // Number of random extra leaves
Snowflakes Theme Settings
const snowflakes = true; // Enable/disable snowflakes
const randomSnowflakes = true; // Enable random snowflakes
const randomSnowflakesMobile = false; // Enable random snowflakes on mobile devices
const enableColoredSnowflakes = true; // Enable colored snowflakes on mobile devices
const enableDiffrentDuration = true; // Enable different animation duration for random snowflakes
const snowflakeCount = 25; // Number of random extra snowflakes
Usage
Automatic Theme Selection
By default, the theme is automatically selected based on the date. For example:
Snowfall: January
Hearts: February (Valentine's Day)
Halloween: October
Modify the determineCurrentTheme() function in seasonals.js to adjust date-based logic.
Manual Theme Selection
To use a fixed theme, set automateThemeSelection to false in the theme-configs.js file and specify a defaultTheme.
Custom Themes
-
Add your CSS and JavaScript files to the seasonals folder.
-
Extend the themeConfigs object with your theme details:
myTheme: { css: 'seasonals/my-theme.css', js: 'seasonals/my-theme.js', containerClass: 'my-theme-container', }
Additional Directory: Separate Single Seasonals
For users who prefer not to use the automatic seasonal theme selection, individual seasonals are available in the separate single seasonals folder. Each seasonal theme can be independently loaded and used without relying on the main automatic selection system.
but this requires to the modify of the index.html with adding the html in add_to_index_html.
To use a single seasonal theme, include its specific CSS and JS files in your index.html inside the <body> </body> tags provided by add_to_index_html.html in the sub-theme-folders as shown below:
<div class="seasonalsname-container"></div>
<script src="separate single seasonals/snowflakes.js"></script>
<link rel="stylesheet" href="separate single seasonals/snowflakes.css">
</details>
