Jump to content

E4K - tv show sync corner case


horstepipe

Recommended Posts

horstepipe

Hey @quickmic
That's quite a corner case and most people won't be affected I guess, but I am quite often as I regurlary replace seasons with an English audio track with seasons with German and English audio tracks as soon as they arrive. There's some hiccup with Emby for Kodi when removing and adding back the same season to Emby server.

 

Steps to reproduce (E4K addon mode, didn't test native)
- Quit Kodi

- Choose a tv show and remove a season folder (e.g. remove Season 2 in Windows explorer

- Perform a library scan in Emby Server

- Add the same season folder back to it's place

- Perform a library scan in Emby Server

- Start Kodi

 

You will notice that the season (or another season, I had different results here while trying to get accurate steps to reproduce) is being removed in Kodi's database and it won't come back. So you have to repair your whole tv shows library in Emby for Kodi which can take hours depending on your library size.

As said, corner case. Just in case you have time 🙂

Best regards

Link to comment
Share on other sites

quickmic

Well, then we are at least two.

I also update my TV shows quite often for exactly the same reason, but I just replace and rescan.

Is there a reason why you delete -> scan -> add -> scan?

Anyway, I'll perform a test.

  • Thanks 1
Link to comment
Share on other sites

horstepipe
1 hour ago, quickmic said:

 

Is there a reason why you delete -> scan -> add -> scan?

 

Basically because I delete them one or two days before I add the new one 🙂

And (that‘s another issue but I don’t know if it’s still true) if you perform a initial library sync in Emby for Kodi and there‘s content (files) missing but still in Emby server‘s database, the sync aborts as soon as it arrives the respective item(s) and can‘t be completed.

thanks for looking into it!

Link to comment
Share on other sites

horstepipe
2 minutes ago, horstepipe said:

Basically because I delete them one or two days before I add the new one 🙂

And (that‘s another issue but I don’t know if it’s still true, reported it somewhen but I‘m not sure whether it got fixed) if you perform a (initial) library sync in Emby for Kodi and there‘s content (files) missing but still in Emby server‘s database, the sync aborts as soon as it arrives the respective item(s) and can‘t be completed.

thanks for looking into it!

 

Edited by horstepipe
Link to comment
Share on other sites

quickmic

Fixed, please try:

this file:

/home/quickmic/.kodi/userdata/addon_data/plugin.video.emby/emby/objects/core/tvshows.py

search for:

        elif obj['Media'] == 'season':

replace (add a line)

        elif obj['Media'] == 'season':
            obj['ParentId'] = obj['KodiId']

 

If patch is applied (overwritten) add the line again.

 

In the next days, I'll upload to dev-patch

 

  • Thanks 1
Link to comment
Share on other sites

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