Jump to content

Saving a series in the metadata editor triggers a full refresh and overwrites my edits instantly


Recommended Posts

cochize1
Posted

Emby Server 4.10.2.0, Linux (Docker). When I edit a Series field (e.g. community rating) in the metadata editor and press Save, the value reverts within a second to the provider’s value. Locking the field keeps it. This used to work.

The log shows why: every POST /emby/Items/<id> on a Series is followed ~0.1 s later by ProviderManager: RefreshItem Start, with no /Refresh request from the browser. It queries TheTVDB and TheMovieDb for the series, seasons and every episode, then overwrites unlocked fields. Saving a Movie triggers no refresh. A Series in a library with no internet providers is also refreshed, but nothing gets overwritten.

“Automatically refresh metadata after initial import” is set to Never, so that setting doesn’t stop it.

  • Is refresh-on-save intended in 4.10.2?
  • Is there a setting to turn it off, or to keep unlocked fields I just edited?

Sanitized log excerpt attached.

emby-4.10.2-series-save-refresh-excerpt.txt

Posted

Hi.  Do you have NFO files but not allow saving to them?

Posted

Hi, this only happens when changing the file order option on a series.

cochize1
Posted

@ebrYes, NFO saving is enabled on the library, and it works: Emby writes tvshow.nfo right after the save (modified time matches, and the file contains my value while the field is locked). The problem is that when for example i change the title or IMDB rating and hit save, I can see updated values in Emby dashboard and nfo file. But I dont even have to scan the library, just refreshing the page and it goes back to emby default pulled from tvdb/tmdb values. On the other hand, when I edit nfo file itself and scan the library, my custom values are saved.
@LukeI didn’t change the file order option. I only edited the community rating and pressed Save, and the refresh still started. Could the editor be sending the series’ order value (empty vs. aired) on every save, so the server sees a change? These NFOs contain <displayorder>aired</displayorder>. I can post the request body of the save if that helps (but it happens on every manually changed tv show new or old, only manual edit to the nfo file i store with the media helps)

cochize1
Posted

Thanks @Lukefor the tip, that is the cause but dont know the solution. Not sure when it happened but File Order dropdown manu is empty in all my tv shows but in nfo it still stores <displayorder>aired</displayorder>. This is what I have found with my AI buddy but not sure where to go from here as he suggests patching metadataeditor.js

Traced it. It’s a spelling mismatch in the “File order” field:

  • The API returns DisplayOrder: "Aired" for the series, but the NFO has <displayorder>aired</displayorder>, and the editor’s dropdown ids are lowercase (aired, dvd, absolute). Aired matches none of them, so the dropdown is blank on every series.
  • On Save, the editor posts DisplayOrder: "" (confirmed in the request payload). The server sees Aired → "" as an order change and starts a full TVDB/TMDb refresh, which overwrites unlocked fields such as the rating.
  • If I select “Aired” before saving, no refresh happens. But after saving, the API still returns "Aired" while the NFO gets aired, so the dropdown is blank again next time.

metadataeditor.js is stock, and the dropdown is blank with the interface set to English too. Could the server return the same spelling as the option ids, or the editor skip posting an empty order? 


image.thumb.png.34cb496d832df23f1e9f54e413b089a9.png

Lessaj
Posted

I can see this as well in 4.10.2. I know for Firefly that I set it to DVD order, NFO has this:

Quote

  <displayorder>dvd</displayorder>

But it's blank:

image.png.9fef51b50ac6c3c974a3c2d10dddf125.png

cochize1
Posted (edited)

@Lessaj and could you confirm that when you change either name or rating to something different (don't forget to unlock it) it will refresh automatically right after you save and refresh the page?

Edited by cochize1
Lessaj
Posted
6 minutes ago, cochize1 said:

@Lessaj and could you confirm that when you change either name or rating to something different (don't forget to unlock it) it will refresh automatically right after you save and refresh the page?

Yes it rescanned every episode of the whole series, and the field is still blank when going back into the editor. I tried on another show which is using Aired order, the field is blank, I set it to Aired and closed the editor, nothing happened in the logs, went back into the metadata editor and the field was blank again.

Seems to be a mismatch on the field.

  • Like 1
cochize1
Posted

ok, so it is something with the server in general and not something I broke fiddling with it. @Lukecould you look into this please?

  • 3 weeks later...
Posted

This is happening to me too.  It seems like an Emby bug.

Posted

HI, it should be resolved for the next release. Thanks.

  • Thanks 1

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