Jump to content

NFO file question


Go to solution Solved by Luke,

Recommended Posts

K22R8CT
Posted

When sonarr or radarr upgrades existing media it deletes the emby-created NFO file.

This causes Emby to recognize it as new content - "Added" is reset to the date the file was updated.

That's obviously not desirable but is the problem with sonarr (i.e. it shouldn't delete the NFO) or with Emby (i.e. NFO deletion shouldn't reset "Added") ?

Posted

HI, just deleting an nfo by itself will not cause this, so I'm guessing the video file name is also changing as well, right? 

K22R8CT
Posted (edited)

No in fact initially I assumed it was a sonarr bug so I wrote a script to restore the deleted NFO from my recycle bin based on the file name.

If I set sonarr to trigger it on upgrade Emby's "Added" isn't reset. 

EDIT: it's possible the extension might change (e.g. mp4 to mkv) - is that what you meant?

Edited by Anon28109
Posted
Quote

EDIT: it's possible the extension might change (e.g. mp4 to mkv) - is that what you meant?

Yes, so this is what's causing it to be treated as a whole new file, not the nfo deletion.

K22R8CT
Posted

But when I setup sonarr/radarr to restore the NFO (before Emby triggers a refresh) it solves the problem.

  • Solution
Posted

It still becomes a new item in the database, but preserving the nfo just allows it to be populated with previous data. So yes I would do that.

  • Thanks 1
K22R8CT
Posted

That works, thanks.

Still it's confusing that while identification is format-agnostic, if MovieName (MovieYear)-1080p.mkv replaces MovieName (MovieYear)-720p.mp4 it's recognized as new.

Posted
1 minute ago, Anon28109 said:

if MovieName (MovieYear)-1080p.mkv replaces MovieName (MovieYear)-720p.mp4 it's recognized as new.

Hi. That depends on your date added setting.  If it is file creation date, then yes because it is a new file.  If, instead, it is added date, then that should not make it "new".

K22R8CT
Posted
13 minutes ago, ebr said:

Hi. That depends on your date added setting.  If it is file creation date, then yes because it is a new file.  If, instead, it is added date, then that should not make it "new".

That makes sense but I am using "date added"

image.png.ce038812057a5272e0e228b282de8eed.png

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...