Jump to content

embyforkodi (next-gen) 7.X.X support


quickmic

Recommended Posts

Mister D

If I'm on version 6.x can I just install version 7.x from zip and all my settings and media will remain or will this require a whole reset and rescan of my library?

Link to comment
Share on other sites

quickmic
4 minutes ago, Mister D said:

If I'm on version 6.x can I just install version 7.x from zip and all my settings and media will remain or will this require a whole reset and rescan of my library?

Yes, it will reset all plugins settings and a database reset will also be automatically triggered.

  • Like 1
Link to comment
Share on other sites

2 hours ago, quickmic said:

Bitte schicken Sie mir einen Kodi.log wenn es wieder passiert.

Haben Sie das Video auch gestoppt und nicht nur angehalten? Bei einer Pause wird die nächste Option nicht aktualisiert.

I'll do that, I'd love to! I just clicked x on the keyboard at the end of the episode while watching it, and that ended the episode. The credits would still have come up, but I had watched far enough that the watched status was set. That also worked. Both Kodi and the server had set a green tick "as watched" for the episode, only the widget remained at the old status and was asynchronous to the server. Thank you, I will keep an eye on it.

Link to comment
Share on other sites

quickmic
15 minutes ago, Seger said:

I'll do that, I'd love to! I just clicked x on the keyboard at the end of the episode while watching it, and that ended the episode. The credits would still have come up, but I had watched far enough that the watched status was set. That also worked. Both Kodi and the server had set a green tick "as watched" for the episode, only the widget remained at the old status and was asynchronous to the server. Thank you, I will keep an eye on it.

I'll also keep an eye on that 😉

Link to comment
Share on other sites

quickmic
13 hours ago, Seger said:

log 1 auch nach Skin reload keine Veränderung, asynchron zum Server

log 2 gleich nach dem neustart ist alles synchron und wie es sein soll.

1_fehler auch nach skin reload.log 210.85 kB · 1 download 2_nach neustart alles super, sofort.log 82.69 kB · 0 downloads

You enabled "use playback resume position from Emby server". This function is very experimental and is most likely the issue. Please disable it and continue your tests.

  • Thanks 1
Link to comment
Share on other sites

DarWun
On 10/27/2022 at 11:31 PM, quickmic said:

Your issue description is too general and I need a kodi.log for review.

First, you can try to set the: plugin menu -> sync -> last incremental sync... manually (before the episode was added). Not too far in the past, this would trigger a large incremental sync. Just a bit before the content was added.

Let me know if this adds the content. If yes, the incremental sync is ok and the realtime sync must cause the issue.

btw, incremental sync option is only available in Kodi "expert" menu-mode.

 

About an hour ago I added three episodes of the new series The Peripheral to my TV show Library. They have yet to show up in Emby for Kodi. I've attached the Emby log file and the Kodi log files that capture the events from when the episodes were added. I've also attached the Kodi log from after I manually changed the last incremental sync setting. When I rebooted Kodi after changing that setting, no media updates occurred.

I did some troubleshooting after I first reported the issue. I did a database reset. After doing so I added content for my TV and Movie libraries. New TV shows were updating in Emby for Kodi as soon as (or shortly after) they were uploaded to the server. I then did another database reset, and added TV, Movie and Music libraries. After doing that, new TV shows were no longer updating when added to the server. The logs provided are from after that reset. I'll do another database reset in the next few hours, after which I will update only the TV and Movie libraries to see if somehow it is the addition of the Music library to the mix that is causing the issue.

embyserver.txt kodi.old.log kodi.log

Edited by DarWun
Link to comment
Share on other sites

DarWun

Just did a database reset, after which I added only TV and Movie libraries to Emby for Kodi. I removed The Peripheral from my library before doing the reset. After doing the reset, I restored the episodes. They showed up in Emby for Kodi almost immediately after an Emby library scan.

I'm not sure why having the Music library would interfere with TV show updates. But it does seem to be the case on my end.

kodi.log

Edited by DarWun
Link to comment
Share on other sites

quickmic
58 minutes ago, DarWun said:

About an hour ago I added three episodes of the new series The Peripheral to my TV show Library. They have yet to show up in Emby for Kodi. I've attached the Emby log file and the Kodi log files that capture the events from when the episodes were added. I've also attached the Kodi log from after I manually changed the last incremental sync setting. When I rebooted Kodi after changing that setting, no media updates occurred.

I did some troubleshooting after I first reported the issue. I did a database reset. After doing so I added content for my TV and Movie libraries. New TV shows were updating in Emby for Kodi as soon as (or shortly after) they were uploaded to the server. I then did a database reset, and added TV, Movie and Music libraries. After doing that, new TV shows were no longer updating when added to the server. The logs provided are from after that reset. I'll do another database reset in the next few hours, after which I will update only the TV and Movie libraries to see if somehow it is the addition of the Music library to the mix that is causing the issue.

embyserver.txt 6.39 MB · 0 downloads kodi.old.log 128.3 kB · 0 downloads kodi.log 65.99 kB · 0 downloads

I see in the "kodi.log" an issue.

The "start music scan" event was not detected, only the end sequence.:

2022-10-29 13:34:05.189 T:883      INFO <general>: EMBY.hooks.monitor: --<[ kodi scan/music ]

The video scan was fine:

2022-10-29 13:34:05.994 T:883      INFO <general>: EMBY.hooks.monitor: -->[ kodi scan/video ]
2022-10-29 13:34:05.994 T:883      INFO <general>: EMBY.hooks.monitor: --<[ kodi scan/video ]

This results in :

2022-10-29 13:34:09.228 T:952      INFO <general>: EMBY.database.library: Worker_is_paused: {'priority': False, '3afd0834e4a64a5099b5474ab4f49324': False, 'kodi_rw': True}
2022-10-29 13:34:09.228 T:952      INFO <general>: EMBY.database.library: [ worker remove sync paused ]

...and all other workers are paused as well.

Seems some of you other plugins delayed the emby-plugin startup so much, that the music scan trigger was not detected, however.

Not sure if it's the only problem, but I'll fix this one it in next version.

 

Edited by quickmic
Link to comment
Share on other sites

DarWun

@quickmicThanks! I'm not sure what other plugins are delaying the emby-plugin startup. I don't have a lot of plugins installed.

Anyway, excluding the Music library from my Emby for Kodi libraries seems to be a good fix for now. I don't actually use it, and I only added it because "I could".

  • Like 1
Link to comment
Share on other sites

quickmic
Just now, DarWun said:

@quickmicThanks! I'm not sure what other plugins are delaying the emby-plugin startup. I don't have a lot of plugins installed.

Anyway, excluding the Music library from my Emby for Kodi libraries seems to be a good fix for now. I don't actually use it, and I only added it because "I could".

As a matter of fact, the scan start was not detected. I'm just guessing, that the other plugins could be responsible. But even if not, it is easy to fix.

  • Thanks 1
Link to comment
Share on other sites

quickmic
23 hours ago, Seger said:

log 1 auch nach Skin reload keine Veränderung, asynchron zum Server

log 2 gleich nach dem neustart ist alles synchron und wie es sein soll.

1_fehler auch nach skin reload.log 210.85 kB · 2 downloads 2_nach neustart alles super, sofort.log 82.69 kB · 2 downloads

Currently not exactly sure what causes the issue but I have a rough idea. I'll add some patches in next version which probably addresses the issue.

The nextup node is internally cached by next-gen plugin (for performance reasons). I assume the cache was not wiped BEFORE the widgets triggered its updates.

This is the only explanation, why a skin reload would not have any effect and a Kodi restart has.

 

Edited by quickmic
  • Thanks 1
Link to comment
Share on other sites

Nosepull

Initial library scan always fails with the same file(s)

When I try out the new version of the plugin (currently running v6 without problems), the initial scan ALWAYS will fail with the same video files. I post an example for a TV series, if I exclude the TV series from the libraries to be included, the same will happen with always the same movie file. I don't know what makes those files so special, they work and play flawlessly with any other option including the previous incarnation of this plugin.

2022-10-30 17:39:19.424 T:18611    info <general>: EMBY.core.tvshows: Process item: 40 Tage Teil 2
2022-10-30 17:39:19.460 T:18611    info <general>: EMBY.core.tvshows: ADD episode [66/264/12/1474] 5257014: 40 Tage Teil 2
2022-10-30 17:39:19.460 T:18611    info <general>: EMBY.core.tvshows: Process item: 48 zu 1
2022-10-30 17:39:19.483 T:18611   error <general>: Exception ignored in thread started by
2022-10-30 17:39:19.483 T:18611   error <general>: : 
2022-10-30 17:39:19.483 T:18611   error <general>: <function syncEmby at 0x7ff9d28913f0>
2022-10-30 17:39:19.483 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>: Traceback (most recent call last):
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 528, in syncEmby
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>:     
2022-10-30 17:39:19.483 T:18611   error <general>: EmbyServer.library.RunJobs()
2022-10-30 17:39:19.483 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 597, in RunJobs
                                                   
2022-10-30 17:39:19.484 T:18611   error <general>:     
2022-10-30 17:39:19.484 T:18611   error <general>: self.worker_library()
2022-10-30 17:39:19.484 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.484 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 464, in worker_library
                                                   
2022-10-30 17:39:19.487 T:18611   error <general>:     
2022-10-30 17:39:19.487 T:18611   error <general>: Continue, embydb, kodidb = self.ItemOps(int(index / RecordsPercent), Item, embydb, kodidb, SyncItem[4], "add/update")
2022-10-30 17:39:19.487 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.487 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 515, in ItemOps
                                                   
2022-10-30 17:39:19.488 T:18611   error <general>:     
2022-10-30 17:39:19.488 T:18611   error <general>: Ret = self.ContentObject.episode(Item)
2022-10-30 17:39:19.488 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.488 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/core/tvshows.py", line 211, in episode
                                                   
2022-10-30 17:39:19.488 T:18611   error <general>:     
2022-10-30 17:39:19.488 T:18611   error <general>: self.video_db.add_episode(item['KodiItemIds'][ItemIndex], item['KodiFileIds'][ItemIndex], item['Name'], item['Overview'], item['Ra
tingId'], item['Writers'], item['PremiereDate'], item['KodiArtwork']['thumb'], item['RunTimeTicks'], item['Directors'], item['ParentIndexNumber'], item['IndexNumber'], item['Origina
lTitle'], item['SortParentIndexNumber'], item['SortIndexNumber'], "%s%s" % (item['Path'], item['Filename']), item['KodiPathId'], item['Unique'], item['KodiParentIds'][ItemIndex], it
em['KodiSeasonId'], item['Filename'], item['DateCreated'], item['UserData']['PlayCount'], item['UserData']['LastPlayedDate'])
2022-10-30 17:39:19.488 T:18611   error <general>: 
2022-10-30 17:39:19.488 T:18611   error <general>: KeyError
2022-10-30 17:39:19.488 T:18611   error <general>: : 
2022-10-30 17:39:19.488 T:18611   error <general>: 'Filename'
2022-10-30 17:39:19.488 T:18611   error <general>:

As the error mentions the filename, the filename is:

Grey's Anatomy.s06e02.mp4

...all series before this one are named the same way and they are scanned without any problem?!?

Link to comment
Share on other sites

quickmic

New version available 7.9.4:

Delta changelog:

fix strm files with plugin links
fix episode sync when no seasonid is assigned
improve content detection for dynamic nodes
fix folder view for synced content
improve querycache for dynamic nodes
improve http requests
clean connection code
improve cinema mode path validation (speed up trailer load, if multiple (> 1) trailers are loaded) -> threaded loading
fix kodi scan event issue
clear query cache on skin reload
fix 3d content in cinemamode
fix cinemamode when autoplay next is enabled
fix listitem artworks for multiversion episodes
fix people artwork updates

Link to comment
Share on other sites

quickmic
20 minutes ago, Nosepull said:

Initial library scan always fails with the same file(s)

When I try out the new version of the plugin (currently running v6 without problems), the initial scan ALWAYS will fail with the same video files. I post an example for a TV series, if I exclude the TV series from the libraries to be included, the same will happen with always the same movie file. I don't know what makes those files so special, they work and play flawlessly with any other option including the previous incarnation of this plugin.

2022-10-30 17:39:19.424 T:18611    info <general>: EMBY.core.tvshows: Process item: 40 Tage Teil 2
2022-10-30 17:39:19.460 T:18611    info <general>: EMBY.core.tvshows: ADD episode [66/264/12/1474] 5257014: 40 Tage Teil 2
2022-10-30 17:39:19.460 T:18611    info <general>: EMBY.core.tvshows: Process item: 48 zu 1
2022-10-30 17:39:19.483 T:18611   error <general>: Exception ignored in thread started by
2022-10-30 17:39:19.483 T:18611   error <general>: : 
2022-10-30 17:39:19.483 T:18611   error <general>: <function syncEmby at 0x7ff9d28913f0>
2022-10-30 17:39:19.483 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>: Traceback (most recent call last):
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 528, in syncEmby
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>:     
2022-10-30 17:39:19.483 T:18611   error <general>: EmbyServer.library.RunJobs()
2022-10-30 17:39:19.483 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.483 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 597, in RunJobs
                                                   
2022-10-30 17:39:19.484 T:18611   error <general>:     
2022-10-30 17:39:19.484 T:18611   error <general>: self.worker_library()
2022-10-30 17:39:19.484 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.484 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 464, in worker_library
                                                   
2022-10-30 17:39:19.487 T:18611   error <general>:     
2022-10-30 17:39:19.487 T:18611   error <general>: Continue, embydb, kodidb = self.ItemOps(int(index / RecordsPercent), Item, embydb, kodidb, SyncItem[4], "add/update")
2022-10-30 17:39:19.487 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.487 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 515, in ItemOps
                                                   
2022-10-30 17:39:19.488 T:18611   error <general>:     
2022-10-30 17:39:19.488 T:18611   error <general>: Ret = self.ContentObject.episode(Item)
2022-10-30 17:39:19.488 T:18611   error <general>: 
                                                   
2022-10-30 17:39:19.488 T:18611   error <general>:   File "/home/user/.kodi/addons/plugin.video.emby-next-gen/core/tvshows.py", line 211, in episode
                                                   
2022-10-30 17:39:19.488 T:18611   error <general>:     
2022-10-30 17:39:19.488 T:18611   error <general>: self.video_db.add_episode(item['KodiItemIds'][ItemIndex], item['KodiFileIds'][ItemIndex], item['Name'], item['Overview'], item['Ra
tingId'], item['Writers'], item['PremiereDate'], item['KodiArtwork']['thumb'], item['RunTimeTicks'], item['Directors'], item['ParentIndexNumber'], item['IndexNumber'], item['Origina
lTitle'], item['SortParentIndexNumber'], item['SortIndexNumber'], "%s%s" % (item['Path'], item['Filename']), item['KodiPathId'], item['Unique'], item['KodiParentIds'][ItemIndex], it
em['KodiSeasonId'], item['Filename'], item['DateCreated'], item['UserData']['PlayCount'], item['UserData']['LastPlayedDate'])
2022-10-30 17:39:19.488 T:18611   error <general>: 
2022-10-30 17:39:19.488 T:18611   error <general>: KeyError
2022-10-30 17:39:19.488 T:18611   error <general>: : 
2022-10-30 17:39:19.488 T:18611   error <general>: 'Filename'
2022-10-30 17:39:19.488 T:18611   error <general>:

As the error mentions the filename, the filename is:

Grey's Anatomy.s06e02.mp4

...all series before this one are named the same way and they are scanned without any problem?!?

 

The log doesn't show why the filename has an issue.

I send you a debug version which just ignores the issue and drops additional info in the log.

After sync, please send me the log for fixing the actual issue.

 

Edited by quickmic
Link to comment
Share on other sites

Nosepull

@quickmic

Log looks like this: 

2022-10-30 21:25:07.265 T:6794     info <general>: EMBY.core.tvshows: Process item: 40 Tage Teil 2
2022-10-30 21:25:07.268 T:6794     info <general>: EMBY.core.tvshows: ADD episode [66/264/12/1474] 5257014: 40 Tage Teil 2
2022-10-30 21:25:07.268 T:6794     info <general>: EMBY.core.tvshows: Process item: 48 zu 1
2022-10-30 21:25:07.295 T:6794    error <general>: Exception ignored in thread started by
2022-10-30 21:25:07.295 T:6794    error <general>: : 
2022-10-30 21:25:07.295 T:6794    error <general>: <function syncEmby at 0x7f3490b39ab0>
2022-10-30 21:25:07.295 T:6794    error <general>: 
2022-10-30 21:25:07.295 T:6794    error <general>: Traceback (most recent call last):
2022-10-30 21:25:07.295 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 528, in syncEmby
2022-10-30 21:25:07.295 T:6794    error <general>:     
2022-10-30 21:25:07.295 T:6794    error <general>: EmbyServer.library.RunJobs()
2022-10-30 21:25:07.295 T:6794    error <general>: 
2022-10-30 21:25:07.295 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 597, in RunJobs
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: self.worker_library()
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 464, in worker_library
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: Continue, embydb, kodidb = self.ItemOps(int(index / RecordsPercent), Item, embydb, kodidb, SyncItem[4], "add/update")
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 515, in ItemOps
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: Ret = self.ContentObject.episode(Item)
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/core/tvshows.py", line 211, in episode
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: self.video_db.add_episode(item['KodiItemIds'][ItemIndex], item['KodiFileIds'][ItemIndex], item['Name'], item['Overview'], item['RatingId'], item['Writers'], item['PremiereDate'], item['KodiArtwork']['thumb'], item['RunTimeTicks'], item['Directors'], item['ParentIndexNumber'], item['IndexNumber'], item['OriginalTitle'], item['SortParentIndexNumber'], item['SortIndexNumber'], "%s%s" % (item['Path'], item['Filename']), item['KodiPathId'], item['Unique'], item['KodiParentIds'][ItemIndex], item['KodiSeasonId'], item['Filename'], item['DateCreated'], item['UserData']['PlayCount'], item['UserData']['LastPlayedDate'])
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>: KeyError
2022-10-30 21:25:07.296 T:6794    error <general>: : 
2022-10-30 21:25:07.296 T:6794    error <general>: 'Filename'
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:08.552 T:6751     info <general>: EMBY.database.library: [ worker remove in progress ]
2022-10-30 21:25:08.552 T:6751     info <general>: EMBY.database.library: -->[ retrieve changes ] 2022-10-30T16:39:16Z

However, the scan seems to proceed with the new version and does not hang indefinitely. The file above pops up several times during the scan,  but in the end the video seems to be in the library and the scan finishes.

Edited by Nosepull
Link to comment
Share on other sites

On 29.10.2022 at 21:22, quickmic said:

Derzeit bin ich mir nicht ganz sicher, was das Problem verursacht, aber ich habe eine ungefähre Vorstellung. Ich werde in der nächsten Version einige Patches hinzufügen, die das Problem wahrscheinlich beheben.

Der nextup-Knoten wird intern vom Next-Gen-Plug-in zwischengespeichert (aus Leistungsgründen). Ich gehe davon aus, dass der Cache nicht gelöscht wurde, BEVOR die Widgets ihre Updates auslösten.

Dies ist die einzige Erklärung, warum ein Skin-Reload keine Wirkung hätte und ein Kodi-Neustart hat.

 

I was able to readjust the behaviour again, but after the restart everything was great again. You can take a look and see if you see anything.

Thank you very much.

kodi.old.log

  • Thanks 1
Link to comment
Share on other sites

quickmic
7 hours ago, Nosepull said:

@quickmic

Log looks like this: 

2022-10-30 21:25:07.265 T:6794     info <general>: EMBY.core.tvshows: Process item: 40 Tage Teil 2
2022-10-30 21:25:07.268 T:6794     info <general>: EMBY.core.tvshows: ADD episode [66/264/12/1474] 5257014: 40 Tage Teil 2
2022-10-30 21:25:07.268 T:6794     info <general>: EMBY.core.tvshows: Process item: 48 zu 1
2022-10-30 21:25:07.295 T:6794    error <general>: Exception ignored in thread started by
2022-10-30 21:25:07.295 T:6794    error <general>: : 
2022-10-30 21:25:07.295 T:6794    error <general>: <function syncEmby at 0x7f3490b39ab0>
2022-10-30 21:25:07.295 T:6794    error <general>: 
2022-10-30 21:25:07.295 T:6794    error <general>: Traceback (most recent call last):
2022-10-30 21:25:07.295 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/hooks/monitor.py", line 528, in syncEmby
2022-10-30 21:25:07.295 T:6794    error <general>:     
2022-10-30 21:25:07.295 T:6794    error <general>: EmbyServer.library.RunJobs()
2022-10-30 21:25:07.295 T:6794    error <general>: 
2022-10-30 21:25:07.295 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 597, in RunJobs
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: self.worker_library()
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 464, in worker_library
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: Continue, embydb, kodidb = self.ItemOps(int(index / RecordsPercent), Item, embydb, kodidb, SyncItem[4], "add/update")
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 515, in ItemOps
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: Ret = self.ContentObject.episode(Item)
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>:   File "/home/users/.kodi/addons/plugin.video.emby-next-gen/core/tvshows.py", line 211, in episode
2022-10-30 21:25:07.296 T:6794    error <general>:     
2022-10-30 21:25:07.296 T:6794    error <general>: self.video_db.add_episode(item['KodiItemIds'][ItemIndex], item['KodiFileIds'][ItemIndex], item['Name'], item['Overview'], item['RatingId'], item['Writers'], item['PremiereDate'], item['KodiArtwork']['thumb'], item['RunTimeTicks'], item['Directors'], item['ParentIndexNumber'], item['IndexNumber'], item['OriginalTitle'], item['SortParentIndexNumber'], item['SortIndexNumber'], "%s%s" % (item['Path'], item['Filename']), item['KodiPathId'], item['Unique'], item['KodiParentIds'][ItemIndex], item['KodiSeasonId'], item['Filename'], item['DateCreated'], item['UserData']['PlayCount'], item['UserData']['LastPlayedDate'])
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:07.296 T:6794    error <general>: KeyError
2022-10-30 21:25:07.296 T:6794    error <general>: : 
2022-10-30 21:25:07.296 T:6794    error <general>: 'Filename'
2022-10-30 21:25:07.296 T:6794    error <general>: 
2022-10-30 21:25:08.552 T:6751     info <general>: EMBY.database.library: [ worker remove in progress ]
2022-10-30 21:25:08.552 T:6751     info <general>: EMBY.database.library: -->[ retrieve changes ] 2022-10-30T16:39:16Z

However, the scan seems to proceed with the new version and does not hang indefinitely. The file above pops up several times during the scan,  but in the end the video seems to be in the library and the scan finishes.

Is this the log from the test version I send you via PM? cause this issue should not appear and there should be additional infos included in the log. All content item data should be included, for the affected episodes.

Please send me a full log after sync with (via PM).

fyi, the debug version doesn NOT have a fix included. It just ignores the issue and I will remove this workaround again in next version. So I need the info, about the core issue.

Edited by quickmic
Link to comment
Share on other sites

quickmic
4 hours ago, Seger said:

I was able to readjust the behaviour again, but after the restart everything was great again. You can take a look and see if you see anything.

Thank you very much.

kodi.old.log 3.19 MB · 0 downloads

Hmm, still not sure why this happens. Please enable logging in embuary helper.

  • Agree 1
Link to comment
Share on other sites

Nosepull
45 minutes ago, quickmic said:

Is this the log from the test version I send you via PM? cause this issue should not appear and there should be additional infos included in the log. All content item data should be included, for the affected episodes.

Please send me a full log after sync with (via PM).

fyi, the debug version doesn NOT have a fix included. It just ignores the issue and I will remove this workaround again in next version. So I need the info, about the core issue.

Yes, I used the version you sent me. It is listed as version 7.9.4 (without any further appendix) in my plugin list.

However, the problem does no longer occur. WIth the two previous versions, I had two different Kodi installations (one Leia, one Nexus) failing predictably at always the same file, even when starting from scratch. With 7.9.4 I now also deleted everything in Database/ and library/ to force a complete rescan, but the scan seems to have worked now?!,

Link to comment
Share on other sites

quickmic

@Nosepull

Quote

WIth the two previous versions

You mean with the "official" 7.9.4 and the one I send you via PM? Yes both identifies as 7.9.4. If you also have no issues with the "official" one, there is only one explanation for me.

I fixed the "Filename" issue for a very specific case in 7.9.4 version(s).

20 hours ago, quickmic said:

New version available 7.9.4:

Delta changelog:

fix strm files with plugin links

 

For strm files which includes Kodi plugin links. e.g. netflix

"S01E01.strm" and content of this strm (txt) file is following link:

"plugin://plugin.video.netflix/play_strm/show/1212121212/season/987654/episode/123456/"

 

You mentioned yours is a regular file, so this shouldn't fix your reported issue. However, if it's working with "regular" 7.9.4 version, no need to send me new logs.

 

 

Edited by quickmic
Link to comment
Share on other sites

Nosepull
2 hours ago, quickmic said:

@Nosepull

You mean with the "official" 7.9.4 and the one I send you via PM? Yes both identifies as 7.9.4. If you also have no issues with the "official" one, there is only one explanation for me.

On my Nexus test installation, I installed the version you sent me and the scan ran through (however, there was a discernible delay when processing the problematic file, i.e. the Kodi message concerning this file was visible for a long time, while all others flashed by). Encouraged by this success, I installed the official 7.9.4 version on my "production" media center running Leia and the scan ran without any oddity.

On the Leia installation I had tested at least two previous versions of the plugin (on Nexus only 7.9.3) and they had always failed with the same files. So, for me fixed, even if it shouldn't be fixed ;-). Thanks!

Edited by Nosepull
  • Like 1
Link to comment
Share on other sites

pathsubstitution of the addon data isnt working because of the server.jsonn. any chance of having addon call for file same way it calls for settings.xml?

Edited by anontv
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...