Git Product home page Git Product logo

Comments (26)

Hansie9999 avatar Hansie9999 commented on June 15, 2024

its probably not an error, but can a team member remove the "ignored rules" label, and please tell me what else they need :)

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Hi

I've been looking at profiles.
Can I just clarify the problem exactly - is it that you simply want to pin lock your profile??

Are you using local databases (default) or are you editing advancedsettings.xml to point to a remote MySQL database??

Which Jellyfin addon are you using (sorry I've never used it before) - it seems there are 2 - https://jellyfin.org/docs/general/clients/kodi/ - JellyCon and Jellyfin for Kodi??

Thanks

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

OK. I think i've reproduced.
Could you try this nexus test build and let me know if it works (ie. jellyfin media not missing after master lock set).
EDIT - just noticed you're not on windows so that build won't be helpful. I'll try and make a RP build.
Thanks

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Hi

I've been looking at profiles. Can I just clarify the problem exactly - is it that you simply want to pin lock your profile??

Are you using local databases (default) or are you editing advancedsettings.xml to point to a remote MySQL database??

Which Jellyfin addon are you using (sorry I've never used it before) - it seems there are 2 - https://jellyfin.org/docs/general/clients/kodi/ - JellyCon and Jellyfin for Kodi??

Thanks

Sorry for my late answer,

I am indeed on a RP4B running libreelec with kodi, I can pull out another SD card to test any build you want me to.

I use the jellyfin for Kodi addon for full functionality, (but problem has been reported for people using Plex and emby also that I know off)

The main issue is that I have multiple profiles (admin, me, wife, kid 1, kid2) I simply want to PIN lock only my account because if my kids use it by accident they screw up my current episodes that I am watching,
to be able to PIN lock my own account I must first add a master lock to the administrator user, but the moment I do that, ALL accounts loose access to ANY chares on the jellyfin server, until they also give the master lock PIN, so even when you select to NOT lock shares , they still get locked by the master PIN. and the workaround that was made for me fixed it. (that I linked on the other post)

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Sorry it took so long. I'm a complete linux novice.
I've followed the build instructions and hopefully this will work on a RP.
https://file.io/qLm7NZwjbGoc

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Sorry it took so long. I'm a complete linux novice. I've followed the build instructions and hopefully this will work on a RP. https://file.io/qLm7NZwjbGoc

Well I am the real novice here :(

Do I have to compile that BIN file in to an image ?

All the tools I know to use to write an SD card for the RaPi4 needs .img or .iso files :(

Im sorry, im kinda a real noob at all this, if I have to do something special with the .bin first please let me know, if I need to do it on linux thats fine, I have a few linux's running in VM's I can use, sorry I need some extra handholding :(

thanks in advance for the patience

Hans

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Looking at it I think you have to SSH into a LibreELEC RP.
What linux type do you have in a VM - I could try and build a version for that??

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

I should be able to SSH in my Pi running LibreElec, ill make a new SD card with Libreelec, to test,
any pointers in what commands I will need to use to get your .bin file than uploaded to the Kodi on my test SD card ??
(like I sayed im a total programming noob)

With the Linux meant that if I still need to do something with that .bin to get it on my SD card to boot my Pi I could do that in a VM running linux if there is no windows option, but I dont think you meant that (im not running Kodi on a linux)

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Apologies for the delay. I think i've managed to build LibreELEC for RP4 with the patch applied to kodi.
Link - https://file.io/pnw9IMvAxoXa

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Apologies for the delay. I think i've managed to build LibreELEC for RP4 with the patch applied to kodi. Link - https://file.io/pnw9IMvAxoXa

Thanks alot,

I will be trying it tonight, when my wife goes to bed and stops hogging MY tv :) :)

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Hello, wife had a late shift at work, so I was able to try already,

Sorry to report that this build does not fix the problem :(

I boot up, create the new User, install the Jellyfin addon, connect to the server, I get all my movies and series,
go to profile settings, enable lock for the user, it say's to be able to do that you must enable the master lock,
I enable the master lock, add a pin to my user account, log off, log back on , NO movies or series,
press on my movies/options, press "unlock sources" put in master PIN and movies and series are back :(
(but I have to do this everytime than, even on other users who do NOT have a PIN. so its still the same problem sadly,
this problem was fixed with the workaround I posted on the Kodi forum made by user izprtxqkft

Any more help would be appreciated,

Let me know if you need logs after I do specific things to check out for you,

thank you in advance,

Hans

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Can I just make sure that your lock preferences are the same as below - ie. profile lock but not video lock??
image

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Yes indeed, the only thing that is locked is the profile itself with a numeric password, nothing else gets touched.

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

and the problem ALSO exists with other profiles who do NOT have a lock of any kind (not even profile lock) the moment you enable the master lock on the master user, ALL profiles have this problem.

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

When you create a profile do you choose Separate or one of the Shares with Default options for hte bottom two - Media Info and Media Sources??
image

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Ah... I'm not sure i uploaded the right build of LibreELEC.
I've made another one - this one will output some stuff into the debug log as well - if it doesn't work could you share that.
Thanks
Link to new build - https://file.io/SepiWoyV6L3o

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

When you create a profile do you choose Separate or one of the Shares with Default options for hte bottom two - Media Info and Media Sources?? image

I use a seperate profile directory,

when creating the profile I tried one with both "keep media sources" and also one without (because for the working workaround I had to select KEEP media sources otherwise It would not work, but I tried both with your build.

I will try that new build you uploaded tonight and if it does not work ill upload the logs,

thanks for your time,

Hans

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Sadly I must report it still is not working :(

this is the log after creating the user , at this point everything still works fine (no master lock set yet) I created the user with the option to "keep media sources" because that was also a requirement for the workaround to work.
everything works

this is the log file after setting the master user lock, everything also still works but not logged out user.
Master lock set

this is the log after setting a nummeric password on the new user and rebooting it, now all media is gone :(
PIN set, rebooted, all media gone

I hope the logs help ,

thanks alot,

Hans

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Thanks.
OK, my code isn't being called at all.
My reproduction was in windows. I'll try and get LibreELEC in a VM and have another look.

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Thanks alot :)

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Thank you for your patience.
I've discovered that dropping local sources doesn't work in the LibreELEC build chain - it always re-downloads.
So both builds I gave you were vanilla LibreELEC with no patch - so unsuprisingly they didn't work!!
I've reproduced in a VM LibreELEC here and have figured out how to create a patch in the LibreELEC build chain so fingers crossed i'll have a new version for you to try soon.

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Third time lucky - https://file.io/j4nSOgqe6I7M

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Awesome, thanks,

I will try this later tonight when "she who shall not be mentioned" goes to bed and I get access to MY tv :) :)

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Success !! :)

This works, movies and series stay after I enable a PIN lock on the profile :) :)
thanks alot,

If you could get these changes in to the main code for the next Kodi build that would be awesome :)

Now I have another big ask for you, any chanse you could post me a "rough" step by step way on how to add your fix to a build to make myself (incase it takes a while before the fix is implementend in the next versions) so I can try to build it myself and dont have to bother you again for an update :)

I realy am a programming noob, but its something I do like to tinker with, but my skill is way to low now , but if you could get me started on what to do that would be awesome and very much appreciated.

Thanks again,

Hans

from xbmc.

78andyp avatar 78andyp commented on June 15, 2024

Horray!! Many thanks for confirming and sticking with it.

If you can build LibreELEC already then I think all I did was put this patch in the LibreELEC.tv\packages\mediacenter\kodi\patches folder and rebuild.

For building I'm pretty sure I just followed the instructions here - https://wiki.libreelec.tv/development/build-basics - to build but using the build command PROJECT=RPi ARCH=arm DEVICE=RPi4 make image from here - https://wiki.libreelec.tv/development/build-commands/build-commands-le-11.0.x

The output img is then in LibreELEC.tv\target

Patch - kodi-100.50-plugins.patch

Do let me know if that doesn't work any i'll try and reproduce it again from scratch here.

from xbmc.

Hansie9999 avatar Hansie9999 commented on June 15, 2024

Thanks alot, ill save your patch for later use and see if I can start building one myself :)

Thanks alot, and I do hope you can get this code in to the Kodi build for next versions, It will not just help me , but also people with Emby and Plex servers, I see people with this problem for years.

thanks alot,

Hans

from xbmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.