Jump to content

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


Go to solution Solved by quickmic,

Recommended Posts

kocurek7
Posted
1 hour ago, quickmic said:

New PUBLIC TESTING version available 10.0.29:

Why I'm stuck with 10.0.24 from Kodi repo. Do I have to download it manually, because it's not in a repo or is there something wrong on my side? 

quickmic
Posted
5 minutes ago, jacwojacz said:

Why I'm stuck with 10.0.24 from Kodi repo. Do I have to download it manually, because it's not in a repo or is there something wrong on my side? 

Public testing is only via sideload.

quickmic
Posted
18 minutes ago, Kyrunner said:

@quickmic I’m a little confused on the sync artwork cache. What does it ackialy do? My understanding is it sync everything from the emby server to Kodi which is ran on my pc. Shouldn’t my pc hard drive fill up since data is being sync to it. I just done a full sync took over a hour but my hardrive never changed. I guess I just need a little clarification 
 

Yes it loads the images to Kodi, but only if not already there (which I assume it was).

Quote

@quickmic for widgets should we be using Dynamic or Regular when I create a widget for my Home Screen for tv shows next episode I can choose Dynamic tv shows and pick next up and that works but if I try to use the other choice TV shows  which isn’t dynamic it never syncs watch history 

Are you reporting a bug?

Kyrunner
Posted
6 minutes ago, quickmic said:

Yes it loads the images to Kodi, but only if not already there (which I assume it was).

Are you reporting a bug?

I think so up next was working fine Pryor   To.  .29  only way it works now is if I use dynamic which I have never had to.

  • Like 1
DarWun
Posted
22 hours ago, quickmic said:

Did you run a test on a fresh Kodi Installation (PC)? I need a confirmed/reproducible test case before digging any deeper. Too many variations for debugging at this point.

@quickmic I ran a test on a fresh Kodi installation on my PC. I installed Kodi, installed the E4K 10.0.29 plug-in and supporting video, audio and image packages. I made no other configuration changes to Kodi. After setting up the libraries, I attempted to play a couple of media files. They did not play, same as when I tried to play the files from E4K installed on LibreElec (rpi4).

I'm going to install E4K 10.0.25 to see if media plays using it. That is the last version that worked on my LibreElec client. If it works on my PC, that would be useful to know.

Debug Kodi log attached.

kodi.log

DarWun
Posted (edited)
40 minutes ago, DarWun said:

I'm going to install E4K 10.0.25 to see if media plays using it. That is the last version that worked on my LibreElec client. If it works on my PC, that would be useful to know.

 

@quickmicI installed E4K 10.0.25 on my fresh Kodi PC installation. Playback worked.

FYI, my Emby server is a Synology DS918+ NAS running Emby Beta 4.9.0.23.

 

Edited by DarWun
quickmic
Posted
54 minutes ago, DarWun said:

@quickmicI installed E4K 10.0.25 on my fresh Kodi PC installation. Playback worked.

FYI, my Emby server is a Synology DS918+ NAS running Emby Beta 4.9.0.23.

 

Can you assign me a test account on your server?

Scozz1976
Posted
12 hours ago, quickmic said:

I can see you use a manual added Emby server address, is this correct? Please send me your "servers_XXXXXXXXXXX.json" file for review. REMOVE the "AccessToken" in this file before posting it!

You can find it in: ../userdata/addon_data/plugin.service.emby-next-gen.

I think I can reproduce the issue. I'll fix that in next version.

10.0.29 installed. All good, thanks.

  • Like 1
quickmic
Posted
10 hours ago, DarWun said:

@quickmicI installed E4K 10.0.25 on my fresh Kodi PC installation. Playback worked.

FYI, my Emby server is a Synology DS918+ NAS running Emby Beta 4.9.0.23.

 

How did you play the episodes? Via nodes, or "regular" views? Are the helper plugins enabled?

Posted
15 hours ago, quickmic said:

How did you play the episodes? Via nodes, or "regular" views? Are the helper plugins enabled?

With E4K Next-gen 10.0.25, I can play media from both the synced nodes and the dynamic nodes. With later versions, neither works (just get a spinning blue circle and eventually notification that the media failed to play).

Just so it is clear, I installed kodi-21.0-Omega-x64 on my PC. I did not make any configuration changes. I then installed the E4K service, followed by the video, audio and image addons in that order. As far as E4K configuration goes, I selected Add-on playback mode when asked, selected the server and entered my login credentials, and added the libraries. I made no other configuration changes to E4K. After following this installation procedure with 10.0.25, media plays. For all subsequent versions of E4K, it does not.

Still working opening up remote access to my server so you can take a look at my settings.

  • Like 1
quickmic
Posted
8 hours ago, DarWun said:

With E4K Next-gen 10.0.25, I can play media from both the synced nodes and the dynamic nodes. With later versions, neither works (just get a spinning blue circle and eventually notification that the media failed to play).

Just so it is clear, I installed kodi-21.0-Omega-x64 on my PC. I did not make any configuration changes. I then installed the E4K service, followed by the video, audio and image addons in that order. As far as E4K configuration goes, I selected Add-on playback mode when asked, selected the server and entered my login credentials, and added the libraries. I made no other configuration changes to E4K. After following this installation procedure with 10.0.25, media plays. For all subsequent versions of E4K, it does not.

Still working opening up remote access to my server so you can take a look at my settings.

Please try replacing this file and let me know, if this would fix the issue:

 

webservice.py

  • Thanks 1
geowill76
Posted (edited)

Hi quickmic

Thanks for creating this plugin as it helps me link my Emby server to Kodi.  It has been a while since I have used this plugin as I was trying out Plex but have decided to move back to Emby and I am confused about how this new plugin works and how you go about installing it.  Previously it was just one zip file you installed but now I see you have to install 4 zip files - service, image, audio and video last.  However, I am confused about how to proceed with the install/setup.  Reason I ask is that when I install the service the system then asks me to configure the connection by either selecting native or add-on option, then connect to my ember server, log in with a username then sync my library.  To I complete that setup first then install the remaining zip files or to I cancel that setup, install the remaining zip files then re-do the setup/configuration?  If I re-do the setup/configuration then I lose the ability to choose native or add-on option.

Also, I see there are two version - beta and public testing.  I see public testing has 4 files but beta only has 3 files.  Which one should I install

Thanks

 

Edited by geowill76
Add More Info
quickmic
Posted (edited)
2 hours ago, geowill76 said:

Hi quickmic

Thanks for creating this plugin as it helps me link my Emby server to Kodi.  It has been a while since I have used this plugin as I was trying out Plex but have decided to move back to Emby and I am confused about how this new plugin works and how you go about installing it.  Previously it was just one zip file you installed but now I see you have to install 4 zip files - service, image, audio and video last.  However, I am confused about how to proceed with the install/setup.  Reason I ask is that when I install the service the system then asks me to configure the connection by either selecting native or add-on option, then connect to my ember server, log in with a username then sync my library.  To I complete that setup first then install the remaining zip files or to I cancel that setup, install the remaining zip files then re-do the setup/configuration?  If I re-do the setup/configuration then I lose the ability to choose native or add-on option.

Also, I see there are two version - beta and public testing.  I see public testing has 4 files but beta only has 3 files.  Which one should I install

Thanks

 

The service plugin is the core module, the others are just helpers. Nothing to configure in the helpers.

The very old 4.X plugin had also 3 components. You might not know that cause those are just dependencies of the core module.

It's the same for 10.X and also auto installed if you use the repository (beta or stable). As public test versions are not checked in into repos, you need to install all 4 modules manually (via sideload). Once checked in into repo, you will not notice the dependency installation.

I recommend public testing version at the current state. Actually I just try to fix the issue @DarWunreported before I upload it to beta repo. It's very specific to his setup and I would surprised if you would find any issues in latest 10.X

 

 

Edited by quickmic
geowill76
Posted (edited)

Hi Quickmic

So I should install the 4 individual zip files - in what order should I install them in and also should I ignore the setup once I install the service zip until I have install all the remaining zip files.

 

Thanks

 

Thanks

Edited by geowill76
quickmic
Posted
54 minutes ago, geowill76 said:

Hi Quickmic

So I should install the 4 individual zip files - in what order should I install them in and also should I ignore the setup once I install the service zip until I have install all the remaining zip files.

 

Thanks

 

Thanks

Disable old video plugin. Install service first, then the others and re-enable video.

geowill76
Posted

Hi Quickmic

Sorry, this will be a clean install as first time installing the plugin this way so not sure what you mean by disabling and enabling video plugin.  Sorry for being a pain, just want to make sure I get it right.  Should I install all 4 zips then once installed go through the setup.

quickmic
Posted
5 minutes ago, geowill76 said:

Hi Quickmic

Sorry, this will be a clean install as first time installing the plugin this way so not sure what you mean by disabling and enabling video plugin.  Sorry for being a pain, just want to make sure I get it right.  Should I install all 4 zips then once installed go through the setup.

You can configure everything, no need to wait for the others.

Posted (edited)
19 hours ago, quickmic said:

Please try replacing this file and let me know, if this would fix the issue:

 

webservice.py 49 kB · 1 download

@quickmic Replacing the webservice.py file did not resolve the issue with E4K .29. Debug Kodi.log attached.

I did some testing, and I think I have some insight as to what the issue is. Why E4K deals with this differently in .25 versus .26 onward I have no idea. But it does.

My media files are all stored on a Synology DS918+ NAS. When I first set up the Emby Server a few years ago, I installed it on my PC. When setting up libraries, I had to specify two path locations for the media. The first, primary location was a link to "/volume1/MediaStorage/Users/...". The second, optional location pointed towards "nfs://xxx.xxx.x.xx/volume1/MediaStorage/Users/...." . I maintained that library setup when I subsequently migrated the server to the NAS a few years later.

One of the things that you suggested to disable was path substitution. I did that in E4K and Kodi. But I did not remove the optional shared network location from the library setup. I just created a test library where I only entered the primary location. I then added that library to E4K. The media in that library played without issue using E4K .29. I then updated the test library to add the optional shared network location. After doing so, E4K would not play media from that library.

Edited to add:  I'm fairly certain that this is the cause of the issue I'm reporting. I just removed all of the (Optional) Shared network folder locations from my libraries, installed E4K .29 on my LibreElec Kodi setup and reset the database. After adding the libraries, I was now able to stream media. I changed one of my libraries to restore the shared network location. After doing so (and repairing the library), the media would not play.

 

kodi.log

Edited by DarWun
  • Thanks 1
quickmic
Posted (edited)
5 hours ago, DarWun said:

@quickmic Replacing the webservice.py file did not resolve the issue with E4K .29. Debug Kodi.log attached.

I did some testing, and I think I have some insight as to what the issue is. Why E4K deals with this differently in .25 versus .26 onward I have no idea. But it does.

My media files are all stored on a Synology DS918+ NAS. When I first set up the Emby Server a few years ago, I installed it on my PC. When setting up libraries, I had to specify two path locations for the media. The first, primary location was a link to "/volume1/MediaStorage/Users/...". The second, optional location pointed towards "nfs://xxx.xxx.x.xx/volume1/MediaStorage/Users/...." . I maintained that library setup when I subsequently migrated the server to the NAS a few years later.

One of the things that you suggested to disable was path substitution. I did that in E4K and Kodi. But I did not remove the optional shared network location from the library setup. I just created a test library where I only entered the primary location. I then added that library to E4K. The media in that library played without issue using E4K .29. I then updated the test library to add the optional shared network location. After doing so, E4K would not play media from that library.

Edited to add:  I'm fairly certain that this is the cause of the issue I'm reporting. I just removed all of the (Optional) Shared network folder locations from my libraries, installed E4K .29 on my LibreElec Kodi setup and reset the database. After adding the libraries, I was now able to stream media. I changed one of my libraries to restore the shared network location. After doing so (and repairing the library), the media would not play.

 

kodi.log 81.49 kB · 0 downloads

Very interesting, thanks for all the testing. Can you please upload your "sources.xml" file from Kodi (from the not-playable configuration from PC's Kodi) for review.

Frankly that's really weird. I have no clue what could cause the issue from > .25. The webservice.py file I send you was from .25 (with minimal modification to make it compatible with .29)

Therefore I can rule out it's an issue with the webservice. Actually that was my only idea where the issue could be located. The webservice sends the redirects to Emby server HTTP links to Kodi for playback.

Also I reviewed the changed from .25 -> .26. I cannot find what probably goes wrong. The changes are related to Emby login and communication to Emby server while sync etc, but this all works fine according to your logs.

 

Here is my sources.xml, I added a smb (files) location for testing and still works like a charm.

<sources>
    <programs>
        <default pathversion="1"></default>
    </programs>
    <video>
        <default pathversion="1"></default>
        <source>
            <name>emby-for-kodi-next-gen-addon-video-path-substitution</name>
            <path pathversion="1">/emby_addon_mode/</path>
            <allowsharing>false</allowsharing>
        </source>
        <source>
            <name>emby-for-kodi-next-gen-addon-video</name>
            <path pathversion="1">http://127.0.0.1:57342/</path>
            <allowsharing>false</allowsharing>
        </source>
    </video>
    <music>
        <default pathversion="1"></default>
        <source>
            <name>emby-for-kodi-next-gen-addon-music-path-substitution</name>
            <path pathversion="1">/emby_addon_mode/</path>
            <allowsharing>false</allowsharing>
        </source>
        <source>
            <name>emby-for-kodi-next-gen-addon-music</name>
            <path pathversion="1">http://127.0.0.1:57342/</path>
            <allowsharing>false</allowsharing>
        </source>
    </music>
    <pictures>
        <default pathversion="1"></default>
    </pictures>
    <files>
        <default pathversion="1"></default>
        <source>
            <name>kodi.emby.tv</name>
            <path pathversion="1">http://kodi.emby.tv</path>
            <allowsharing>false</allowsharing>
        </source>
        <source>
            <name>storage0</name>
            <path pathversion="1">smb://192.168.0.205/storage0/</path>
            <allowsharing>true</allowsharing>
        </source>
    </files>
    <games>
        <default pathversion="1"></default>
    </games>
</sources>

 

 

Edited by quickmic
geowill76
Posted

Hi Quickmic

Thanks for your help.  I now have the plugin working with Kodi and everything is looking great.  However, I am having one problem with my local trailers and the Titan Bingie Mod Skin for Kodi.  On the homepage is the spotlight section which is setup to automatically play local trailer in a small window version but instead it is playing it as full screen.  Same for a widget that I have setup on home screen via a setting called Highlight Widget, which should play the local trailer within a window but instead is playing as full screen.

I did a google search and noticed someone had similar problem in March via this post - 

 

Do I need to set up something within the plugin so that my local trailers play correctly in Kodi?  Do I need to install anything on my Emby server for it to work correctly?

Please note I have setup the plugin as Native Mode and added my movies and tv shows to Kody as EMBY:  Movies and not EMBY DYNAMIC if that helps.

 

Kyrunner
Posted
3 minutes ago, geowill76 said:

Hi Quickmic

Thanks for your help.  I now have the plugin working with Kodi and everything is looking great.  However, I am having one problem with my local trailers and the Titan Bingie Mod Skin for Kodi.  On the homepage is the spotlight section which is setup to automatically play local trailer in a small window version but instead it is playing it as full screen.  Same for a widget that I have setup on home screen via a setting called Highlight Widget, which should play the local trailer within a window but instead is playing as full screen.

I did a google search and noticed someone had similar problem in March via this post - 

 

Do I need to set up something within the plugin so that my local trailers play correctly in Kodi?  Do I need to install anything on my Emby server for it to work correctly?

Please note I have setup the plugin as Native Mode and added my movies and tv shows to Kody as EMBY:  Movies and not EMBY DYNAMIC if that helps.

 

Most Skins have a setting to play trailer in window mode. I use Artic Horizon 2 and there is a setting in the skin someplace to play trailers in window mode. 

 

It's in the skin Settings or a Kodi setting forgot but there is a setting for trailers in Windows mode. 

Kyrunner
Posted

@quickmicI'm working with a gentleman on the Kodi forums we are trying to troubleshoot the IOS Kodi app trailers that are not showing up in the app itself and he asked me this question would you be able to answer it? 

 

(The best would be if you could find out what trailer path/link Emby creates and adds to the Kodi database. Do you see a way to get me a few examples?)

geowill76
Posted

Hi Kyrunner

Thanks for info.  Problem is that Titan Binge Mod doesn't have a setting to play trailer in window mode.  The skin is setup to automatically scale trailers in a specific window size, as shown on the link I posted to another post that shows the skin and how the trailer should work.  Also the skin has something called a highlight widget, similar to the way Netflix works in that when you move over the image the window expands and plays the trailer in the window.  Right now all my movies automatically play the trailer in full screen, ignoring that it should be in there set window.  My TV shows don't have local trailers and rely on Kodi YouTube plug to play trailers and in the skin they play correctly within the window.

Do I need to install the trailers plugin on Emby server or any other plugin?  In cinema intros on ember server I have enabled the option include trailers from movies in my library.

 

Posted (edited)
20 hours ago, quickmic said:

Very interesting, thanks for all the testing. Can you please upload your "sources.xml" file from Kodi (from the not-playable configuration from PC's Kodi) for review.

Stupid question. But how do I force an update of the sources.xml file? I've done testing over the last few days that added and removed path locations from the libraries. But the source.xml file is dated three days prior. It doesn't seem to get updated as I make changes. The optional paths aren't listed in the file even though they are set in the library.

Edited to add: I deleted the sources.xml file expecting that Kodi would recreate it on the next startup. It did not. I then did an E4K database reset. After doing that and adding the libraries, the sources.xml file was created. But what I'm seeing in it does not reflect path locations set for my libraries in Emby. the "nfs:..." optional location I added for the movie library is not shown at all.

image.png.154ecbdb04297a9640fd120b86899068.png 

 

kodi.log

Edited by DarWun
quickmic
Posted (edited)
8 hours ago, Kyrunner said:

@quickmicI'm working with a gentleman on the Kodi forums we are trying to troubleshoot the IOS Kodi app trailers that are not showing up in the app itself and he asked me this question would you be able to answer it? 

 

(The best would be if you could find out what trailer path/link Emby creates and adds to the Kodi database. Do you see a way to get me a few examples?)

That depends what trailers you use. Local trailers have priority over remote (youtube) trailers. It actually depends on your Emby config. You can send me your "myvideo.db" from Kodi and I'll have a look.

And we are talking about "standard" trailer function of Kodi, right? Not cinema mode or some 3rd party plugins playing trailers...

Edited by quickmic

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