dabou 0 Posted April 28, 2016 Share Posted April 28, 2016 Hi, I have installed the Kodi Embed Plugin (2.1.0) on Kodi (Feb 2015) but when I try to sync the playlist / nodes to my server (192.168.1.80:8096) I get a "refresh failed error". What could be the issue ? I can access to the Emby UpnP server from my kodi / raspberry machine and watch movies .... Kodi Version : Feb 2015 Raspbian Gnu/Linux 7 (wheezy) Linux Kernel 3.12.31 Regards Charles Link to comment Share on other sites More sharing options...
dabou 0 Posted May 2, 2016 Author Share Posted May 2, 2016 (edited) Here is the info reported within the kodi.log file 19:17:24 2187.001709 T:2829054960 NOTICE: EMBY Service -> ======== START EMBY ======== 19:17:24 2187.012207 T:2829054960 NOTICE: EMBY Service -> Platform: Linux/RPi 19:17:24 2187.013184 T:2829054960 NOTICE: EMBY Service -> KODI Version: 16.1-RC3 19:17:24 2187.041016 T:2829054960 NOTICE: EMBY Service -> EMBY Version: 2.2.10 19:17:24 2187.092041 T:2829054960 NOTICE: EMBY Service -> Using plugin paths: True 19:17:24 2187.093018 T:2829054960 NOTICE: EMBY Service -> Log Level: 1 19:17:24 2187.109131 T:2829054960 NOTICE: EMBY VideoNodes -> Clearing nodes properties. 19:17:24 2187.539307 T:2829054960 NOTICE: EMBY ClientInfo -> DeviceId loaded: 49996B559B3942B981244A416BBC914D 19:17:27 2190.468506 T:2829054960 NOTICE: EMBY Service -> Server is online and ready. 19:17:27 2190.491455 T:2694837232 NOTICE: EMBY UserClient -> ----===## Starting UserClient ##===---- 19:17:28 2190.686768 T:2694837232 NOTICE: EMBY UserClient -> Missing server information. 19:17:28 2191.492188 T:2829054960 NOTICE: EMBY Service -> Not authenticated yet. 20:20:40 5982.640625 T:2638210032 NOTICE: EMBY DownloadUtils -> Unknown error connecting to: /emby/Users//Views?format=json 20:20:40 5982.642578 T:2638210032 NOTICE: EMBY DownloadUtils -> Invalid URL '/emby/Users//Views?format=json': No schema supplied. Perhaps you meant http:///emby/Users//Views?format=json? 20:20:40 5982.645020 T:2638210032 NOTICE: EMBY -> Refresh playlists/nodes failed: string indices must be integers, not str 20:21:36 6038.632324 T:2638210032 NOTICE: EMBY -> Reset login attempts. 22:50:13 14955.798828 T:2829054960 NOTICE: EMBY Player -> Could not find itemId, cancelling playback report... 22:50:19 14962.112305 T:2829054960 NOTICE: EMBY Player -> Clear playlist properties. REMARK : I have installed the latest version of KODI (= OSMC - Version 2016-04-01) and I get also the same problem Request : http://192.168.1.80:8096/mediabrowser/Users/Public?format=json Response [{"Name":"dabou","ServerId":"83834b2e7d734ae6868c46c43ec237bb","Id":"a0d74638adb348a98ac4d92038863ca7","HasPassword":false,"HasConfiguredPassword":false,"HasConfiguredEasyPassword":false,"LastLoginDate":"2016-05-01T18:47:53.1090190Z","LastActivityDate":"2016-05-01T20:51:29.1686390Z","Configuration":{"PlayDefaultAudioTrack":true,"DisplayMissingEpisodes":false,"DisplayUnairedEpisodes":false,"GroupMoviesIntoBoxSets":false,"GroupedFolders":[],"SubtitleMode":"Default","DisplayCollectionsView":false,"DisplayFoldersView":false,"EnableLocalPassword":false,"OrderedViews":["1adb21f211b28ad385581304449a107e","52f1cc5cfe5ba8c9452cebe7bca9e026"],"IncludeTrailersInSuggestions":true,"LatestItemsExcludes":[],"PlainFolderViews":[],"HidePlayedInLatest":true,"DisplayChannelsInline":true,"RememberAudioSelections":true,"RememberSubtitleSelections":true,"EnableNextEpisodeAutoPlay":true},"Policy":{"IsAdministrator":true,"IsHidden":false,"IsDisabled":false,"BlockedTags":[],"EnableUserPreferenceAccess":true,"AccessSchedules":[],"BlockUnratedItems":[],"EnableRemoteControlOfOtherUsers":true,"EnableSharedDeviceControl":true,"EnableLiveTvManagement":true,"EnableLiveTvAccess":true,"EnableMediaPlayback":true,"EnableAudioPlaybackTranscoding":true,"EnableVideoPlaybackTranscoding":true,"EnableContentDeletion":true,"EnableContentDownloading":true,"EnableSync":true,"EnableSyncTranscoding":true,"EnabledDevices":[],"EnableAllDevices":true,"EnabledChannels":[],"EnableAllChannels":true,"EnabledFolders":[],"EnableAllFolders":true,"InvalidLoginAttemptCount":0,"EnablePublicSharing":true}}] Edited May 2, 2016 by dabou Link to comment Share on other sites More sharing options...
Vidman 589 Posted May 2, 2016 Share Posted May 2, 2016 The addon does not sync anything from kodi to emby.... The sync is only from emby to kodi Link to comment Share on other sites More sharing options...
dabou 0 Posted May 2, 2016 Author Share Posted May 2, 2016 The title of my post wasn't correct. I would like to say from Emby Server to Kody. Is the "sync the playlist / nodes" feature what should be done the first time we install the addon on Kody (sync process taking 1-2 hours on kody from emby server) ? How can I check if this sync process took place on my kody raspberry box ? Link to comment Share on other sites More sharing options...
dabou 0 Posted May 2, 2016 Author Share Posted May 2, 2016 There is something which is strange. I have installed kodi embed plugin (2.2.10) but after rebooting the raspberry machine & kodi, I don't get a prompt to select the Emby server as mentioned within the doc https://github.com/MediaBrowser/plugin.video.emby/wiki Once Kodi is running, you will be prompted with our Emby server auto-discovery process. You will need to set up your server and user information. When your information is set, you will be asked to enter your password if you have one. For your convenience, if you are connected locally to your server and you have an easy-pin in place, you can use it. Otherwise, use your full password. I have encoded manually the IP address : 192.168.1.80 corresponding to the MAcOS machine where Emby Server is running Link to comment Share on other sites More sharing options...
Vidman 589 Posted May 2, 2016 Share Posted May 2, 2016 In the addon settings select to reset database then after the pi reboots you should get the prompt Link to comment Share on other sites More sharing options...
dabou 0 Posted May 2, 2016 Author Share Posted May 2, 2016 Hi, I have done what you suggested "select to reset database ". After pi reboots, the plugin has proposed to sync with the server at the address 172.28.1.x. I have answered "No" and encoded the address of my Emby Server running on the MacOS (192.68.1.8). Unfortunately, the manuel sync has failed like also the playlist Here is log 18:47:09 T:123145305600000 NOTICE: EMBY Service -> Server is online and ready.18:47:09 T:123145307209728 NOTICE: EMBY UserClient -> ----===## Starting UserClient ##===---- 18:47:09 T:123145307209728 NOTICE: EMBY UserClient -> Missing server information. 18:47:10 T:123145305600000 NOTICE: EMBY Service -> Not authenticated yet. 18:47:41 T:140735238500352 ERROR: Control 50 in window 10025 has been asked to focus, but it can't 18:47:41 T:123145303990272 NOTICE: Using Image Cache Thread Count: 0 -> 1 18:47:41 T:123145303990272 NOTICE: WebServer: Started the webserver 18:47:41 T:123145303990272 NOTICE: plugin.video.emby started 18:47:41 T:123145303990272 NOTICE: Parameter string: 18:47:41 T:123145303990272 NOTICE: plugin.video.emby stopped 18:47:44 T:123145303990272 NOTICE: Using Image Cache Thread Count: 0 -> 1 18:47:44 T:123145303990272 NOTICE: plugin.video.emby started 18:47:44 T:123145303990272 NOTICE: Parameter string: ?mode=manualsync 18:47:44 T:123145303990272 NOTICE: EMBY -> Toggling screensaver: {"id":0,"jsonrpc":"2.0","result":true} 18:47:44 T:123145303990272 NOTICE: Using Image Cache Thread Count: 0 -> 1 18:47:44 T:123145303990272 NOTICE: EMBY DownloadUtils -> Unknown error connecting to: /emby/Users//Views?format=json 18:47:44 T:123145303990272 NOTICE: EMBY DownloadUtils -> Invalid URL '/emby/Users//Views?format=json': No schema supplied. Perhaps you meant http:///emby/Users//Views?format=json? 18:47:44 T:123145303990272 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.TypeError'> Error Contents: string indices must be integers, not str Traceback (most recent call last): File "/Users/chmoulli/Library/Application Support/Kodi/addons/plugin.video.emby/default.py", line 151, in <module> Main() File "/Users/chmoulli/Library/Application Support/Kodi/addons/plugin.video.emby/default.py", line 118, in __init__ librarysync.ManualSync().sync(dialog=True) File "/Users/chmoulli/Library/Application Support/Kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 1078, in sync return self.fullSync(manualrun=True, forceddialog=dialog) File "/Users/chmoulli/Library/Application Support/Kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 270, in fullSync self.maintainViews(embycursor, kodicursor) File "/Users/chmoulli/Library/Application Support/Kodi/addons/plugin.video.emby/resources/lib/librarysync.py", line 383, in maintainViews grouped_views = result['Items'] TypeError: string indices must be integers, not str -->End of Python script error report<-- 18:47:44 T:123145309892608 NOTICE: virtual bool CAESinkDARWINOSX::Initialize(AEAudioFormat &, std::string &): Opening default device Built-in Output 18:47:44 T:123145303990272 WARNING: CPythonInvoker(4, /Users/chmoulli/Library/Application Support/Kodi/addons/plugin.video.emby/default.py): the python script "/Users/chmoulli/Library/Application Support/Kodi/addons/plugin.video.emby/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon4xbmc7MonitorE,N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon9xbmcaddon5AddonE 18:47:44 T:140735238500352 ERROR: GetDirectory - Error getting plugin://plugin.video.emby/?mode=manualsync 18:47:44 T:140735238500352 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.emby/?mode=manualsync) failed 18:47:45 T:123145303990272 NOTICE: Using Image Cache Thread Count: 0 -> 1 18:47:45 T:123145303990272 NOTICE: plugin.video.emby started 18:47:45 T:123145303990272 NOTICE: Parameter string: 18:47:45 T:123145303990272 NOTICE: plugin.video.emby stopped 18:47:50 T:123145313726464 NOTICE: Using Image Cache Thread Count: 0 -> 1 Link to comment Share on other sites More sharing options...
Vidman 589 Posted May 2, 2016 Share Posted May 2, 2016 (edited) So you have another server running that has ip 172.28.1.x ? What does your mac server show as internal address in the server dashboard? Edited May 2, 2016 by Vidman Link to comment Share on other sites More sharing options...
Vidman 589 Posted May 3, 2016 Share Posted May 3, 2016 I see from your post here: http://emby.media/community/index.php?/topic/34460-Local-&-Remote-Access-:-IP-Address That the server is showing the same address as kodi is picking up, why not just use that address? Link to comment Share on other sites More sharing options...
dabou 0 Posted May 3, 2016 Author Share Posted May 3, 2016 The IP address 172.28.128.1 is an address used locally on my MacOS Machine with VirtualBox (VMs machines) and corresponds to a vboxnet adapter vboxnet5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 0a:00:27:00:00:05 inet 172.28.128.1 netmask 0xffffff00 broadcast 172.28.128.255 en3: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV> ether 68:5b:35:a2:b7:1f inet6 fe80::6a5b:35ff:fea2:b71f%en3 prefixlen 64 scopeid 0x5 inet 192.168.1.80 netmask 0xffffff00 broadcast 192.168.1.255 I will check if I can disable it. Remark : Is there a way to tell to Emby Server (config file, ...) the IP address to be used when multiple IP networks are defined on a machine ? Link to comment Share on other sites More sharing options...
Vidman 589 Posted May 3, 2016 Share Posted May 3, 2016 Well it seems that your kodi box is picking it up Link to comment Share on other sites More sharing options...
dabou 0 Posted May 3, 2016 Author Share Posted May 3, 2016 I have been able to resolve the problem after removing this Virtual IP Address network (172.168.28.1) on My MacOS X Machine. Now kodi can be synchronized with the Emby server running on my mac (192.168.1.80) Additional question : When I would like from kodi to watch a movie, serie, Do I have to select under movie menu -> files -> Add UpNP Server OR do I have to select Menu -> Addon - Emby -> Movie ? Link to comment Share on other sites More sharing options...
Vidman 589 Posted May 3, 2016 Share Posted May 3, 2016 No your movies should be listed under the home screen movie item Link to comment Share on other sites More sharing options...
Recommended Posts