Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception v2 #74

Open
1 task done
t0815 opened this issue Sep 14, 2024 · 4 comments
Open
1 task done

Unhandled exception v2 #74

t0815 opened this issue Sep 14, 2024 · 4 comments

Comments

@t0815
Copy link

t0815 commented Sep 14, 2024

Jellyfin version.

10.9.11

Shokofin version.

4.1.1.34

Shoko Server version, release channel, and commit hash.

4.2.2

File structure of your Media Library Folder in Jellyfin/Import Folder in Shoko Server.

drive:/movies//.xyy

Screenshot of the "library settings" section of the plugin settings.

grafik

Library Type(s).

Movies

Do the issue persists after creating a library with Shoko set as the only metadata provider? (Now is your time to check if you haven't already.)

  • Yes, I hereby confirm that the issue persists after creating a library with Shoko set as the only metadata provider.

Issue

an other unhandled exeption, which should imo not break import. Import should just skip the file I guess....

Stack Trace

[2024-09-14 19:03:46.712 +02:00] [ERR] [26] Shokofin.Resolvers.ShokoIgnoreRule: Threw unexpectedly; "Unable to determine the series to use for the file based on it's location because the file resides within a mixed folder with multiple AniDB anime in it. You will either have to fix your file structure or use the VFS to avoid this issue. (File=69074)
File location; Z:\Movie\Tamako Love Story\[Commie] Tamako Love Story [BD 1080p AAC] [3A514F6F].mkv"
System.Exception: Unable to determine the series to use for the file based on it's location because the file resides within a mixed folder with multiple AniDB anime in it. You will either have to fix your file structure or use the VFS to avoid this issue. (File=69074)
File location; Z:\Movie\Tamako Love Story\[Commie] Tamako Love Story [BD 1080p AAC] [3A514F6F].mkv
   at Shokofin.API.ShokoAPIManager.GetFileInfoByPath(String path)
   at Shokofin.Resolvers.ShokoIgnoreRule.ShouldFilterFile(String partialPath, String fullPath, Boolean shouldIgnore)
   at Shokofin.Resolvers.ShokoIgnoreRule.ShouldFilterItem(Folder parent, FileSystemMetadata fileInfo)
[2024-09-14 19:03:46.715 +02:00] [ERR] [26] MediaBrowser.Controller.Entities.BaseItem: Error retrieving children
System.Exception: Unable to determine the series to use for the file based on it's location because the file resides within a mixed folder with multiple AniDB anime in it. You will either have to fix your file structure or use the VFS to avoid this issue. (File=69074)
File location; Z:\Movie\Tamako Love Story\[Commie] Tamako Love Story [BD 1080p AAC] [3A514F6F].mkv
   at Shokofin.API.ShokoAPIManager.GetFileInfoByPath(String path)
   at Shokofin.Resolvers.ShokoIgnoreRule.ShouldFilterFile(String partialPath, String fullPath, Boolean shouldIgnore)
   at Shokofin.Resolvers.ShokoIgnoreRule.ShouldFilterItem(Folder parent, FileSystemMetadata fileInfo)
   at Shokofin.Resolvers.ShokoIgnoreRule.MediaBrowser.Controller.Resolvers.IResolverIgnoreRule.ShouldIgnore(FileSystemMetadata fileInfo, BaseItem parent)
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   at Emby.Server.Implementations.Library.LibraryManager.<>c__DisplayClass87_0.<ResolvePaths>b__0(FileSystemMetadata i)
   at System.Linq.Enumerable.WhereArrayIterator`1.ToList()
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePaths(IEnumerable`1 files, IDirectoryService directoryService, Folder parent, LibraryOptions libraryOptions, Nullable`1 collectionType, IItemResolver[] resolvers)
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePaths(IEnumerable`1 files, IDirectoryService directoryService, Folder parent, LibraryOptions libraryOptions, Nullable`1 collectionType)
   at MediaBrowser.Controller.Entities.Folder.GetNonCachedChildren(IDirectoryService directoryService)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
@revam
Copy link
Member

revam commented Sep 14, 2024

Read the error message.

@revam revam closed this as completed Sep 14, 2024
@revam
Copy link
Member

revam commented Sep 14, 2024

an other unhandled exeption, which should imo not break import. Import should just skip the file I guess....

by design we will not skip if we encounter an exception like this, because the users will just come complain that their files aren't appearing and blaming the plugin. instead, we tell the user why it is throwing and abstract how to fix it. if you don't want to have these issues and manually fix them, then use the vfs (if your setup permits it).

@t0815
Copy link
Author

t0815 commented Sep 14, 2024

well, but in the given folder, there only is 1 file (the movie file in question).

@revam
Copy link
Member

revam commented Sep 14, 2024

then try running the 'remove missing files' action followed by scanning the import folder(s) (the 🔍+📁 icon) on the import folder(s) itself(/themselves). to make 100% sure no 'missing' file entries exist in the database.

@revam revam reopened this Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants