shemanaev / jellyfin-plugin-media-cleaner

Automatically delete played media files after specified amount of time.
MIT License
78 stars 1 forks source link

[Bug]: Failure with 10.9 (unstable) #46

Closed ScottESanDiego closed 5 months ago

ScottESanDiego commented 6 months ago

What happened?

This plugin is a life-saver, and given that Jellyfin 10.9 is now in feature-freeze I thought I'd give it a try and provide feedback. Unfortunately, the media-cleaner plugin installs but fails to run:


[2024-03-22 21:33:36.713 +00:00] [INF] [14] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Update Plugins" Completed after 0 minute(s) and 1 seconds
[2024-03-22 21:34:28.605 +00:00] [ERR] [26] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
System.MissingMethodException: Method not found: 'Void MediaBrowser.Controller.Entities.InternalItemsQuery.set_OrderBy(System.Collections.Generic.IReadOnlyList`1<System.ValueTuple`2<System.String,Jellyfin.Data.Enums.SortOrder>>)'.
   at MediaCleaner.ItemsAdapter.GetUserItems(BaseItemKind kind, User user, String sortBy)
   at MediaCleaner.ItemsAdapter.GetPlayedItems(BaseItemKind kind, User user, CancellationToken cancellationToken)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
   at System.Linq.GroupedEnumerable`2.GetEnumerator()
   at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
   at MediaCleaner.JunkCollectors.BaseJunkCollector.Execute(List`1 users, IEnumerable`1 filters, CancellationToken cancellationToken)
   at MediaCleaner.MediaCleanupTask.CollectMovies(List`1 users, List`1 usersWithFavorites, ItemsAdapter itemsAdapter, CancellationToken cancellationToken)
   at MediaCleaner.MediaCleanupTask.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2024-03-22 21:34:28.606 +00:00] [INF] [26] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Played media cleanup" Failed after 0 minute(s) and 0 seconds```

### Troubleshooting info

_No response_
Yankees4life commented 5 months ago

Have the same error on stable. I guess I'm gonna have to back to manually deleting files in the interim

David-Moreira commented 5 months ago

Also wondering about this. v10.9 has just released and it'd be nice to have this plugin be compatible.

shemanaev commented 5 months ago

There are big breaking changes in UI department. It will take some time to fix.

shemanaev commented 5 months ago

New version for 10.9 released