jellyfin / jellyfin-plugin-intros

Intros Plugin for Jellyfin
GNU General Public License v3.0
43 stars 9 forks source link

UI is broken if only one Video is available #25

Open solisinvictum opened 10 months ago

solisinvictum commented 10 months ago

Long Story Short:

If only one video is available:

grafik

But in the Logs:

[2023-08-16 15:45:25.595 +02:00] [INF] [41] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Found 1 items in library.
[2023-08-16 15:45:25.600 +02:00] [INF] [41] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Retrieving files from directory at /mnt/nfs_terra/Media/Prerolls
[2023-08-16 15:45:25.615 +02:00] [INF] [42] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Removing /mnt/nfs_terra/Media/Prerolls/Jellyfin.mp4 from library.
[2023-08-16 15:45:25.619 +02:00] [INF] [42] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Video", Name: "", Path: "/mnt/nfs_terra/Media/Prerolls/Jellyfin.mp4", Id: a01ef48e-e349-4fb8-9fbb-5559c16244b7
[2023-08-16 15:48:04.860 +02:00] [INF] [55] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Found 0 items in library.
[2023-08-16 15:48:04.860 +02:00] [INF] [55] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Retrieving files from directory at /mnt/nfs_terra/Media/Prerolls
[2023-08-16 15:48:04.860 +02:00] [INF] [55] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Adding /mnt/nfs_terra/Media/Prerolls/Jellyfin.mp4 to library and adding to results.
[2023-08-16 15:48:04.896 +02:00] [INF] [55] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Flagging for config update.
[2023-08-16 15:48:04.897 +02:00] [INF] [55] Jellyfin.Plugin.LocalIntros.LocalIntrosController: No existing items in library, erasing configuration.
[2023-08-16 15:48:04.897 +02:00] [INF] [55] Jellyfin.Plugin.LocalIntros.LocalIntrosController: No configured videos found, adding first video to default.
[2023-08-16 15:48:04.897 +02:00] [INF] [55] Jellyfin.Plugin.LocalIntros.LocalIntrosController: Updating configuration file.

And it works too. So its only a UI Bug.

If atleast 2 Videos are available:

grafik

Then the UI works correctly.

BrianCArnold commented 5 months ago

Sorry, been absent, I'll see if I can fix this soon.