Jump to content

Kodi erratic due to change make in the Emby Server user access library


e123enitan

Recommended Posts

e123enitan

I appreciate emby/kodi is in the development stage, I am not sure if at this stage it supports changes make to user access in emby server (ES).
 

Anyway I decided to restrict user library access in the ES, then restarts Kodi to review impact of the changes, the behaviour was totally erratic, (lot of poster blurred, missing many potters, screen freeze, shifting in posters as though smoothing is working underneath that is not apparent, etc.) bottom line I couldn’t determine if the change made in server have any impact as it so difficult to navigate through Kodi. I have rebuilt the system with the latest addon every is thing back to normal, without making any further changes to ES for now.

 

I hope you find these logs helpful

 

http://xbmclogs.com/pzkmk6gsm

http://xbmclogs.com/p204ooxm6

Edited by e123enitan
Link to comment
Share on other sites

xnappo

Not quite sure what you are saying, but if you made a massive change to what you expect to see in Kodi, you will need to just load it and let it sit for a long time.

Link to comment
Share on other sites

e123enitan

Not quite sure what you are saying, but if you made a massive change to what you expect to see in Kodi, you will need to just load it and let it sit for a long time.

I simple limit access user access to specific library  who have unlimited access to all my movie libraries, after such change I expect this user to see on Kodi 149 movies nothing more, however what is displayed after waiting for an hr in some cases is not readable, screen freeze, poster shifting intermittently, progress bar rotating endlessly etc.

In previous MB addon, once a change is made in ES to user library profile and Kodi is turn off/on, the change is immediately and effective, so the expended results are displayed with no issue.

Edited by e123enitan
Link to comment
Share on other sites

Angelblue05

I simple limit access user access to specific library  who have unlimited access to all my movie libraries, after such change I expect this user to see on Kodi 149 movies nothing more, however what is displayed after waiting for an hr in some cases is not readable, screen freeze, poster shifting intermittently, progress bar rotating endlessly etc.

In previous MB addon, once a change is made in ES to user library profile and Kodi is turn off/on, the change is immediately and effective, so the expended results are displayed with no issue.

 

The two addons work differently. Emby for Kodi inserts the data into the Kodi database to be able to use Kodi features natively. With the MB addon, it loads the data/per level and cache it, without inserting it into the Kodi database. This is why the MB addon is quicker to react to major library changes. However, to be able to use Kodi features, you need custom skins and a lot of workarounds. Which ends up costing, performance wise. It depends on what you are trying to achieve here.

 

To recap:

Emby for Kodi addon - You get native features, access to all skins. Slow to import/maintain content into the Kodi database, but gives a faster performance in the end.

MB addon - You need custom skins, workarounds to simulate native features. Quick to react to major library changes, but because of the workarounds, it ends up giving a slower performance.

 

Hope this clarifies a bit. :)

  • Like 2
Link to comment
Share on other sites

e123enitan

The two addons work differently. Emby for Kodi inserts the data into the Kodi database to be able to use Kodi features natively. With the MB addon, it loads the data/per level and cache it, without inserting it into the Kodi database. This is why the MB addon is quicker to react to major library changes. However, to be able to use Kodi features, you need custom skins and a lot of workarounds. Which ends up costing, performance wise. It depends on what you are trying to achieve here.

 

To recap:

Emby for Kodi addon - You get native features, access to all skins. Slow to import/maintain content into the Kodi database, but gives a faster performance in the end.

MB addon - You need custom skins, workarounds to simulate native features. Quick to react to major library changes, but because of the workarounds, it ends up giving a slower performance.

 

Hope this clarifies a bit. :)

Thanks for the clarification, I get it! :)  on a seperate note

 

It occurs to me that my children were playing movies outside the time frame set in ES for each user, so I when to research the root cause. interesting to note that when I make changes to ES user profile, such as removing device, deactivate users or even turn off the server, Kodi is still able to play media file, it is as though it is playing directly from my NAS (WD EX4) and bypassing restrictions rules set in ES, this was never the case with MB addon, everything works perfectly, I am wondering if this issue is due e to my system setup, or it common to other users and the MP team are aware the issue.

 

This is a MAJOR CONCERN for me, wondering if it would help if I provide both server / Kodi logs if that would help, pls let me know.

Cheers!

Link to comment
Share on other sites

xnappo

That is because it IS playing directly from your NAS.   Once the information is synced from Emby->Kodi, Kodi is completely in control.  You might be able to restrict access by changing it to play from HTTP instead of SMB - then it will be going through the server instead of direct to NAS.  This option is in the settings.

  • Like 1
Link to comment
Share on other sites

e123enitan

That is because it IS playing directly from your NAS.   Once the information is synced from Emby->Kodi, Kodi is completely in control.  You might be able to restrict access by changing it to play from HTTP instead of SMB - then it will be going through the server instead of direct to NAS.  This option is in the settings.

 

Ok thanks, I will give a try, and report back of my findings, just to clarify, once I made the change you suggested to HTTP, do I need to reset emby from advance section to wipe out existing data and rebuild the syn DB again from scratch or these steps are not required?

Cheers!

Link to comment
Share on other sites

xnappo

I think if you just wait 15 minutes or so after a restart it will update everything - but it would actually be faster to start over probably.

Link to comment
Share on other sites

e123enitan

I think if you just wait 15 minutes or so after a restart it will update everything - but it would actually be faster to start over probably.

Lovely-U guys are awesome :) your response and support service are impeccable, excellent job keep the great work.

Cheers! 

  • Like 1
Link to comment
Share on other sites

e123enitan

I make no diff when I changed the addon setup to "play from HTTP instead of SMB", both movies and Tv shows played fine with no issue, even when I deactivate user or device let me know where to go from here, I dont want to point fingers to either kodi/emby addon nor the emby Server, but the issue lies somewhere in between. I have alway used direct play in MB addon and server access retrictions works fine so far that I remember and the setting have not changed., question this is an issue that need addressing. Just wondering if any have experience same issue or not have been looked into. Let me know if you need further info and in what format.

Screen of setup play form http instead of smb

5537c688772a5_embyaddonsetupashttp.png

 

screnn captured http path

5537c732adb90_filepathhttp2.png

 

Screen result when I changed user access in the ES, some of the posters were blanked, the blanked one still played

 

5537c5ef31b19_afterchange.png

Link to comment
Share on other sites

e123enitan

Hi  xnappo, Apology I am not trying push anything but I thought I follow up with you on this subject of Emby Server “User access and Device deactivate” is not recognised by Kodi. As reported above and followed with your suggestion, unfortunately this approach doesn’t stopped playing movies/Tv show even when the device is blocked (deactivated) just wondering if you have chance to look/identify this issue.
I don’t wish to suggest how you prioritize your resource, but think this issue worth given immidiate attention, as aforementioned in Kodi-MB addon work perfectly when users profile are modify in the Emby server.

It could well be that the issue lies within server, “a speculation”, or even my own settings but it worth looking into as it critical to controlling what users are privilege to watch.

 

Thanks for your time and support

Link to comment
Share on other sites

Angelblue05

Hi  xnappo, Apology I am not trying push anything but I thought I follow up with you on this subject of Emby Server “User access and Device deactivate” is not recognised by Kodi. As reported above and followed with your suggestion, unfortunately this approach doesn’t stopped playing movies/Tv show even when the device is blocked (deactivated) just wondering if you have chance to look/identify this issue.

I don’t wish to suggest how you prioritize your resource, but think this issue worth given immidiate attention, as aforementioned in Kodi-MB addon work perfectly when users profile are modify in the Emby server.

It could well be that the issue lies within server, “a speculation”, or even my own settings but it worth looking into as it critical to controlling what users are privilege to watch.

 

Thanks for your time and support

@@e123enitan

 

I would like to help, but your logs are not appropriate. Can you disable Kodi debug? Enable Emby for Kodi debug instead (set to info should be enough) If you need help, see How to report a problem in my signature. Thanks. Also give us more, what user settings have you set so we can try to reproduce the problem.

  • Like 1
Link to comment
Share on other sites

e123enitan

I am sure you can help, and I would like to say to thank you for including this issue in T-Board, I have been busy, I shall provide the info tonight but one question do I need to provide server log too or its not require at this stage?

 

Thanks 

Edited by e123enitan
Link to comment
Share on other sites

Angelblue05

Just the user settings you've set server side with your Kodi log should be a good starting point. Thanks :)

Link to comment
Share on other sites

e123enitan

Sorry I came back late, pls see attached logs for both sever and Kodi, while troubleshooting/resetting user profile/devices in the server, just have a clean platform, so I can review from each side categories where link is broken, there I noticed that Kodi device is not been established or recognized in server under device and in advance security API, however, I am able to play movies in Kodi, where Kodi setup to play through http, instead of smb.
This kind of bother me, what is expected as normal is once a device is setup with the ip of server, the automatically registered that device and also assigned API key. My android phone and Nexus tablet authenticate with not issue also control of user access functioned well with

 

Nexus table and phone.
Several questions puzzle my mind which I could not figure out? But it does sync to DB, hence movies/Tv shows were collected to Kodi and subsequently played? Has something changed between Emby/Kodi addon between v 28 to v30 which might have caused the disconnection? Rhetorical questions pls ignore
I don’t want to suggest the issue lies with emby/kodi addon but based on my simple research it is leaning toward Kodi.  At this point my head is messed up, HELP!!!!!!!!!!!!!!!!!! :(

 

Kodi Log

 

 

 

Server

 

 

 

 

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

Angelblue05

Well not to worry, we'll get it working fully. This is a tedious process of back and forth, but it will be fixed. :)

 

I think what you are describing is the result of not having implemented the revoked api key situation yet. As it is now, if the server revokes the token, Kodi will not erase the token and will not try to reauthenticate you so it will give the errors you are seeing in the log. I've added the issue to our Trello board and hopefully I can get to it soon.

 

What you can do for now is go to %appdata/Roaming/Kodi/userdata/addons/plugin.video.emby modify the settings and just erase the accesstoken line. Save and restart Kodi. It should prompt you to authenticate yourself once more and generate a new api key.

 

The program is not able to move on from this point since you are not authenticated. Once you are authenticated, it will be added to your Emby server's list of devices/have the api key under security etc.

However I'm not 100% sure about the playback via http still happening when the user token has been revoked. That's strange and I'll have to try to recreate the situation. 

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

e123enitan

Hi Bud, I just rebuild my server from scrach, it is a pain but at lease I am able to narrow the issue to the server, I think things may have got scrude during several server updates. Anyway both the server/Kodi are communicating, now I can start playing around with access/devise resriction testing and review those changes in Kodi, I shall keep you posted with logs and screen shot's thanks for your supports very kind of you.

 

Cheers

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
e123enitan

Posted Yesterday, 05:20 PM

Version 0.1.82:

Only a few minor fixes towards stabilizing the Emby for Kodi experience and:

•The addon now respects Parental control for access schedules
•Adding a new series (that was never imported to Kodi during initial sync) and changing boxsets should be picked up instantly on event

 

Hi Angelblue05,  Does 1.82 solved access restrictions as noted in this thread i.e. restriction access to file libraries and devices or it still WIP? or it is limited to parental control schedule only? Also does the Parental control applies to both direct and http play types or ? 

 

Thanks

Link to comment
Share on other sites

Angelblue05

Yes it applies to both http and direct play types. It's only for the access schedule that you set under parental control. Try it out, let me know that it works as expected :)

 

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
Link to comment
Share on other sites

e123enitan

Well done guys, issues reported in this thread have been resolved:

restriction in server to libraries access, disable users and devices are all recognized by Kodi. :D

 

Other comments:

Text message work fine ( it would be nice to add recurring option and time limit,  option to pause movie or tv while text while text is delivered)

 

File Stacking is still outstanding  :)

 

I have issues with skin (Titan) , but will be reported in Skin section.

Link to comment
Share on other sites

Angelblue05

You can pause or control everything in Kodi via the webclient remote. However, the recurring option/time limit is not something offered server side... I can increase the time display time to longer than 2 seconds, but there's no recurring option, unfortunately. :(

 

 

Sent from my iPhone using Tapatalk

  • Like 1
Link to comment
Share on other sites

e123enitan

You can pause or control everything in Kodi via the webclient remote. However, the recurring option/time limit is not something offered server side... I can increase the time display time to longer than 2 seconds, but there's no recurring option, unfortunately. :(

 

 

Sent from my iPhone using Tapatalk

Nice, any chance of looking into the file staking? :)

Link to comment
Share on other sites

Angelblue05

What exactly is it with file stacking? Sorry :)

 

Do you mean it displays every part of the file individually instead of as one? Or do you mean that the files are not playing after the first part? Is this for episodes or movies?

Link to comment
Share on other sites

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