Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c131aef58 | ||
|
|
0747f63d11 | ||
|
|
12f6f23314 | ||
|
|
a27488366b | ||
|
|
dd4c71c3bf | ||
|
|
715cd1a663 | ||
|
|
9371ed9a33 | ||
|
|
c21b2d3ede | ||
|
|
8ac0b9c003 | ||
|
|
0a0080c889 | ||
|
|
b2dd3e4d21 | ||
|
|
e4dac0d85c | ||
|
|
52bc8022fc | ||
|
|
fb4416f4b3 | ||
|
|
a67c4ecbe7 | ||
|
|
972c914dab | ||
|
|
60825b7e2f | ||
|
|
5d23594e08 | ||
|
|
2cccb139bf | ||
|
|
f37b946c0c | ||
|
|
51c3eec58a | ||
|
|
236def9fed | ||
|
|
f864b1105e | ||
|
|
353db1eab1 |
@@ -40,6 +40,11 @@ jobs:
|
||||
|
||||
echo "Detected Version: $VERSION"
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
echo "TARGET_ABI=$TARGET_ABI" >> $GITHUB_ENV
|
||||
|
||||
# Also export GUID for later use
|
||||
PLUGIN_GUID=$(jq -r '.[0].guid' manifest.json)
|
||||
echo "PLUGIN_GUID=$PLUGIN_GUID" >> $GITHUB_ENV
|
||||
|
||||
# Escape newlines in changelog for GITHUB_ENV
|
||||
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
||||
@@ -71,7 +76,7 @@ jobs:
|
||||
REPO_OWNER="${{ github.repository_owner }}"
|
||||
REPO_NAME="${{ github.event.repository.name }}"
|
||||
VERSION="${{ env.VERSION }}"
|
||||
DOWNLOAD_URL="https://git.mahom03-spacecloud.de/${{ github.repository }}/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
DOWNLOAD_URL="https://git.mahom03-spacecloud.de/$REPO_OWNER/$REPO_NAME/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
|
||||
echo "Updating manifest.json with:"
|
||||
echo "Hash: ${{ env.ZIP_HASH }}"
|
||||
@@ -101,3 +106,153 @@ jobs:
|
||||
tag_name: "v${{ env.VERSION }}"
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
# Update Message in Remote Repository
|
||||
- name: Checkout Central Manifest Repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
repository: ${{ github.repository_owner }}/jellyfin-plugin-manifest
|
||||
path: central-manifest
|
||||
token: ${{ secrets.JELLYFIN_PLUGIN_MANIFEST_UPDATER_PAT }}
|
||||
|
||||
- name: Update Central Manifest
|
||||
shell: bash
|
||||
run: |
|
||||
cd central-manifest
|
||||
|
||||
# 1. Get info from previous steps
|
||||
VERSION="${{ env.VERSION }}"
|
||||
HASH="${{ env.ZIP_HASH }}"
|
||||
TIME="${{ env.BUILD_TIME }}"
|
||||
DOWNLOAD_URL="https://git.mahom03-spacecloud.de/${{ github.repository }}/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
|
||||
# 2. Get info from env
|
||||
PLUGIN_GUID="${{ env.PLUGIN_GUID }}"
|
||||
CHANGELOG="${{ env.CHANGELOG }}"
|
||||
TARGET_ABI="${{ env.TARGET_ABI }}"
|
||||
|
||||
echo "Updating Central Manifest for Plugin GUID: $PLUGIN_GUID"
|
||||
|
||||
# 3. Update/Prepend entry in central manifest.json
|
||||
# Logic:
|
||||
# - If array is empty or new version != old version: PREPEND new entry
|
||||
# - If new version == old version: OVERWRITE (update) existing entry (re-release)
|
||||
|
||||
jq --arg guid "$PLUGIN_GUID" \
|
||||
--arg hash "$HASH" \
|
||||
--arg time "$TIME" \
|
||||
--arg url "$DOWNLOAD_URL" \
|
||||
--arg ver "$VERSION" \
|
||||
--arg changelog "$CHANGELOG" \
|
||||
--arg abi "$TARGET_ABI" \
|
||||
'map(if .guid == $guid then
|
||||
if .versions[0].version != $ver then
|
||||
# New Version -> Prepend
|
||||
.versions = [{
|
||||
"version": $ver,
|
||||
"changelog": $changelog,
|
||||
"targetAbi": $abi,
|
||||
"sourceUrl": $url,
|
||||
"checksum": $hash,
|
||||
"timestamp": $time
|
||||
}] + .versions
|
||||
else
|
||||
# Same Version -> Update existing (overwrite top)
|
||||
.versions[0].changelog = $changelog |
|
||||
.versions[0].targetAbi = $abi |
|
||||
.versions[0].sourceUrl = $url |
|
||||
.versions[0].checksum = $hash |
|
||||
.versions[0].timestamp = $time
|
||||
end
|
||||
else . end)' \
|
||||
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
||||
|
||||
- name: Commit and Push Central Manifest
|
||||
run: |
|
||||
cd central-manifest
|
||||
git config user.name "CodeDevMLH"
|
||||
git config user.email "145071728+CodeDevMLH@users.noreply.github.com"
|
||||
|
||||
# Check if there are changes
|
||||
if [[ -n $(git status -s) ]]; then
|
||||
git add manifest.json
|
||||
git commit -m "Auto-Update MediaBar Enhanced to v${{ env.VERSION }}"
|
||||
git push
|
||||
else
|
||||
echo "No changes to central manifest."
|
||||
fi
|
||||
|
||||
# Update Message in Seasonals Repository
|
||||
- name: Checkout Seasonal Manifest Repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
repository: ${{ github.repository_owner }}/jellyfin-plugin-manifest
|
||||
path: seasonal-manifest
|
||||
token: ${{ secrets.JELLYFIN_PLUGIN_MANIFEST_UPDATER_PAT }}
|
||||
|
||||
- name: Update Central Manifest
|
||||
shell: bash
|
||||
run: |
|
||||
cd seasonal-manifest
|
||||
|
||||
# 1. Get info from previous steps
|
||||
VERSION="${{ env.VERSION }}"
|
||||
HASH="${{ env.ZIP_HASH }}"
|
||||
TIME="${{ env.BUILD_TIME }}"
|
||||
DOWNLOAD_URL="https://git.mahom03-spacecloud.de/${{ github.repository }}/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
|
||||
# 2. Get info from env
|
||||
PLUGIN_GUID="${{ env.PLUGIN_GUID }}"
|
||||
CHANGELOG="${{ env.CHANGELOG }}"
|
||||
TARGET_ABI="${{ env.TARGET_ABI }}"
|
||||
|
||||
echo "Updating Seasonal Manifest for Plugin GUID: $PLUGIN_GUID"
|
||||
|
||||
# 3. Update/Prepend entry in seasonal manifest.json
|
||||
# Logic:
|
||||
# - If array is empty or new version != old version: PREPEND new entry
|
||||
# - If new version == old version: OVERWRITE (update) existing entry (re-release)
|
||||
|
||||
jq --arg guid "$PLUGIN_GUID" \
|
||||
--arg hash "$HASH" \
|
||||
--arg time "$TIME" \
|
||||
--arg url "$DOWNLOAD_URL" \
|
||||
--arg ver "$VERSION" \
|
||||
--arg changelog "$CHANGELOG" \
|
||||
--arg abi "$TARGET_ABI" \
|
||||
'map(if .guid == $guid then
|
||||
if .versions[0].version != $ver then
|
||||
# New Version -> Prepend
|
||||
.versions = [{
|
||||
"version": $ver,
|
||||
"changelog": $changelog,
|
||||
"targetAbi": $abi,
|
||||
"sourceUrl": $url,
|
||||
"checksum": $hash,
|
||||
"timestamp": $time
|
||||
}] + .versions
|
||||
else
|
||||
# Same Version -> Update existing (overwrite top)
|
||||
.versions[0].changelog = $changelog |
|
||||
.versions[0].targetAbi = $abi |
|
||||
.versions[0].sourceUrl = $url |
|
||||
.versions[0].checksum = $hash |
|
||||
.versions[0].timestamp = $time
|
||||
end
|
||||
else . end)' \
|
||||
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
||||
|
||||
- name: Commit and Push Seasonal Manifest
|
||||
run: |
|
||||
cd seasonal-manifest
|
||||
git config user.name "CodeDevMLH"
|
||||
git config user.email "145071728+CodeDevMLH@users.noreply.github.com"
|
||||
|
||||
# Check if there are changes
|
||||
if [[ -n $(git status -s) ]]; then
|
||||
git add manifest.json
|
||||
git commit -m "Auto-Update MediaBar Enhanced to v${{ env.VERSION }}"
|
||||
git push
|
||||
else
|
||||
echo "No changes to seasonal manifest."
|
||||
fi
|
||||
155
.github/workflows/release_automation.yml
vendored
155
.github/workflows/release_automation.yml
vendored
@@ -39,6 +39,11 @@ jobs:
|
||||
|
||||
echo "Detected Version: $VERSION"
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
echo "TARGET_ABI=$TARGET_ABI" >> $GITHUB_ENV
|
||||
|
||||
# Also export GUID for later use
|
||||
PLUGIN_GUID=$(jq -r '.[0].guid' manifest.json)
|
||||
echo "PLUGIN_GUID=$PLUGIN_GUID" >> $GITHUB_ENV
|
||||
|
||||
# Escape newlines in changelog for GITHUB_ENV
|
||||
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
||||
@@ -99,3 +104,153 @@ jobs:
|
||||
draft: false
|
||||
prerelease: false
|
||||
generate_release_notes: true
|
||||
|
||||
# Update Message in Remote Repository
|
||||
- name: Checkout Central Manifest Repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
repository: ${{ github.repository_owner }}/jellyfin-plugin-manifest
|
||||
path: central-manifest
|
||||
token: ${{ secrets.JELLYFIN_PLUGIN_MANIFEST_UPDATER_PAT }}
|
||||
|
||||
- name: Update Central Manifest
|
||||
shell: bash
|
||||
run: |
|
||||
cd central-manifest
|
||||
|
||||
# 1. Get info from previous steps
|
||||
VERSION="${{ env.VERSION }}"
|
||||
HASH="${{ env.ZIP_HASH }}"
|
||||
TIME="${{ env.BUILD_TIME }}"
|
||||
DOWNLOAD_URL="https://github.com/$REPO_OWNER/$REPO_NAME/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
|
||||
# 2. Get info from env
|
||||
PLUGIN_GUID="${{ env.PLUGIN_GUID }}"
|
||||
CHANGELOG="${{ env.CHANGELOG }}"
|
||||
TARGET_ABI="${{ env.TARGET_ABI }}"
|
||||
|
||||
echo "Updating Central Manifest for Plugin GUID: $PLUGIN_GUID"
|
||||
|
||||
# 3. Update/Prepend entry in central manifest.json
|
||||
# Logic:
|
||||
# - If array is empty or new version != old version: PREPEND new entry
|
||||
# - If new version == old version: OVERWRITE (update) existing entry (re-release)
|
||||
|
||||
jq --arg guid "$PLUGIN_GUID" \
|
||||
--arg hash "$HASH" \
|
||||
--arg time "$TIME" \
|
||||
--arg url "$DOWNLOAD_URL" \
|
||||
--arg ver "$VERSION" \
|
||||
--arg changelog "$CHANGELOG" \
|
||||
--arg abi "$TARGET_ABI" \
|
||||
'map(if .guid == $guid then
|
||||
if .versions[0].version != $ver then
|
||||
# New Version -> Prepend
|
||||
.versions = [{
|
||||
"version": $ver,
|
||||
"changelog": $changelog,
|
||||
"targetAbi": $abi,
|
||||
"sourceUrl": $url,
|
||||
"checksum": $hash,
|
||||
"timestamp": $time
|
||||
}] + .versions
|
||||
else
|
||||
# Same Version -> Update existing (overwrite top)
|
||||
.versions[0].changelog = $changelog |
|
||||
.versions[0].targetAbi = $abi |
|
||||
.versions[0].sourceUrl = $url |
|
||||
.versions[0].checksum = $hash |
|
||||
.versions[0].timestamp = $time
|
||||
end
|
||||
else . end)' \
|
||||
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
||||
|
||||
- name: Commit and Push Central Manifest
|
||||
run: |
|
||||
cd central-manifest
|
||||
git config user.name "CodeDevMLH"
|
||||
git config user.email "145071728+CodeDevMLH@users.noreply.github.com"
|
||||
|
||||
# Check if there are changes
|
||||
if [[ -n $(git status -s) ]]; then
|
||||
git add manifest.json
|
||||
git commit -m "Auto-Update MediaBar Enhanced to v${{ env.VERSION }}"
|
||||
git push
|
||||
else
|
||||
echo "No changes to central manifest."
|
||||
fi
|
||||
|
||||
# Update Message in Seasonals Repository
|
||||
- name: Checkout Seasonal Manifest Repo
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
repository: ${{ github.repository_owner }}/jellyfin-plugin-manifest
|
||||
path: seasonal-manifest
|
||||
token: ${{ secrets.JELLYFIN_PLUGIN_MANIFEST_UPDATER_PAT }}
|
||||
|
||||
- name: Update Central Manifest
|
||||
shell: bash
|
||||
run: |
|
||||
cd seasonal-manifest
|
||||
|
||||
# 1. Get info from previous steps
|
||||
VERSION="${{ env.VERSION }}"
|
||||
HASH="${{ env.ZIP_HASH }}"
|
||||
TIME="${{ env.BUILD_TIME }}"
|
||||
DOWNLOAD_URL="https://github.com/$REPO_OWNER/$REPO_NAME/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
|
||||
# 2. Get info from env
|
||||
PLUGIN_GUID="${{ env.PLUGIN_GUID }}"
|
||||
CHANGELOG="${{ env.CHANGELOG }}"
|
||||
TARGET_ABI="${{ env.TARGET_ABI }}"
|
||||
|
||||
echo "Updating Seasonal Manifest for Plugin GUID: $PLUGIN_GUID"
|
||||
|
||||
# 3. Update/Prepend entry in seasonal manifest.json
|
||||
# Logic:
|
||||
# - If array is empty or new version != old version: PREPEND new entry
|
||||
# - If new version == old version: OVERWRITE (update) existing entry (re-release)
|
||||
|
||||
jq --arg guid "$PLUGIN_GUID" \
|
||||
--arg hash "$HASH" \
|
||||
--arg time "$TIME" \
|
||||
--arg url "$DOWNLOAD_URL" \
|
||||
--arg ver "$VERSION" \
|
||||
--arg changelog "$CHANGELOG" \
|
||||
--arg abi "$TARGET_ABI" \
|
||||
'map(if .guid == $guid then
|
||||
if .versions[0].version != $ver then
|
||||
# New Version -> Prepend
|
||||
.versions = [{
|
||||
"version": $ver,
|
||||
"changelog": $changelog,
|
||||
"targetAbi": $abi,
|
||||
"sourceUrl": $url,
|
||||
"checksum": $hash,
|
||||
"timestamp": $time
|
||||
}] + .versions
|
||||
else
|
||||
# Same Version -> Update existing (overwrite top)
|
||||
.versions[0].changelog = $changelog |
|
||||
.versions[0].targetAbi = $abi |
|
||||
.versions[0].sourceUrl = $url |
|
||||
.versions[0].checksum = $hash |
|
||||
.versions[0].timestamp = $time
|
||||
end
|
||||
else . end)' \
|
||||
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
||||
|
||||
- name: Commit and Push Seasonal Manifest
|
||||
run: |
|
||||
cd seasonal-manifest
|
||||
git config user.name "CodeDevMLH"
|
||||
git config user.email "145071728+CodeDevMLH@users.noreply.github.com"
|
||||
|
||||
# Check if there are changes
|
||||
if [[ -n $(git status -s) ]]; then
|
||||
git add manifest.json
|
||||
git commit -m "Auto-Update MediaBar Enhanced to v${{ env.VERSION }}"
|
||||
git push
|
||||
else
|
||||
echo "No changes to seasonal manifest."
|
||||
fi
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="sectionTitleContainer">
|
||||
<h2 class="sectionTitle">Media Bar Enhanced</h2>
|
||||
<a is="emby-linkbutton" class="raised raised-mini emby-button" style="margin-left: 2em;"
|
||||
target="_blank" href="https://github.com/CodeDevMLH/Jellyfin-Seasonals">
|
||||
target="_blank" href="https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced">
|
||||
<i class="md-icon button-icon button-icon-left secondaryText"></i>
|
||||
<span>Help</span>
|
||||
</a>
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
|
||||
<Title>Jellyfin Media Bar Enhanced Plugin</Title>
|
||||
<Authors>CodeDevMLH</Authors>
|
||||
<Version>1.0.0.0</Version>
|
||||
<RepositoryUrl>https://git.mahom03-spacecloud.de/CodeDevMLH/Media-Bar-Plugin</RepositoryUrl>
|
||||
<Version>1.0.0.3</Version>
|
||||
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -11,7 +11,7 @@ using Microsoft.Extensions.Logging;
|
||||
namespace Jellyfin.Plugin.MediaBarEnhanced
|
||||
{
|
||||
/// <summary>
|
||||
/// The main plugin.
|
||||
/// The main plugin.
|
||||
/// </summary>
|
||||
public class MediaBarEnhancedPlugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
||||
{
|
||||
@@ -59,7 +59,7 @@ namespace Jellyfin.Plugin.MediaBarEnhanced
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override string Name => "Media Bar";
|
||||
public override string Name => "Media Bar Enhanced";
|
||||
|
||||
/// <inheritdoc />
|
||||
public override Guid Id => Guid.Parse("d7e11d57-819b-4bdd-a88d-53c5f5560225");
|
||||
|
||||
@@ -18,10 +18,8 @@ namespace Jellyfin.Plugin.MediaBarEnhanced
|
||||
{
|
||||
private readonly IApplicationPaths _appPaths;
|
||||
private readonly ILogger<ScriptInjector> _logger;
|
||||
public const string ScriptTag = "<script src=\"/MediaBarEnhanced/Resources/slideshowpure.js\" defer></script>";
|
||||
public const string CssTag = "<link rel=\"stylesheet\" href=\"/MediaBarEnhanced/Resources/slideshowpure.css\" />";
|
||||
// private const string ScriptTag = "<script src=\"/MediaBarEnhanced/Resources/media-bar.js\" defer></script>";
|
||||
// private const string CssTag = "<link rel=\"stylesheet\" href=\"/MediaBarEnhanced/Resources/media-bar.css\">";
|
||||
public const string ScriptTag = "<script src=\"/MediaBarEnhanced/Resources/mediaBarEnhanced.js\" defer></script>";
|
||||
public const string CssTag = "<link rel=\"stylesheet\" href=\"/MediaBarEnhanced/Resources/mediaBarEnhanced.css\" />";
|
||||
public const string ScriptMarker = "</body>";
|
||||
public const string CssMarker = "</head>";
|
||||
|
||||
|
||||
196
README.md
196
README.md
@@ -1 +1,195 @@
|
||||
# jellyfin-plugin-media-bar-enhanced
|
||||
# Jellyfin Media Bar Enhanced Plugin
|
||||
|
||||
Media Bar Enhanced is a plugin for Jellyfin that introduces a customizable and interactive media bar to your dashboard view on Jellyfin web.
|
||||
|
||||
This plugin is a fork and enhancement of the original [Media Bar by MakD](https://github.com/MakD/Jellyfin-Media-Bar) media bar, but can be installed as plugin for easier installation and management/configuration.
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Table of Contents
|
||||
- [Jellyfin Media Bar Enhanced Plugin](#jellyfin-media-bar-enhanced-plugin)
|
||||
- [Table of Contents](#table-of-contents)
|
||||
- [Features](#features)
|
||||
- [New Features \& Enhancements](#new-features--enhancements)
|
||||
- [Core Features](#core-features)
|
||||
- [Installation](#installation)
|
||||
- [Client Compatibility](#client-compatibility)
|
||||
- [Configuration](#configuration)
|
||||
- [General Settings](#general-settings)
|
||||
- [Custom Content](#custom-content)
|
||||
- [Advanced Settings](#advanced-settings)
|
||||
- [Build The Plugin By Yourself](#build-the-plugin-by-yourself)
|
||||
- [Troubleshooting](#troubleshooting)
|
||||
- [Effects Not Showing](#effects-not-showing)
|
||||
- [Docker Permission Issues](#docker-permission-issues)
|
||||
- [Contributing](#contributing)
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
This plugin builds upon the original Media Bar with new capabilities and improvements:
|
||||
|
||||
### New Features & Enhancements
|
||||
* **Video Backdrop Support**: Play trailer as background video directly in the slideshow
|
||||
* **SponsorBlock Integration**: Automatically skip intro/outro segments in YouTube trailers
|
||||
* **Enhanced Controls**:
|
||||
* Keyboard shortcuts (Arrow keys to navigate, Space to pause, M to mute)
|
||||
* Option to always show navigation arrows
|
||||
* Standalone "Trailer" button (opens in a modal) if video backdrops are disabled
|
||||
* **Smarter Playback**:
|
||||
* Option to wait for the trailer to end before advancing the slide.
|
||||
* Mute/Unmute controls
|
||||
* **Customization**:
|
||||
* **Custom Media IDs**: Manually specify which items (Movies, Series, Collections/Boxsets) to display. Easily configurable via the plugin settings
|
||||
* **Seasonal Content Mode**: Define date-based lists for holidays and seasons (e.g., Halloween, Christmas)
|
||||
* Pagination dots turn into a counter (e.g., 1/20) if the limit is exceeded
|
||||
* Option to disable the loading screen
|
||||
|
||||
### Core Features
|
||||
* **Immersive Slideshow**: Rotates through your media library
|
||||
* **Metadata Display**: Shows title, rating, year, and plot summary
|
||||
* **Direct Play**: Click "Play" to start watching immediately
|
||||
* **Details View**: Click "Info" to jump to the item's detail page
|
||||
* **Add To Favorites**: Click the heart to add the item to your favorites
|
||||
|
||||
## Installation
|
||||
|
||||
This plugin is based on Jellyfin Version `10.11.x`
|
||||
|
||||
1. Open your **Jellyfin Dashboard**.
|
||||
2. Navigate to **Plugins** > **Repositories**.
|
||||
3. Click the **+** button to add a new repository.
|
||||
4. Enter a name for the repo and paste the following URL:
|
||||
```
|
||||
https://raw.githubusercontent.com/CodeDevMLH/jellyfin-plugin-manifest/refs/heads/main/manifest.json
|
||||
```
|
||||
5. Click **Save**.
|
||||
6. Go to the **Catalog** tab.
|
||||
7. Find **Media Bar Enhanced** (Under **General**) and install it.
|
||||
8. **Restart your Jellyfin server.**
|
||||
9. **Refresh your browser** (Ctrl+F5) to load the new interface elements.
|
||||
|
||||
## Client Compatibility
|
||||
|
||||
Because this plugin relies on injecting JavaScript and CSS into the web interface, it works best on clients that use the web wrapper.
|
||||
|
||||
| Client Platform | Status | Notes |
|
||||
| :--- | :---: | :--- |
|
||||
| **Web Browsers** (Chrome, Firefox, Edge, etc.) | ✅ | Fully supported. |
|
||||
| **Jellyfin Media Player** (Windows/Linux/macOS) | ✅ | Fully supported. |
|
||||
| **Android App** | ✅ | Works (Web wrapper). |
|
||||
| **iOS App** | ✅ | Works (Web wrapper). |
|
||||
| **Android TV / Fire TV** | ❌ | **Not supported** (Native UI). |
|
||||
| **Roku** | ❌ | **Not supported** (Native UI). |
|
||||
| **Swiftfin** | ❌ | **Not supported** (Native UI). |
|
||||
|
||||
## Configuration
|
||||
|
||||
Configure the plugin via **Dashboard** > **Plugins** > **Media Bar Enhanced**.
|
||||
|
||||
> [!NOTE]
|
||||
> You must refresh your browser window (F5 or Ctrl+R) after saving changes for them to take effect.
|
||||
|
||||
### General Settings
|
||||
* **Enable Media Bar Enhanced Plugin**: Master switch to toggle the plugin.
|
||||
* **Enable Video Backdrops**: Dynamically plays trailers in the background.
|
||||
* **Wait For Trailer To End**: Prevents slide transition until the video finishes.
|
||||
* **Enable Mobile Video**: specific setting to allow video playback on mobile devices (disabled by default to save data/battery).
|
||||
* **Show Trailer Button**: Adds a button to open the trailer in a popup modal if video backdrops are disabled (e.g. on mobile if trailers are disabled there)
|
||||
|
||||
### Custom Content
|
||||
Define exactly what shows up in your bar.
|
||||
|
||||
* **Enable Custom Media IDs**: Restrict the slideshow to a specific list of IDs.
|
||||
* **Enable Seasonal Content Mode**: Advanced date-based scheduling.
|
||||
* Format: `DD.MM-DD.MM | Name | ID1, ID2, ID3`
|
||||
* Example: `20.10-31.10 | Halloween | <ID_OF_HALLOWEEN_COLLECTION>`
|
||||
* If the current date matches a range, those IDs are used. Otherwise, it defaults to standard behavior or the Custom Media IDs list.
|
||||
|
||||
**How to get IDs:**
|
||||
Check the URL of an item in the web interface:
|
||||
`.../web/#/details?id=YOUR_ITEM_ID_HERE&...`
|
||||
|
||||
### Advanced Settings
|
||||
* **Slide Animations**: Enable/disable the "Zoom In" effect.
|
||||
* **Use SponsorBlock**: Skips non-content segments in YouTube trailers (if the data exists).
|
||||
* **Start Muted**: Videos start without sound (user can unmute).
|
||||
* **Full Width Video**: Stretches video to cover the entire width (good for desktop, crop on mobile).
|
||||
* **Enable Loading Screen**: Enable/disable the loading indicator while the bar initializes.
|
||||
* **Always Show Arrows**: Keeps navigation arrows visible instead of hiding them on mouse leave.
|
||||
* **Enable Keyboard Controls**:
|
||||
* `Left`/`Right`: Change slide
|
||||
* `Space`: Pause/Play slideshow
|
||||
* `M`: Mute/Unmute video
|
||||
* **Content Limits**: Fine-tune performance by limiting the number of items (Movies, TV Shows) fetched.
|
||||
|
||||
## Build The Plugin By Yourself
|
||||
|
||||
If you want to build the plugin yourself:
|
||||
|
||||
1. Clone the repository.
|
||||
2. Ensure you have the .NET SDK installed (NET 8 or 9 depending on your Jellyfin version).
|
||||
3. Run the build command:
|
||||
```powershell
|
||||
dotnet build Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj --configuration Release --output bin/Publish
|
||||
```
|
||||
4. The compiled DLL and resources will be in bin/Publish.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Effects Not Showing
|
||||
1. **Verify plugin installation**:
|
||||
- Check that the plugin appears in the jellyfin admin panel
|
||||
- Ensure that the plugin is enabled and active
|
||||
|
||||
2. **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)**
|
||||
|
||||
Media Bar Enhanced now automatically detects and uses the [File Transformation](https://github.com/IAmParadox27/jellyfin-plugin-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:**
|
||||
1. Install the File Transformation plugin from the Jellyfin plugin catalog
|
||||
2. Restart Jellyfin
|
||||
3. Media Bar Enhanced will automatically detect and use it (no configuration needed)
|
||||
4. 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**
|
||||
```bash
|
||||
# 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**
|
||||
```bash
|
||||
# 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.
|
||||
104
jprm.md
104
jprm.md
@@ -1,104 +0,0 @@
|
||||
# Using JPRM (Jellyfin Plugin Repository Manager)
|
||||
|
||||
Wenn du mehrere Plugins hast, ist es oft einfacher, den offiziellen **JPRM** (Jellyfin Plugin Repository Manager) zu nutzen. Anstatt dass jedes Plugin sich selbst in die Manifest-Datei "pusht" (wie in deinem aktuellen Script), "pullt" das zentrale Repo automatisch die neuesten Releases deiner Plugins.
|
||||
|
||||
## Wie es funktioniert
|
||||
1. Du hast ein zentrales Repo (z.B. `jellyfin-plugin-manifest`).
|
||||
2. Dort läuft ein Script (JPRM), das eine Liste von deinen Plugin-Repos durchgeht.
|
||||
3. Es prüft, ob es neue Releases gibt.
|
||||
4. Es baut die `manifest.json` komplett neu.
|
||||
|
||||
## Schritt 1: Das zentrale Repo vorbereiten
|
||||
|
||||
Erstelle ein neues Repo (oder nimm dein vorhandenes `jellyfin-plugin-manifest`) und erstelle eine Datei namens `config.json` (oder ähnlich), die deine Plugins auflistet.
|
||||
|
||||
Beispiel `manifest-config.json` für JPRM:
|
||||
```json
|
||||
[
|
||||
{
|
||||
"Url": "https://github.com/CodeDevMLH/Media-Bar-Plugin",
|
||||
"Branch": "main",
|
||||
"Package": "Jellyfin.Plugin.MediaBarEnhanced"
|
||||
},
|
||||
{
|
||||
"Url": "https://github.com/CodeDevMLH/Anderes-Plugin",
|
||||
"Branch": "main",
|
||||
"Package": "Jellyfin.Plugin.Anderes"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
## Schritt 2: Der GitHub Workflow (im zentralen Repo)
|
||||
|
||||
In deinem **zentralen Repo** erstellst du einen Workflow `.github/workflows/update-manifest.yaml`. Dieser läuft z.B. jede Nacht oder wenn du ihn manuell startest.
|
||||
|
||||
```yaml
|
||||
name: Generate Manifest
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Täglich um Mitternacht
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Install JPRM
|
||||
run: pip install jprm
|
||||
|
||||
- name: Generate Manifest
|
||||
run: |
|
||||
# jprm repo init --help für mehr infos
|
||||
# Hier ein einfaches Beispielkommando (die genauen Flags hängen von deiner Struktur ab)
|
||||
jprm repo build --url https://github.com/CodeDevMLH/Media-Bar-Plugin .
|
||||
|
||||
# Alternativ: Nutze ein fertiges Action-Script oder schreibe ein kleines Python Script,
|
||||
# das die config.json liest und jprm aufruft.
|
||||
|
||||
- name: Commit & Push
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Update repository manifest
|
||||
file_pattern: manifest.json
|
||||
```
|
||||
|
||||
*Hinweis: Der offizielle JPRM ist sehr mächtig, aber manchmal etwas komplex in der Einrichtung für einfache Setups. Viele User nutzen stattdessen ein einfacheres Python-Script.*
|
||||
|
||||
## Alternative: Einfaches Python Script (Empfohlen für den Start)
|
||||
Ein simples Script, das du in deinem zentralen Repo ablegst und im Action-Workflow ausführst:
|
||||
|
||||
```python
|
||||
import json
|
||||
import requests
|
||||
import hashlib
|
||||
|
||||
# Konfiguration
|
||||
PLUGINS = [
|
||||
{"user": "CodeDevMLH", "repo": "Media-Bar-Plugin", "guid": "..."}
|
||||
]
|
||||
|
||||
FINAL_MANIFEST = []
|
||||
|
||||
for p in PLUGINS:
|
||||
# 1. Hole Latest Release vpm GitHub API
|
||||
resp = requests.get(f"https://api.github.com/repos/{p['user']}/{p['repo']}/releases/latest")
|
||||
data = resp.json()
|
||||
|
||||
# 2. Lade assets herunter, berechne Hash
|
||||
# 3. Baue JSON Objekt
|
||||
# ...
|
||||
|
||||
# Speichere final_manifest.json
|
||||
```
|
||||
|
||||
## Fazit
|
||||
- **Push-Methode (Deine aktuelle Lösung):** Gut für den Anfang. Du hast sofort Kontrolle. Jedes Plugin "kümmert sich selbst".
|
||||
- **Pull-Methode (JPRM):** Besser wenn du 5+ Plugins hast. Das zentrale Repo hat die Hoheit.
|
||||
BIN
logo.png
BIN
logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 4.3 MiB After Width: | Height: | Size: 312 KiB |
BIN
logos/MediaBar_logo_mod.png
Normal file
BIN
logos/MediaBar_logo_mod.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 312 KiB |
@@ -6,15 +6,39 @@
|
||||
"overview": "Media Bar for Jellyfin",
|
||||
"owner": "CodeDevMLH",
|
||||
"category": "General",
|
||||
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Media-Bar-Plugin/raw/branch/main/logo.png",
|
||||
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
|
||||
"versions": [
|
||||
{
|
||||
"version": "1.0.0.3",
|
||||
"changelog": "fixes",
|
||||
"targetAbi": "10.11.0.0",
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.0.0.3/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "d22b9b355892db2da04a1620bf7ee64d",
|
||||
"timestamp": "2026-01-06T21:33:22Z"
|
||||
},
|
||||
{
|
||||
"version": "1.0.0.2",
|
||||
"changelog": "fixes",
|
||||
"targetAbi": "10.11.0.0",
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.0.0.2/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "1041b403ec0193c2172a6fe15501afd3",
|
||||
"timestamp": "2026-01-06T21:21:37Z"
|
||||
},
|
||||
{
|
||||
"version": "1.0.0.1",
|
||||
"changelog": "fixes",
|
||||
"targetAbi": "10.11.0.0",
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.0.0.1/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "f4e6194a9cc72fdda7436161c73832de",
|
||||
"timestamp": "2026-01-06T21:18:33Z"
|
||||
},
|
||||
{
|
||||
"version": "1.0.0.0",
|
||||
"changelog": "Initial release",
|
||||
"targetAbi": "10.11.0.0",
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.0.0.0/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "caf7dc027bb55b915e09613a534c6e74",
|
||||
"timestamp": "2026-01-06T01:43:51Z"
|
||||
"checksum": "2ba7cc7f238f6aa7097628797935b903",
|
||||
"timestamp": "2026-01-06T18:56:30Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
name: Auto Release Plugin
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.github/**'
|
||||
- 'README.md'
|
||||
- 'jellyfin.ruleset'
|
||||
- '.gitignore'
|
||||
- '.editorconfig'
|
||||
- 'LICENSE'
|
||||
- 'logo.png'
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: '9.x'
|
||||
|
||||
- name: Read Version from Manifest
|
||||
id: read_version
|
||||
run: |
|
||||
VERSION=$(jq -r '.[0].versions[0].version' manifest.json)
|
||||
CHANGELOG=$(jq -r '.[0].versions[0].changelog' manifest.json)
|
||||
TARGET_ABI=$(jq -r '.[0].versions[0].targetAbi' manifest.json)
|
||||
|
||||
echo "Detected Version: $VERSION"
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
# Escape newlines in changelog for GITHUB_ENV
|
||||
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
||||
echo "$CHANGELOG" >> $GITHUB_ENV
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and Zip
|
||||
shell: bash
|
||||
run: |
|
||||
# Inject version from manifest into the build
|
||||
dotnet build Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj --configuration Release --output bin/Publish /p:Version=${{ env.VERSION }} /p:AssemblyVersion=${{ env.VERSION }}
|
||||
|
||||
cd bin/Publish
|
||||
zip -r Jellyfin.Plugin.MediaBarEnhanced.zip *
|
||||
cd ../..
|
||||
|
||||
# Calculate hash
|
||||
HASH=$(md5sum bin/Publish/Jellyfin.Plugin.MediaBarEnhanced.zip | awk '{ print $1 }')
|
||||
TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
# Export variables for next steps
|
||||
echo "ZIP_HASH=$HASH" >> $GITHUB_ENV
|
||||
echo "BUILD_TIME=$TIME" >> $GITHUB_ENV
|
||||
echo "ZIP_PATH=bin/Publish/Jellyfin.Plugin.MediaBarEnhanced.zip" >> $GITHUB_ENV
|
||||
|
||||
- name: Update Local manifest.json (Optional)
|
||||
shell: bash
|
||||
run: |
|
||||
REPO_OWNER="${{ github.repository_owner }}"
|
||||
REPO_NAME="${{ github.event.repository.name }}"
|
||||
VERSION="${{ env.VERSION }}"
|
||||
DOWNLOAD_URL="https://github.com/$REPO_OWNER/$REPO_NAME/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
|
||||
echo "Updating local manifest.json with:"
|
||||
echo "Hash: ${{ env.ZIP_HASH }}"
|
||||
echo "Time: ${{ env.BUILD_TIME }}"
|
||||
echo "Url: $DOWNLOAD_URL"
|
||||
|
||||
jq --arg hash "${{ env.ZIP_HASH }}" \
|
||||
--arg time "${{ env.BUILD_TIME }}" \
|
||||
--arg url "$DOWNLOAD_URL" \
|
||||
'.[0].versions[0].checksum = $hash | .[0].versions[0].timestamp = $time | .[0].versions[0].sourceUrl = $url' \
|
||||
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
||||
|
||||
- name: Commit Local manifest.json
|
||||
uses: stefanzweifel/git-auto-commit-action@v7
|
||||
with:
|
||||
commit_message: "Update manifest.json for release v${{ env.VERSION }} [skip ci]"
|
||||
file_pattern: manifest.json
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: "v${{ env.VERSION }}"
|
||||
name: "v${{ env.VERSION }}"
|
||||
# body: ${{ env.CHANGELOG }}
|
||||
files: ${{ env.ZIP_PATH }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
generate_release_notes: true
|
||||
|
||||
# Update Message in Remote Repository
|
||||
- name: Checkout Central Manifest Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ github.repository_owner }}/jellyfin-plugin-manifest
|
||||
path: central-manifest
|
||||
token: ${{ secrets.CENTRAL_REPO_PAT }}
|
||||
|
||||
- name: Update Central Manifest
|
||||
shell: bash
|
||||
run: |
|
||||
cd central-manifest
|
||||
|
||||
# 1. Get info from previous steps
|
||||
VERSION="${{ env.VERSION }}"
|
||||
HASH="${{ env.ZIP_HASH }}"
|
||||
TIME="${{ env.BUILD_TIME }}"
|
||||
# URL points to the RELEASE we just created in the CURRENT repo
|
||||
DOWNLOAD_URL="https://github.com/${{ github.repository }}/releases/download/v$VERSION/Jellyfin.Plugin.MediaBarEnhanced.zip"
|
||||
|
||||
# 2. Extract GUID from the *built* artifact or the source manifest (in parent dir)
|
||||
# We use the source manifest from the checkout in '..'
|
||||
PLUGIN_GUID=$(jq -r '.[0].guid' ../manifest.json)
|
||||
|
||||
echo "Updating Central Manifest for Plugin GUID: $PLUGIN_GUID"
|
||||
|
||||
# 3. Update the specific plugin entry in the central manifest.json
|
||||
# This logic finds the object with matching guid, and updates its first version entry.
|
||||
jq --arg guid "$PLUGIN_GUID" \
|
||||
--arg hash "$HASH" \
|
||||
--arg time "$TIME" \
|
||||
--arg url "$DOWNLOAD_URL" \
|
||||
--arg ver "$VERSION" \
|
||||
'map(if .guid == $guid then
|
||||
.versions[0].version = $ver |
|
||||
.versions[0].checksum = $hash |
|
||||
.versions[0].timestamp = $time |
|
||||
.versions[0].sourceUrl = $url
|
||||
else . end)' \
|
||||
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
||||
|
||||
- name: Commit and Push Central Manifest
|
||||
run: |
|
||||
cd central-manifest
|
||||
git config user.name "GitHub Action"
|
||||
git config user.email "action@github.com"
|
||||
|
||||
# Check if there are changes
|
||||
if [[ -n $(git status -s) ]]; then
|
||||
git add manifest.json
|
||||
git commit -m "Update MediaBar Enhanced to v${{ env.VERSION }}"
|
||||
git push
|
||||
else
|
||||
echo "No changes to central manifest."
|
||||
fi
|
||||
@@ -1,70 +0,0 @@
|
||||
# Anleitung: Automatische Updates für "Plugin B" im Media-Bar Manifest
|
||||
|
||||
Damit dein Plugin B (das andere Repo) automatisch seine Version im `manifest.json` des **Media-Bar-Plugin** Repos aktualisiert, musst du die `release_automation.yml` **in Repo B** anpassen.
|
||||
|
||||
Das Prinzip ist dasselbe wie beim zentralen Repo: Repo B checkt Repo A aus und updatet sich selbst.
|
||||
|
||||
## Schritt 1: Secret anlegen
|
||||
Du brauchst ein **PAT (Personal Access Token)**, das Zugriff auf das **Media-Bar-Plugin** Repo hat.
|
||||
- Erstelle das Secret `MEDIA_BAR_REPO_PAT` im **Plugin B** Repo.
|
||||
|
||||
## Schritt 2: Workflow in Plugin B anpassen
|
||||
|
||||
Füge diesen Job-Step am Ende der `release_automation.yml` von **Plugin B** hinzu:
|
||||
|
||||
```yaml
|
||||
# ------------------------------------------------------------------
|
||||
# UPDATE MEDIA BAR MANIFEST (Cross-Promotion)
|
||||
# ------------------------------------------------------------------
|
||||
- name: Checkout Media Bar Repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: CodeDevMLH/Media-Bar-Plugin # <--- Ziel-Repo
|
||||
path: media-bar-repo
|
||||
token: ${{ secrets.MEDIA_BAR_REPO_PAT }}
|
||||
|
||||
- name: Update Entry in Media Bar Manifest
|
||||
shell: bash
|
||||
run: |
|
||||
cd media-bar-repo
|
||||
|
||||
# Info vom aktuellen Release (Repo B)
|
||||
VERSION="${{ env.VERSION }}"
|
||||
HASH="${{ env.ZIP_HASH }}"
|
||||
TIME="${{ env.BUILD_TIME }}"
|
||||
# URL zum Release von Repo B
|
||||
DOWNLOAD_URL="https://github.com/${{ github.repository }}/releases/download/v$VERSION/Jellyfin.Plugin.MeinTollesPlugin.zip" # <--- ANPASSEN
|
||||
|
||||
# GUID von Plugin B (Muss fest hinterlegt sein oder aus dem lokalen manifest kommen)
|
||||
PLUGIN_GUID="a1b2c3d4-..." # <--- GUID von Plugin B HIER EINTRAGEN
|
||||
|
||||
echo "Updating Media Bar Manifest for GUID: $PLUGIN_GUID"
|
||||
|
||||
# Update Logic (findet Eintrag anhand GUID und updatet ihn)
|
||||
jq --arg guid "$PLUGIN_GUID" \
|
||||
--arg hash "$HASH" \
|
||||
--arg time "$TIME" \
|
||||
--arg url "$DOWNLOAD_URL" \
|
||||
--arg ver "$VERSION" \
|
||||
'map(if .guid == $guid then
|
||||
.versions[0].version = $ver |
|
||||
.versions[0].checksum = $hash |
|
||||
.versions[0].timestamp = $time |
|
||||
.versions[0].sourceUrl = $url
|
||||
else . end)' \
|
||||
manifest.json > manifest.json.tmp && mv manifest.json.tmp manifest.json
|
||||
|
||||
- name: Commit and Push to Media Bar Repo
|
||||
run: |
|
||||
cd media-bar-repo
|
||||
git config user.name "GitHub Action"
|
||||
git config user.email "action@github.com"
|
||||
|
||||
if [[ -n $(git status -s) ]]; then
|
||||
git add manifest.json
|
||||
git commit -m "Auto-Update Plugin B to v${{ env.VERSION }}"
|
||||
git push
|
||||
else
|
||||
echo "No changes needed."
|
||||
fi
|
||||
```
|
||||
Reference in New Issue
Block a user