Jump to content

Items missing or merged with another item when syncing Kodi with Emby using plugin.video.emby


Mitame

Recommended Posts

I've seen this bug twice now using two different Kodi instances on the same emby library. For some reason, some series will be missing from Kodi until a refresh is done on Emby for the missing series. Once that is done, and Kodi receives the update, the missing series is merged with another series, with the title being replaced with the missing series's title, but the episode titles staying the same. An example of it happening: https://imgur.com/a/bpAGY

 

This mostly happens with series using metadata from the Anime plugin, where, for example, TVDb lists it as a single series with multiple seasons, whereas AniDB etc. list it as multiple series.

 

From inspecting the DB, it would seem like the plugin is assigning the same kodi_id to multiple items: https://imgur.com/a/ZLGzW

I can upload emby.db and MyVideos60.db if that would be also useful for debugging the issue.

 

I have multiple series with the same problem. Again, normally where the items are in the same series in TVDb, but not in aniDB.

 

This is the log file from kodi, split to show before and after the Emby metadata refresh: https://gist.github.com/Mitame/013c2caba7c4f19d1f595a1fa5b1dcb1

 

Thanks,

 -  Mitame

Link to comment
Share on other sites

Angelblue05

Yes, that's the issue.

 

They need to be different.

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
Link to comment
Share on other sites

Yes, that's the issue.

So... No way around it other than either remove the imdb ID or modifying them so they're wrong but different?

Also, why is the imdb id used over emby's own IDs?

Link to comment
Share on other sites

Angelblue05

Unfortunately I do not believe it's possible to unmerge series. You'll need to do a database reset to fix this.

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

Angelblue05

Well if the series are not the same, then how is the imdb correct? The imdb is used to determine if the addon should pool series or not. Why? Because Kodi doesn't use the tvdb value. So the addon doesn't look at it.

 

@@Luke Did you ever look at the admin setting for series pooling, is it something the addon can access now on non-admin accounts?

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
Link to comment
Share on other sites

Well, with the info you've given me, I think I've found the section of code which does it. I assume this is currently happening due to a limitation from the Emby api (from comments: "TODO: Review once series pooling is explicitely returned in api"). For now, I've just commented it and hoping that it gets a better/more permanent fix later (diff for the commenting https://gist.github.com/Mitame/f6aa9a3be37b60f55743c0b6795dbcb4 ). Thanks for the help anyway.

Link to comment
Share on other sites

Well if the series are not the same, then how is the imdb correct?

The imdb is "correct", because imdb and tvdb class some things as one series whereas anidb will list it as multiple. For example:

TVDB: https://www.thetvdb.com/?tab=series&id=133341&lid=7 (1 series of 2 seasons)

IMDB: http://www.imdb.com/title/tt1584000/?ref_=nv_sr_1 and http://www.imdb.com/title/tt4755410/?ref_=nv_sr_2 (2 series of 1 with 1 season, 1 with 3 seasons)

AniDB: https://anidb.net/perl-bin/animedb.pl?show=anime&aid=6671 , https://anidb.net/perl-bin/animedb.pl?show=anime&aid=10523 , https://anidb.net/perl-bin/animedb.pl?show=anime&aid=10866 , and https://anidb.net/perl-bin/animedb.pl?show=anime&aid=10867 (4 series of 1 season)

Edited by Mitame
Link to comment
Share on other sites

Angelblue05

Got it. Well then disable series pooling on that library? In the emby dashboard > library > your anime library > manage folders > Disable automatically merge series.

Link to comment
Share on other sites

 In the emby dashboard > library > your anime library > manage folders > Disable automatically merge series.

That was already disabled. This issue only occurs in the Kodi plugin, not in Emby itself.

  • Like 1
Link to comment
Share on other sites

Is the emby user in Kodi an emby admin account?

I believe so, yes. It's the same user as I use in the browser that can use the admin dashboard.

  • Like 1
Link to comment
Share on other sites

Did you reset your database since because this was a recent change? With the original build, I mean.

Yep, when I initially tried it (to get the logs from the start), I removed ~/.kodi first, installed the addon, logged in, then found the library was wrong so reset the database and found it was still wrong, so reset again to get logs. This was using version 2.3.56 of the plugin.

Link to comment
Share on other sites

Angelblue05

I compared to Kodi which seems to use tvdb, not imdb. It will be corrected. I'll let you know when I have the build ready for testing, thank you.

Edited by Angelblue05
Link to comment
Share on other sites

You'll have to reset your database. Let me know if it corrects the issue, thank you.

It doesn't seem to fix it, no. Series with the same IMDb ID/tvdb ID but are actually separate series in emby still get merged.

Link to comment
Share on other sites

Angelblue05

It only uses the tvdb now. Imdb only for movies.

 

Can you let me know, the series that are supposed to be separated have the same tvdb is that correct? I have anime too, but they are separated in Kodi as well. I just want to test your user case so give me as much details as you can.

 

 

@@Luke

 

Series pooling setting, available via api now?

Edited by Angelblue05
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...