Jump to content

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


quickmic

Recommended Posts

quickmic

PUBLIC TESTING VERSION 7.10.5:

Download Link:

http://kodi.emby.tv/Public testing/plugin.video.emby-next-gen-7.10.5.zip

 

Release Notes:

fix dynamic nodes shown as widgets
fix dynamic nodes crashes when used as widgets
add recently added tvshows to dynamic items

fix dynamic nodes progress for tvshows, season
add dynamic nodes support for reset position, set (un)watched
support realtime updates for dynamic nodes
fix sets (remove movie after played)
fix path update if strm file content has changed on content updates

fix minor issue on factory reset
fix next episode cache issue
fix http session close error
fix progress bar for startup sync
Improvement http POST and DELETE commands using a threading queue
fix database init issue
add progress bar for livetv sync
respect item limit for next episodes
add translations

fix HEAD queries
Improvement for Emby server login, mainly for multiservers but also for single server
fix Emby server connection if Emby server is not online at Kodi start
fix Database (Emby server ID not loaded) for edge case
use timeouts for some POST and DELETE http queries, instead of threading them (more reliable Kodi playback seeking)
add server disconnect/remove function
add startup sync progress bar
Remove some delays on Wizard
Avoid removing custom nodes on factory or node reset (don't put you custom nodes in the "emby_*" folders or label the files "emby_*")

fix playback stop if emby server no loaded
fix chapter sync issue

small playback improvement in addon mode for multicontent and transcoding
improve cinemamode in addon mode
unify actors/artists for each libraries
fix dynamic nodes status update
fix chapter marker image overlay for intros
add collection support for homevideos and musicvideos
fix tv tunes
add option to sync themes locally (tv tunes)
fix xml issues
fix boxsets for dynamic nodes when folders are assigned
image enhancement toggle -> reset artwork
change default setting for sync while playback to enabled
change to sync while playback
Rewrite Emby login code, fixing issues and remove duplicate http queries. Also fix emby connect and support dynamic IPs. Assign user picture as login icons.
fix strm plugin issue

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

add translations
fix item/library remove issue
fix playback crash when Emby content is invalid
fix dynamic nodes for identical content assinged to multiple Emby libraries
add emby options context menu support for dynamic nodes
fix music fanart

Another fix for library repair issue
Fix music scan disabled for native mode

Fix library repair issue (also affected some other sync paused issues)
Fix webservice timeout issue
fix transcoding issue
some minor fixes

Fix coverart issue
Invert the option to assign TVShow posters to episode artwork. Default is off.
change plugin startup code
fix dynamic nodes cast view for episodes
dynamic nodes tries query content data from internal (Kodi's) database, fallback is Emby server (performance improvement for some nodes)
remove all Kodi jsonRPC calls and substitude them with faster (direct DB) queries (also could improve stability)

Add option to overwrite episode posters by episode thumbnails

Fix mandatory reset function (skin refresh issue)
Fix sync update issue when Kodi library scan is initiated

Fix progress info for some nodes
Fix sort order for next up episodes for dynamic nodes
Fix duplicate songs for song update
fix next-up edge case issue
fix music album, song and artist update issues
add select option for skip-intro notification
add hide option for server messages
fix music sortname issue
fix webservice connection issue
rewrite artwork loading code. Kodi gets binary data directly from plugin's webservice instead of a redirection URL
fix skin reload issues
rewrite artwork loading
change artwork mappings
rewrite startup code (faster webservice init)

 

 

Release Notes:
removed Kodi 18 support: ONLY FOR KODI 19+

 

 

 

Edited by quickmic
  • Like 3
Link to comment
Share on other sites

I have Kodi 19.4.0 running on Windows 10 and I cannot get this version to work. My older emby next gen V6 stopped working so I updated to this after I uninstalled the older version and it crashes when I try to load my emby library.

 

It'll launch, find my emby server, allow me to choose a user, and when I select my libraries to sync it crashes.

Link to comment
Share on other sites

quickmic
Posted (edited)

Please send me you kodi.log after crash for review. Seems to be specific to your libraries.

Edited by quickmic
Link to comment
Share on other sites

It's not Kodi that's crashing, it's the addon. Or at least I believe it's the addon. After I select all libraries, it all minimizes to the main screen of Kodi and just sits there with no progress bar or any indication anything is happening.

Is there a log for the addon itself?

Link to comment
Share on other sites

quickmic
2 minutes ago, we87 said:

It's not Kodi that's crashing, it's the addon. Or at least I believe it's the addon. After I select all libraries, it all minimizes to the main screen of Kodi and just sits there with no progress bar or any indication anything is happening.

Is there a log for the addon itself?

no, the kodi.log includes all data I need. Also don't use debug mode at the moment. Regular log is fine, but it must include the crash for review. So probably send me the kodi.old.log and the kodi.log too

Link to comment
Share on other sites

PM sent. I hope those log files have what you need, but I kept messing with it and not sure what exactly is there. I ended up updating Kodi to a nightly build of v19 and now everything is working the way it's supposed to.

Link to comment
Share on other sites

quickmic
Posted (edited)

Thanks I just had a quick look.

Kodi cannot communicate with the plugins webservice on port 57342.

Most likely your Windows firewall is blocking the traffic. Allow Kodi to communicate with port 57342.

Edited by quickmic
Link to comment
Share on other sites

phunzie

Movies section, context menu, Emby Options, there is no Delete from Emby

 

 

EmbyOptions.PNG

  • Like 1
Link to comment
Share on other sites

quickmic
On 3/19/2022 at 5:35 AM, phunzie said:

Movies section, context menu, Emby Options, there is no Delete from Emby

 

 

EmbyOptions.PNG

I'll check it. Did you enable the delete option in plugin config settings?

  • Like 1
Link to comment
Share on other sites

phunzie

 

11 hours ago, quickmic said:

I'll check it. Did you enable the delete option in plugin config settings?

that's all it was, i hadn't re-enabled the delete option, but i just did....everything working fine now  👍

  • Like 1
Link to comment
Share on other sites

Centory

Hi @quickmic, I don't know if it's possible or depends on the skin, in Emby I have sorted some sets via "sort title" and some via "release date", in Kodi it is sometimes like this, sometimes like that. My question is, when I sync my db, whether it is possible to use the order as in Emby?

 

Link to comment
Share on other sites

quickmic

Sorting is generally a Kodi function and has nothing to do with the sync.

However, there are exceptions. If it's really a bug and the database is wrong or incompletely synced, there is something I could fix.

I need exact instruction how to design a test case. Which content how you browse etc. Screenshots are the best way to show the problem.

General info. If you find a issue, switch to stock skin and verify the problem again. At least, skin issues are ruled out by that.

Link to comment
Share on other sites

On 3/18/2022 at 4:38 AM, quickmic said:

Thanks I just had a quick look.

Kodi cannot communicate with the plugins webservice on port 57342.

Most likely your Windows firewall is blocking the traffic. Allow Kodi to communicate with port 57342.

My Windows firewall is completely turned off? I'm not sure what the next step would be?

Kodi shows a banner "processing emby updates 0%" and just hangs there.

For what it's worth, this same PC has windows media center on it and can run the emby plugin on it. And emby next gen ran fine before I updated Kodi to v19.4

Edited by we87
Link to comment
Share on other sites

quickmic
Posted (edited)
6 hours ago, we87 said:

My Windows firewall is completely turned off? I'm not sure what the next step would be?

Kodi shows a banner "processing emby updates 0%" and just hangs there.

For what it's worth, this same PC has windows media center on it and can run the emby plugin on it. And emby next gen ran fine before I updated Kodi to v19.4

The main error in the log is:

Failure when receiving data from the peer(56)

https://curl.se/libcurl/c/libcurl-errors.html

CURLE_RECV_ERROR (56)

Failure with receiving network data. 

 

This is what happens. Kodi cannot communicate with the plugin's webservice. The webservice is a localhost (127.0.0.1) socket. So the only thing I could imagine is something is blocking.

btw. the webservice itself seems ok. No crash in the logs and the error msg in Kodi would be different if the webservice is not online (cannot connect bla).

Maybe a port conflict, but I don't think so. In this case, the webservice wouldn't start and the log would indicate a already used port.

 

I still think it's a firewall issue. Please double and triple check.

 

Edited by quickmic
Link to comment
Share on other sites

On 3/22/2022 at 10:28 AM, quickmic said:

The main error in the log is:

Failure when receiving data from the peer(56)

https://curl.se/libcurl/c/libcurl-errors.html

CURLE_RECV_ERROR (56)

Failure with receiving network data. 

 

This is what happens. Kodi cannot communicate with the plugin's webservice. The webservice is a localhost (127.0.0.1) socket. So the only thing I could imagine is something is blocking.

btw. the webservice itself seems ok. No crash in the logs and the error msg in Kodi would be different if the webservice is not online (cannot connect bla).

Maybe a port conflict, but I don't think so. In this case, the webservice wouldn't start and the log would indicate a already used port.

 

I still think it's a firewall issue. Please double and triple check.

 

What does that mean local host socket?

For what it's worth, I totally agree with your reasoning but I have triple checked. Windows firewall is off. Emby server is running on another Windows 10 machine on my lan, that machine also has it's firewall off.

Did that communications port change from v6 to v7? Or was it always the same?

Link to comment
Share on other sites

quickmic
Posted (edited)
9 hours ago, we87 said:

What does that mean local host socket?

For what it's worth, I totally agree with your reasoning but I have triple checked. Windows firewall is off. Emby server is running on another Windows 10 machine on my lan, that machine also has it's firewall off.

Did that communications port change from v6 to v7? Or was it always the same?

The socket is sort of proxy webserver for Kodi used in addon mode (not in native mode). And yes, the port changed from 5.x and earlier 6.x versions due to xbox issues with the "old" port.

On Xbox the "firewall" was blocking the port.

Edited by quickmic
Link to comment
Share on other sites

DiscoDuck79

Experiencing one issue. If I navigate to Synced Nodes (Emby), select my series node and scroll all the way down to "Nästa avsnitt" (Next episode in english), this contains no shows. This is the only node that's named in my native language if that has anything to do with it.

  • Like 1
Link to comment
Share on other sites

quickmic
Posted (edited)
8 hours ago, DiscoDuck79 said:

Experiencing one issue. If I navigate to Synced Nodes (Emby), select my series node and scroll all the way down to "Nästa avsnitt" (Next episode in english), this contains no shows. This is the only node that's named in my native language if that has anything to do with it.

Thanks for reporting and yes. Sounds suspiciously like a special character issue.

Sorry, misunderstood the issue. Yes, translations still pending.

Edited by quickmic
Link to comment
Share on other sites

DiscoDuck79
On 3/28/2022 at 12:14 PM, quickmic said:

Thanks for reporting and yes. Sounds suspiciously like a special character issue.

Sorry, misunderstood the issue. Yes, translations still pending.

Now you got me confused 😀

Just to clarify, the issue is that this node doesn't contain any shows. On the Emby server this is populated so it doesn't sync.

Link to comment
Share on other sites

quickmic
14 minutes ago, DiscoDuck79 said:

Now you got me confused 😀

Just to clarify, the issue is that this node doesn't contain any shows. On the Emby server this is populated so it doesn't sync.

😁

I think there are two issue. One no all nodes are translated, the other. Node is not working. I'll check both.

  • Like 1
Link to comment
Share on other sites

DiscoDuck79

Experiencing some sync issues.

After an episode is updated this is not synced to the client, but if I browse the dynamic node the new episode is available there.

I've looked in the logs, what I've found so far

2022-04-01 08:51:47.628 T:2521    ERROR <general>: GetDirectory - Error getting plugin://plugin.video.emby-next-gen/?mode=browse&query=NodesSynced&server=b4c3377815e44e1881de0c497a94e8d1
2022-04-01 08:51:47.630 T:29941   ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.emby-next-gen/?mode=browse&query=NodesSynced&server=b4c3377815e44e1881de0c497a94e8d1) failed

and

Spoiler
2022-04-01 09:55:18.558 T:4483     INFO <general>: EMBY.helper.utils: device_id loaded: 769d4434-b37f-4451-930f-8a62d2c389d2
2022-04-01 09:55:19.562 T:4475     INFO <general>: CPythonInvoker(1, /storage/.kodi/addons/script.skinshortcuts/resources/lib/entry_point.py): script successfully run
2022-04-01 09:55:19.866 T:4475  WARNING <general>: CPythonInvoker(1, /storage/.kodi/addons/script.skinshortcuts/resources/lib/entry_point.py): the python script "/storage/.kodi/addons/script.skinshortcuts/resources/lib/entry_point.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon7xbmcgui6WindowE,N9XBMCAddon9xbmcaddon5AddonE
2022-04-01 09:55:19.866 T:4475     INFO <general>: Python interpreter stopped
2022-04-01 09:55:20.041 T:4485     INFO <general>: [ script.embuary.helper ] Service: Started
2022-04-01 09:55:20.041 T:4485     INFO <general>: [ script.embuary.helper ] Service: Player monitor started
2022-04-01 09:55:20.357 T:4503     INFO <general>: EMBY.hooks.webservice: -->[ webservice/57342 ]
2022-04-01 09:55:20.365 T:4483     INFO <general>: EMBY.service: [ Start Emby-next-gen ]
2022-04-01 09:55:20.891 T:4505    ERROR <general>: EMBY.hooks.webservice: No Emby servers found
2022-04-01 09:55:20.892 T:4476     INFO <general>: CPythonInvoker(0, /storage/.kodi/addons/plugin.video.emby-next-gen/events.py): script successfully run
2022-04-01 09:55:21.156 T:4476     INFO <general>: Python interpreter stopped
2022-04-01 09:55:21.175 T:4474    ERROR <general>: GetDirectory - Error getting plugin://plugin.video.emby-next-gen/?libraryname=Serier&mode=nextepisodes&limit=25
2022-04-01 09:55:21.175 T:4474    ERROR <general>: GetDirectory - Error getting library://video/emby_tvshows_Serier/nextepisodes.xml/
2022-04-01 09:55:21.185 T:4506     INFO <general>: initializing python engine.
2022-04-01 09:55:21.207 T:4483     INFO <general>: EMBY.helper.utils: Copied special://xbmc/system/library/video/
2022-04-01 09:55:21.619 T:4483     INFO <general>: EMBY.helper.utils: Copied special://xbmc/system/library/music/
2022-04-01 09:55:21.890 T:4483     INFO <general>: EMBY.database.dbio: --->[ database: video3126796928/1/setup ]
2022-04-01 09:55:21.905 T:4483     INFO <general>: EMBY.database.dbio: --->[video3126796928] 0 rows updated on db close
2022-04-01 09:55:21.905 T:4483     INFO <general>: EMBY.database.dbio: ---<[video3126796928] 0 rows updated on db close
2022-04-01 09:55:21.905 T:4483     INFO <general>: EMBY.database.dbio: ---<[ database: video3126796928/0/setup ]
2022-04-01 09:55:21.946 T:4483     INFO <general>: EMBY.core.connection_manager: Begin connectToServer
2022-04-01 09:55:21.947 T:4483     INFO <general>: EMBY.database.library: --->[ library ]
2022-04-01 09:55:21.947 T:4483     INFO <general>: EMBY.emby.emby: ---[ INIT EMBYCLIENT: ]---
2022-04-01 09:55:21.947 T:4483     INFO <general>: EMBY.emby.emby: --[ server/DEFAULT ]
2022-04-01 09:55:21.965 T:4483     INFO <general>: EMBY.core.connection_manager: Begin connect
2022-04-01 09:55:21.965 T:4483     INFO <general>: EMBY.core.connection_manager: testing connection mode 0 with server Emby
2022-04-01 09:55:21.965 T:4483     INFO <general>: EMBY.core.connection_manager: tryConnect url: http://192.168.10.20:8096/emby/system/info/public
2022-04-01 09:55:22.546 T:4495     INFO <general>: CPythonInvoker(7, /storage/.kodi/addons/script.embuary.helper/plugin.py): script successfully run
2022-04-01 09:55:23.166 T:4507    ERROR <general>: EMBY.hooks.webservice: No Emby servers found
2022-04-01 09:55:23.198 T:4495     INFO <general>: Python interpreter stopped
2022-04-01 09:55:23.214 T:4508    ERROR <general>: EMBY.hooks.webservice: No Emby servers found
2022-04-01 09:55:23.401 T:4516     INFO <general>: Skipped 7 duplicate messages..
2022-04-01 09:55:23.401 T:4516     INFO <general>: initializing python engine.
2022-04-01 09:55:23.444 T:4496     INFO <general>: CPythonInvoker(8, /storage/.kodi/addons/script.embuary.helper/plugin.py): script successfully run
2022-04-01 09:55:23.772 T:4474    ERROR <general>: GetDirectory - Error getting -
2022-04-01 09:55:24.038 T:4496     INFO <general>: Python interpreter stopped
2022-04-01 09:55:24.129 T:4517    ERROR <general>: EMBY.hooks.webservice: No Emby servers found
2022-04-01 09:55:25.062 T:4521     INFO <general>: Skipped 3 duplicate messages..
2022-04-01 09:55:25.062 T:4521     INFO <general>: initializing python engine.
2022-04-01 09:55:25.413 T:4487     INFO <general>: ## CoreELEC Addon ## system::set_hostname ## CoreELEC
2022-04-01 09:55:25.432 T:4487     INFO <general>: ## CoreELEC Addon ## system::set_keyboard_layout ## sv-latin1
2022-04-01 09:55:25.573 T:4486     INFO <general>: [ script.embuary.info ] Refreshing next airing database
2022-04-01 09:55:26.179 T:4486     INFO <general>: [ script.embuary.info ] Finished next airing database refreshing
2022-04-01 09:55:26.395 T:4487     INFO <general>: ## CoreELEC Addon ## updates::updateThread ## Started
2022-04-01 09:55:26.396 T:4487     INFO <general>: ## CoreELEC Addon ## updates::set_auto_update ## manual
2022-04-01 09:55:26.947 T:4550     INFO <general>: ## CoreELEC Addon ## _service_::run ## WAITING:
2022-04-01 09:55:26.975 T:4549     INFO <general>: ## CoreELEC Addon ## xdbus Monitor started. ##
2022-04-01 09:55:28.050 T:4483     INFO <general>: EMBY.core.connection_manager: calling onSuccessfulConnection with connection mode 0 with server Emby
2022-04-01 09:55:28.085 T:4483     INFO <general>: EMBY.emby.emby: User is authenticated.
2022-04-01 09:55:28.087 T:4483     INFO <general>: EMBY.emby.emby: ---[ START EMBYCLIENT: b4c3377815e44e1881de0c497a94e8d1 ]---
2022-04-01 09:55:28.191 T:4483     INFO <general>: EMBY.database.dbio: --->[ database: b4c3377815e44e1881de0c497a94e8d13126796928/1/load_settings ]
2022-04-01 09:55:28.217 T:4483     INFO <general>: EMBY.database.dbio: --->[ database: video3126796928/1/load_settings ]
2022-04-01 09:55:28.235 T:4483     INFO <general>: EMBY.database.dbio: ---<[ database: video3126796928/0/load_settings ]
2022-04-01 09:55:28.254 T:4483     INFO <general>: EMBY.database.dbio: --->[ database: music3126796928/1/load_settings ]
2022-04-01 09:55:28.265 T:4483     INFO <general>: EMBY.database.dbio: --->[music3126796928] 2 rows updated on db close
2022-04-01 09:55:28.272 T:4483     INFO <general>: EMBY.database.dbio: ---<[music3126796928] 2 rows updated on db close
2022-04-01 09:55:28.272 T:4483     INFO <general>: EMBY.database.dbio: ---<[ database: music3126796928/0/load_settings ]
2022-04-01 09:55:28.274 T:4483     INFO <general>: EMBY.database.dbio: --->[b4c3377815e44e1881de0c497a94e8d13126796928] 0 rows updated on db close
2022-04-01 09:55:28.274 T:4483     INFO <general>: EMBY.database.dbio: ---<[b4c3377815e44e1881de0c497a94e8d13126796928] 0 rows updated on db close
2022-04-01 09:55:28.274 T:4483     INFO <general>: EMBY.database.dbio: ---<[ database: b4c3377815e44e1881de0c497a94e8d13126796928/0/load_settings ]
2022-04-01 09:55:28.302 T:4551     INFO <general>: EMBY.database.dbio: --->[ database: b4c3377815e44e1881de0c497a94e8d13415257728/1/remove ]
2022-04-01 09:55:28.305 T:4551     INFO <general>: EMBY.database.dbio: ---<[ database: b4c3377815e44e1881de0c497a94e8d13415257728/0/remove ]
2022-04-01 09:55:28.305 T:4552     INFO <general>: Emby.hooks.websocket: --->[ websocket ]
2022-04-01 09:55:28.306 T:4483     INFO <general>: EMBY.emby.emby: [ Server Online ]
2022-04-01 09:55:28.312 T:4551     INFO <general>: EMBY.database.library: [ worker remove exit ] queue size: 0
2022-04-01 09:55:28.358 T:4551     INFO <general>: EMBY.database.dbio: --->[ database: b4c3377815e44e1881de0c497a94e8d13415257728/1/update ]
2022-04-01 09:55:28.362 T:4551     INFO <general>: EMBY.database.dbio: ---<[ database: b4c3377815e44e1881de0c497a94e8d13415257728/0/update ]
2022-04-01 09:55:28.395 T:4551     INFO <general>: EMBY.database.library: [ worker update exit ] queue size: 0
2022-04-01 09:55:28.431 T:4551     INFO <general>: EMBY.database.dbio: --->[ database: b4c3377815e44e1881de0c497a94e8d13415257728/1/userdata ]
2022-04-01 09:55:28.448 T:4551     INFO <general>: EMBY.database.library: -->[ worker userdata started ] queue size: 1
2022-04-01 09:55:28.476 T:4551    ERROR <general>: Exception in thread
2022-04-01 09:55:28.477 T:4551    ERROR <general>: Thread-16
2022-04-01 09:55:28.477 T:4551    ERROR <general>: :

2022-04-01 09:55:28.478 T:4551    ERROR <general>: Traceback (most recent call last):

2022-04-01 09:55:28.478 T:4551    ERROR <general>:   File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner

2022-04-01 09:55:28.486 T:4551    ERROR <general>:   File "/usr/lib/python3.8/threading.py", line 870, in run

2022-04-01 09:55:28.487 T:4551    ERROR <general>:   File "/storage/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 125, in InitSync

2022-04-01 09:55:28.488 T:4551    ERROR <general>:
2022-04-01 09:55:28.488 T:4551    ERROR <general>: self.RunJobs()
2022-04-01 09:55:28.488 T:4551    ERROR <general>:

2022-04-01 09:55:28.488 T:4551    ERROR <general>:   File "/storage/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 496, in RunJobs

2022-04-01 09:55:28.509 T:4551    ERROR <general>:
2022-04-01 09:55:28.510 T:4551    ERROR <general>: if self.worker_userdata():
2022-04-01 09:55:28.510 T:4551    ERROR <general>:

2022-04-01 09:55:28.511 T:4551    ERROR <general>:   File "/storage/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 207, in worker_userdata

2022-04-01 09:55:28.535 T:4551    ERROR <general>:
2022-04-01 09:55:28.536 T:4551    ERROR <general>: Items.append({"Id": UserDataItem['ItemId'], "KodiItemId": e_item[0], "KodiFileId": e_item[1], "KodiType": e_item[4], "Type": e_item[5], 'PlaybackPositionTicks': UserDataItem['PlaybackPositionTicks'], 'PlayCount': UserDataItem['PlayCount'], 'IsFavorite': UserDataItem['IsFavorite'], 'LastPlayedDate': UserDataItem['LastPlayedDate'], 'Played': UserDataItem['Played'], "UpdateItem": str(UserDataItem)})
2022-04-01 09:55:28.536 T:4551    ERROR <general>:

2022-04-01 09:55:28.537 T:4551    ERROR <general>: KeyError
2022-04-01 09:55:28.537 T:4551    ERROR <general>: :
2022-04-01 09:55:28.537 T:4551    ERROR <general>: 'LastPlayedDate'
2022-04-01 09:55:28.537 T:4551    ERROR <general>:

2022-04-01 09:55:29.485 T:4521  WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.

 

From what I can tell my 7.x clients did not like the server restart I did yesterday :)  The remote 6.x synced everything after a Kodi restart command so the issue seems to be present on the 7.x only. 7.x clients are running on 1 OSMC and 1 CoreElec and it's the same issue regardless of OS.

Link to comment
Share on other sites

quickmic
Posted (edited)

New version available 7.0.0-build 556

 

delta changelog:

fix Emby server hard resets
add option to sync during playback
fix next episode
fix out of memory on large incremental syncs
add progress info when Emby server is busy with syncing and delay realtime updates by 5 minutes
fix whitelist for mixed content
fix artwork updates for music content
add album artist sync for songs
Delay relatime library updates by 5 minutes due to delayed metadata sync on Emby server (fixes incomplete info)

 

@DiscoDuck79

Please test the Emby hard resets, thanks.

Edited by quickmic
Link to comment
Share on other sites

DiscoDuck79
20 hours ago, quickmic said:

New version available 7.0.0-build 556

 

delta changelog:

fix Emby server hard resets
add option to sync during playback
fix next episode
fix out of memory on large incremental syncs
add progress info when Emby server is busy with syncing and delay realtime updates by 5 minutes
fix whitelist for mixed content
fix artwork updates for music content
add album artist sync for songs
Delay relatime library updates by 5 minutes due to delayed metadata sync on Emby server (fixes incomplete info)

 

@DiscoDuck79

Please test the Emby hard resets, thanks.

Hard reset: It doesn't work as it should, updates aren't received and I can't send messages to the client. In order to get a proper connection I need to restart kodi, then it syncs and I can send messages. It's still an improvement from before, the previous 7.x version seems to corrupt the db when the server was restarted.

Log from container shutdown and container start.

Spoiler
2022-04-03 08:17:58.902 T:9805     INFO <general>: Emby.hooks.websocket: ---<[ websocket ]
2022-04-03 08:17:58.902 T:9806     INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:18:03.904 T:9806     INFO <general>: Emby.hooks.websocket: [ websocket reconnecting failed ]
2022-04-03 08:18:03.904 T:9806     INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:18:08.906 T:9806     INFO <general>: Emby.hooks.websocket: [ websocket reconnecting failed ]
2022-04-03 08:18:08.907 T:9806     INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:18:13.909 T:9806     INFO <general>: Emby.hooks.websocket: [ websocket reconnecting failed ]
2022-04-03 08:18:13.909 T:9806     INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:18:18.910 T:9806     INFO <general>: Emby.hooks.websocket: [ websocket reconnecting failed ]
2022-04-03 08:18:18.911 T:9806     INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:18:23.912 T:9806     INFO <general>: Emby.hooks.websocket: [ websocket reconnecting failed ]
2022-04-03 08:18:23.912 T:9806     INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:18:28.914 T:9806     INFO <general>: Emby.hooks.websocket: [ websocket reconnecting failed ]
2022-04-03 08:18:28.914 T:9806     INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:18:34.336 T:9806     INFO <general>: Emby.hooks.websocket: ---<[ websocket reconnecting ]

 

Log from container restart

Spoiler
2022-04-03 08:20:44.757 T:10008    INFO <general>: Emby.hooks.websocket: ---<[ websocket ]
2022-04-03 08:20:44.757 T:10009    INFO <general>: Emby.hooks.websocket: --->[ websocket reconnecting ]
2022-04-03 08:20:49.763 T:10009    INFO <general>: Emby.hooks.websocket: ---<[ websocket reconnecting ]

 

fix next episode: Working :)

5 minutes delay: I wondered what the delay was when I checked the log, since it's intentional it's working. Does this mean that there will be a 5 minutes delay after an episode is imported in the future?

Spoiler
2022-04-03 07:03:34.118 T:6887     INFO <general>: Emby.hooks.websocket: [ LibraryChanged ] {'FoldersAddedTo': ['170964'], 'FoldersRemovedFrom': ['170964'], 'ItemsAdded': ['329992'], 'ItemsRemoved': ['170972'], 'ItemsUpdated': [], 'CollectionFolders': ['9ec840fc98bc99fab0bc952ee46828ad', 'f8f2db92eac9ce988bc6bf13dea01491', 'bc3a7d1d3dac1f10e170387270df67fa', '28b5d5b8bef4bd1f1914503b5c11ac91'], 'IsEmpty': False}
2022-04-03 07:03:34.119 T:6887     INFO <general>: Emby.hooks.websocket: Delay updates, give Emby server extra time to capture metadata
2022-04-03 07:08:34.306 T:6887     INFO <general>: EMBY.core.tvshows: DELETE episode [7061/8042] 170972
2022-04-03 07:08:34.974 T:6887     INFO <general>: EMBY.core.tvshows: ADD episode [574/1154/41637/42619] 329992: NameOfEpisode

 

Question 1: I have an awful lot of music library references in my log, I don't use the music feature at all. Is this something that will potentially affect me (mislabeling of content in the future?), or is it just "highlighting" potential updates flagged as music content on the Emby server and it can be considered harmless?

Question 2: There's no combined In progress node available. The In progress section on the server contains both movies and tv shows, but as nodes I have to select both tv shows and movies. If you want them displayed on one row as a widget we need to use a smart playlist making this complicated. Could you add a node to sync the combined In progress from the server?

  • Thanks 1
Link to comment
Share on other sites

quickmic
Posted (edited)
Quote

Log from container restart

Was it a restart or a stop/start?

What's the turnaround time of a restart?

Please try stop/start and wait at least 15 seconds after stop (that's the current timeout).

 

Quote

5 minutes delay: I wondered what the delay was when I checked the log, since it's intentional it's working. Does this mean that there will be a 5 minutes delay after an episode is imported in the future?

This currently an awful workaround addressing a specific issues 99.9% never appears. When it happens, it's mostly related to music content updates and live recordings. I try to get rid of it asap but right now I found no better way. It only delays the realtime content updates, not the progress updates.

 

Quote

Question 1: I have an awful lot of music library references in my log, I don't use the music feature at all. Is this something that will potentially affect me (mislabeling of content in the future?), or is it just "highlighting" potential updates flagged as music content on the Emby server and it can be considered harmless?

Emby server reports (on realtime updates) all changes. The plugin skips the not applicable ones (not synced content). It will not affect the sync and I cannot  exclude them from realtime updates. Emby server would need some sort of subscription model to exclude content from realtime updates.

On startup sync I can define what should be synced, cause it's not a push from Emby server. It's pull request were the plugin can query the content by Library ID.

 

Quote

Question 2: There's no combined In progress node available. The In progress section on the server contains both movies and tv shows, but as nodes I have to select both tv shows and movies. If you want them displayed on one row as a widget we need to use a smart playlist making this complicated. Could you add a node to sync the combined In progress from the server?

I'll check if possible, but there are also Kodi limitations. A list view in Kodi requires a content definition. 

e.g. impossible to include pictures and videos in node (not related to "in progress" node, just a general info)

Maybe possible for episodes and movies for "in progress". Also there is a difference between in progress TVShows and in progress episodes.

 

 

 

 

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