Jump to content

Kinderprofil geht nicht !


black0r

Recommended Posts

black0r

Hi Leute,

 

aktuelles Emby

aktuelles Kodi (standard Skin)

 

3 Shares /SD Filme /HD Filme /3D Filme -> Movie / Ansicht in Kodi alles erscheint unter Filme

 

Also was hab ich getan :

 

Kodi 2. Profil Kinder / alles ausgeblendet auser Addon und Filme

 

Emby 2. Datenbank für Kinder mit extra Profil und Kinderschutz

 

Wo ich das Kinderprofil auf Kodi erstellt habe mit dem Kinder User in emby hat er gesynct und alles richtig gemacht. Nach einem reboot oder zwischendurch wechsel aufs Eltern Profil in Kodi (und dann wieder zu Kinder) dann nimmt es ca. 1/4 meiner anderen Filme mit rein ! Wo kommen die her ? Weder in Emby ist etwas auser derKiddy Bibliothek angehakt noch hab ich das im Profil in Kodi gewählt - Woran kann das liegen ? Wo kann ich nachschauen ?

 

Im Kodi Forum meinten sie das es ein API Event Callback Problem von Emby ist - und ihr da schon dran seit. Wie ist denn der Status dazu wenn es so ist ? Teste sehr gerne für euch dann mit :)

 

mfg

Link to comment
Share on other sites

sualfred

Bekanntes Problem, aber keine Lösung bisher. Profile sind in Kodi generell total verbuggt.

 

 @@Luke this issue has been reported a few times. @@Angelblue05 can tell you more about it and afair there was a longer thread in the Kodi section

  • Like 1
Link to comment
Share on other sites

Angelblue05

I'd have to see a Kodi log of that happening to be sure it is the same problem that has been reported in the past. The issue boiled down to getting the add event before the item is blocked. Then once blocked, never receiving a remove event. The item is added but never removed. Usually that item will have incomplete metadata but still be playable.

 

I think maybe a potential solution would be filtering tags (adding an option for it) and duplicating the parental block within the add-on itself. I guess it could be useful for other scenarios too.

Link to comment
Share on other sites

The remove event isn't going to work like that. It's only a raw remove from the library, not a virtual user remove due to parental controls or other settings. At the moment this is not something you'll be able to react to in real-time, I don't think, but the periodic sync should be able to figure out anything that the realtime events don't cover.

 

You can always listen for the UserPolicyUpdated message. That won't tell you exactly what changed, but it is a hint that something might have changed that would affect library contents. But this might not be a good idea as you don't want to hammer the server with full syncs every-time the admin changes a user setting.

 

Doesn't the periodic sync do a quick comparison to identify new or removed items based on lists of Ids?

  • Like 1
Link to comment
Share on other sites

Angelblue05

There's no periodic sync. It's all event based. The only time it will compare is if the user does a manual update of the libraries themselves.

 

The add event will trigger the add-on to download the metadata then add it to the database. But since the add happens before the item is blocked, the add-on still finds the item and adds it.

 

If the add event happened after the item is blocked, then there would be no issues I would think.

 

Edit: But this is assuming it's the same issue. Haven't seen the logs yet. However, thinking out loud, I think maybe there is something I can do about it. there will be an update event that will trigger afterward. I'll use that to capture removed items.

Edited by Angelblue05
Link to comment
Share on other sites

black0r

OK- sounds all very intresting :) but im no dev so i dont understand all of what you talking :) !

 

What you need from me exactly ? Logs - i see / which logs an if i know this - logs with entered Kinder Profile or Eltern Profil ?

Link to comment
Share on other sites

Angelblue05

Yes a Kodi log capturing what you are seeing. The wrong content being added when you change profile. Thank you.

 

https://github.com/MediaBrowser/plugin.video.emby/wiki/how-to-report-an-issue

 

What you can do in the meantime is remove the synced library from Kodi on the kids profile. Then you can use the regular plugin method to access the emby content for their profile. You can point shortcuts to the entries you see when you launch Emby for Kodi.

Edited by Angelblue05
Link to comment
Share on other sites

Angelblue05

If the add event happened after the item is blocked, then there would be no issues I would think.

 

Edit: But this is assuming it's the same issue. Haven't seen the logs yet. However, thinking out loud, I think maybe there is something I can do about it. there will be an update event that will trigger afterward. I'll use that to capture removed items.

@@Luke

 

I can't even do that because the server does not trigger update events once the item is blocked. Can something be done to accommodate this? Thinking about it, the only solution is to allow the tag filter/change to trigger an update event before it is blocked. That'd be great. :)

Edited by Angelblue05
Link to comment
Share on other sites

I don't have a quick answer to this. My suggestion would be to do a full sync on UserPolicyUpdated.

Link to comment
Share on other sites

Angelblue05

I don't have a quick answer to this. My suggestion would be to do a full sync on UserPolicyUpdated.

Thanks for your reply, really appreciate it. I'd like to try to avoid doing full syncs, that's why they are only user triggered. Everything else is just reacting to events so to keep the process lightweight with regular daily usage.

Link to comment
Share on other sites

Ok, we can talk about a more robust solution but that's going to take time. Every-time parental control settings update, if we now have to start figuring out what items are newly visible or no longer visible, that is a lot of database querying and that's why it's not something i can just throw in quickly. And the other thing is the core server need to be aware of who needs the data. If nobody needs it, then we wouldn't want it doing the work.

  • Like 1
Link to comment
Share on other sites

Angelblue05

I don't have a quick answer to this. My suggestion would be to do a full sync on UserPolicyUpdated.

I spoke too soon. I can't use UserPolicyUpdated. It doesn't trigger upon content being blocked? Only if the user policy is updated directly, not useful to track new content added to library without any changes to the policy. Ah well. :/

Edited by Angelblue05
Link to comment
Share on other sites

 

 

not useful to track new content added to library without any changes to the policy

 

how could this happen?

Link to comment
Share on other sites

Angelblue05

how could this happen?

So I have the user profile setup to block content with tag block. I went through some titles and added the tag. The event is not triggering. Nothing happens in log. It only triggers if I, for example, delete the tag from the block policy. Edited by Angelblue05
Link to comment
Share on other sites

black0r

SO here are two logs - one with the elter master profil and fresh syncted libary- the other with the kids kinder profil / if i do a fresh sync on parents profile i have after thtat the same content in the kids profile till i sync the kids profile manual again - but that do not the trick - cause that would mean everytime i will sync under parents the movies to watch one - i must enter afterwards the kids profile and sync it again that my kids dont see the  other contend the other day ?

 

 

kids.log

elternprofil.log

  • Like 1
Link to comment
Share on other sites

So I have the user profile setup to block content with tag block. I went through some titles and added the tag. The event is not triggering. Nothing happens in log. It only triggers if I, for example, delete the tag from the block policy.

 

But the event for that item being updated is triggered, no?

Link to comment
Share on other sites

Angelblue05

But the event for that item being updated is triggered, no?

No. As soon as I add tag and hit save, no events are received, not even the new tag/save one.
Link to comment
Share on other sites

there should be an event about the item being updated. it could take up to a minute before it is sent out.

  • Like 1
Link to comment
Share on other sites

Angelblue05

there should be an event about the item being updated. it could take up to a minute before it is sent out.

No, it should be that way (that’s what I thought would also happen), but it didn’t happen. No update event triggered on the user account that has now the blocked content, I waited.

Link to comment
Share on other sites

Angelblue05

@@black0r

 

Can you try 4.0.27b and let me know if it works on the kids profile? You can sideload it or grab and install the zip.

sideload: https://github.com/MediaBrowser/plugin.video.emby/wiki/tips#sideload

or install zip: http://kodi.emby.media/Public%20testing/

 

It seems to try to remove a library but it's causing an error. So hopefully that is resolved.

 

However to your situation, you are supposed to you one kodi profile per Emby user. So you have one kodi profile for you and one kodi profile for kids.

 

@@sualfred can you explain this better than I can?

Edited by Angelblue05
Link to comment
Share on other sites

black0r

So what i have done:

 

1. Start Kodi installed new Plugin by zip

2. restart kodi

3. repair database kids profil

-> all looks good 60 Kids Movies

4. switch to master profil in kodi (analog it will connect master profile in emby)

-> i see 60 movies (like in kids profile)

5. repair database master profil

-> all looks good i see XXX Movies from master profile

6. switch back to kids profile

-> sadly i see and can start all movies like in the master profile - nothing changed

Link to comment
Share on other sites

Angelblue05

Can you try creating a new kodi profile and make sure everything is set to "Start fresh". What you are describing is not something the add-on would do. And I checked your logs, nothing after the profile switch so it's like they are looking at the same database somehow?

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