From fc7c1cc557e7880c333403ec6bbbe585f831a5d9 Mon Sep 17 00:00:00 2001 From: Marinho Date: Sun, 16 Jun 2024 12:56:35 -0300 Subject: [PATCH 1/2] chg: fix: add guard to allow only mp4 movies --- Jellyshare/Synchronize/VideoSync.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jellyshare/Synchronize/VideoSync.cs b/Jellyshare/Synchronize/VideoSync.cs index c645b1e..594b69c 100644 --- a/Jellyshare/Synchronize/VideoSync.cs +++ b/Jellyshare/Synchronize/VideoSync.cs @@ -51,7 +51,7 @@ public async Task SyncVideos(CancellationToken cancellationToken) var remoteVideos = await GetRemoteVideos(library, cancellationToken); foreach (var remoteVideo in remoteVideos) { - if (!localVideos.Contains(remoteVideo.Id)) + if (!localVideos.Contains(remoteVideo.Id) && remoteVideo.Container.Contains("mp4")) { CreateVideo(remoteVideo, library); localVideos.Add(remoteVideo.Id); @@ -63,7 +63,6 @@ public async Task SyncVideos(CancellationToken cancellationToken) private void CreateVideo(BaseItemDto remoteVideo, Folder libraryEntity) { - var path = Path.Combine(libraryEntity.Path, remoteVideo.Id.ToString() + ".mp4"); File.Create(path); var itemId = _libraryManager.GetNewItemId(path, typeof(Movie)); From 43c496199e5b2eca71ebe0a56a213f0bb8ce523c Mon Sep 17 00:00:00 2001 From: Marinho Date: Sun, 16 Jun 2024 12:57:37 -0300 Subject: [PATCH 2/2] chg: docs: add direct play limitation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f3c5a99..0ede173 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ A Jellyfin plugin for sharing libraries between servers. This plugin is in a very early alpha state. Do not expect stability. - Is only able to handle Movie libraries. +- Is only able to handle Direct Play media. - Is not able to handle URL or server name changes. - Is not able to handle library name changes.