Jump to content

Recommended Posts

Posted

Hello,

 

I am having a similar issue and cant seem to figure out how to fix it. 

The issue I'm having is that when an episode is upgraded by Sonarr, Emby does not update the metadata for the episode.  This results in Emby for Roku to throw errors when trying to play that episode if it requires transcoding.

For example, yesterday at 8:36PM Sonarr imported a h264 version of an episode of The Rookie - S04E17, Emby saw it and created the thumb, .nfo, and .bif files, 10 minutes later (at 8:47PM) Sonarr deleted that episode then imported a HVEC version of the episode, but Emby never rewrote the nfo nor updated the episode details (codec or video and audio track details).

Below is what I see when I go to the episode in Emby.

rookie_s04e17_episode_emby.thumb.jpg.3ed484f5beeba321bc60b2651cc86f3f.jpg

rookie_s04e17_media_info.jpg.6f3608533f6bfafbbac2670f4af3b9d4.jpg

Below is the actual episode size and codec details.

rookie_s04e17_windows_explorer_details.jpg.593534b6836ca5142cd928938173568d.jpg

vlc_codec_info.jpg.cbb0c62886194c611d056644655bdd37.jpg

When I went though the logs, it appears that Emby does see the episode was updated and says it will be refreshed, but never was.

updated_episode_log.thumb.jpg.6c8358685cee03415b53e5a9d4d3b3ca.jpg

The only way for me to get it to update so I can play that episode on my Roku TV is to manually refresh all metadata for that episode.

I attached the full server log from both yesterday and today, as well as the transcode log.

Please look into this and let me know how to fix it or if you need anything else from me. I can provide more examples if needed.

 

Thanks,

Shawn

embyserver.txt embyserver-63784415685.txt ffmpeg-transcode-a5529d44-80be-4379-8bde-dd0335cf7e09_1.txt

Posted

HI, make sure the date modified timestamp of the video file is changing. If that's not happening then that would explain why it's not getting re-probed for new media info.

Posted

@Luke, the date modified is not changing and will always be the same, that is because when Sonarr imports an episode, it changes the date modified to the date and time the episode originally aired.

That said, when comparing the episodes, there are 2 file properties that will always be different, the date created and file size, is there any way I could configure my Emby server to re-probe the episode if one of those change?

I’m a little surprised that no one else has run into the same issue that I’m having since Sonarr defaults to changing the date automatically and the only way to change that is to modify an advanced setting (which is hidden by default) located in the file management section of media management, therefore, I can only assume that most people using Sonarr have it set up to change the date of the episode.

I’ve been having this problem for quite some time, so it's not something that changed in a recent update (I am a beta tester so my Emby updates often). I was working on a PowerShell script that monitors my media library for file system changes and deletes the nfo file of an ‘upgraded’ episode after Sonarr imports it, but I abandoned that idea after I realized that it wouldn’t resolve my issue if Emby doesn’t use the nfo and only writes it for Kodi.

  • 3 weeks later...
Posted

@luke, Did you see my reply last month?

Is there a way for me to configure my emby to re-probe the episode if the date created or filesize changes?

-Shawn

Happy2Play
Posted
On 4/6/2022 at 1:25 PM, SpMCool said:

it changes the date modified to the date and time the episode originally aired.

So technically Sonarr is the one doing the wrong thing here as they should be changing the created date not the modified date.

21 minutes ago, SpMCool said:

Is there a way for me to configure my emby to re-probe the episode if the date created or filesize changes?

I would assume you would need your own script to touch the file so Emby knows there is a change.

Posted
On 4/23/2022 at 8:27 PM, SpMCool said:

@luke, Did you see my reply last month?

Is there a way for me to configure my emby to re-probe the episode if the date created or filesize changes?

-Shawn

I think it would make sense that when sonarr uses the api to report a file has changed, then we can assume it is modified and bypass the date modified check. But some plumbing will be needed to accommodate that so this is not something I can throw in quickly. This is also unusual behavior and not something I've heard of before. Does Sonarr actually do this by default or did you configure it to do this?

Q-Droid
Posted

The option to change file date in Sonarr is a simple drop down selection even if "hidden" in the Advanced Options view. I can see how some would like to keep file date in sync with aired date but for a user who is allowing media upgrades in Sonarr, which could happen whenever, then trying to maintain specific file dates could cause other issues downstream such as this one.

Is it really necessary to force file dates to be aired dates when the media metadata already has original air dates and what is shown in the Emby UI. Both would work better together if the upgraded media is allowed to retain its new file date so that Emby can scan and update the metadata.

 

Happy2Play
Posted

I am guessing this is why we have all these topics on why is Emby not honoring the Sonarr api update call.

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