lyarenei / jellyfin-plugin-listenbrainz

ListenBrainz plugin for Jellyfin.
MIT License
78 stars 3 forks source link

Listen cache fails to initialize #42

Closed lyarenei closed 1 year ago

lyarenei commented 1 year ago

Plugin name is different when installed from repository:

[2023-08-06 00:23:41.490 +02:00] [ERR] [61] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error
System.IO.DirectoryNotFoundException: Could not find a part of the path '/config/plugins/Jellyfin.Plugin.ListenBrainz/cache.json'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.File.OpenRead(String path)
   at Jellyfin.Plugin.ListenBrainz.Managers.CacheManager.Restore()
   at Jellyfin.Plugin.ListenBrainz.Tasks.ResubmitListensTask.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
lyarenei commented 1 year ago

Caused by plugin name in repo being different from the assembly name: https://github.com/jellyfin/jellyfin/issues/10091

lyarenei commented 1 year ago

Closing for now.