Jump to content

How does the 'Save artwork into mediafolders' setting work?


Recommended Posts

Guest deleteduser0341
Posted

I'm not sure if I've misunderstood what this setting is intended to do or if it's broken for me. I've enabled it and done a re-scan of metadata (including images) which from my understanding would put the images in the folder(s) where the media files are stored. Is this not correct? Nothing has been stored in the folders for me. What is meant to be stored with this setting enabled?

 

Posted

As long as you have selected the 'Replace' metadata (and not just missing), then it should create lots of extra files in the same location as each media files.  (.nfo, .jpg) and remove the one used in the local emby server location.

The best thing to do is cycle your logs (in the schedule section) and then run it on a small library as a test.  In the log file created (embyserver.txt) you should be able to see if starting to replace the metadata - check the actual directory to see if the new file start to show up.

Worth checking that emby has write permissions on the media folders - if it doesn't, then it should show up in the logs.

Posted
10 hours ago, MeltNvy said:

and done a re-scan of metadata

Exactly what did you do?  A library scan, just looks for new files and changes.  You would need to do a full metadata refresh.

Also, you would need to be sure that Emby has permission to write to your media folders.

Guest deleteduser0341
Posted
3 hours ago, ebr said:

Exactly what did you do?  A library scan, just looks for new files and changes.  You would need to do a full metadata refresh.

Also, you would need to be sure that Emby has permission to write to your media folders.

I went as far as deleting and re-creating the library from scratch and still nothing. I can delete files from the webinterface so I think Emby has writing permission.

Posted

HI, please go over a specific example. thanks.

Guest deleteduser0341
Posted

Feeling a bit stupid now but is the artwork stored in the nfo file (and therefore I need to have enabled saving nfo as well) rather than on it's own? If so then this is solved.

Posted

No, the artwork gets saved right next to your video files.

Happy2Play
Posted

Can you post a server log going over a specific example.

Guest deleteduser0341
Posted (edited)

Attached the most recent log. Worth mentioning .nfo files are stored when the option is enabled. No images though.

embyserver.txt

Edited by deleteduser0341
Happy2Play
Posted

Full of permissions errors.

2021-02-09 20:21:47.679 Error ProviderManager: UnauthorizedAccessException: Emby Server is being write access to /mnt/MB/D1/MEDIA/ANIME/TV/CHINESE/COOKING WITH VALKYRIES [MP4]/SEASON 01/Cooking with Valkyries - 1x01 - Bronya's Special Borscht-thumb.jpg. Please check your file permissions. Will retry saving to /var/lib/emby/metadata/library/73/73003f322485604de2e91d8b3b7607ef/poster.jpg
2021-02-09 22:44:34.200 Error ProviderManager: Error in metadata saver
	*** Error Report ***
	Version: 4.5.4.0
	Command line: /usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby -ffdetect /usr/bin/ffdetect-emby -ffmpeg /usr/bin/ffmpeg-emby -ffprobe /usr/bin/ffprobe-emby -restartexitcode 3
	Operating system: Linux version 5.10.13-arch1-1 (linux@archlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Wed, 03 Feb 2021 23:44:07 +0000
	Framework: .NET Core 3.1.8
	OS/Process: x64/x64
	Runtime: usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.8/System.Private.CoreLib.dll
	Processor count: 16
	Data path: /var/lib/emby
	Application path: /usr/lib/emby-server
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/mnt/MB/D1/MEDIA/ANIME/TV/CHINESE/COOKING WITH VALKYRIES [MP4]/tvshow.nfo' is denied.
	 ---> System.IO.IOException: Permission denied
	   --- End of inner exception stack trace ---
	   at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source)
	   at System.IO.FileStream.FlushWriteBuffer()
	   at System.IO.FileStream.Dispose(Boolean disposing)
	   at System.IO.Stream.Close()
	   at NfoMetadata.Savers.BaseNfoSaver.SaveToFile(Stream stream, String path)
	   at NfoMetadata.Savers.BaseNfoSaver.Save(BaseItem item, CancellationToken cancellationToken)
	   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, LibraryOptions libraryOptions, ItemUpdateType updateType, IMetadataSaver[] savers, CancellationToken cancellationToken)
	Source: System.Private.CoreLib
	TargetSite: Void WriteNative(System.ReadOnlySpan`1[System.Byte])
	InnerException: System.IO.IOException: Permission denied
	Source: 
	TargetSite: 

 

Guest deleteduser0341
Posted

Hmm. It has no trouble deleting files and it created .nfo files earlier. The emby user is also part of my group and should have full access. Guess I'll need to look into permissions once more.

Posted

Yes it looks like the server is being denied access to create the file, or write over it if it happens to already exist. Have you taken a look at this?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...