PlexKodiConnect icon indicating copy to clipboard operation
PlexKodiConnect copied to clipboard

Kodi 19.2 master lock activated: libraries become empty

Open BartOon opened this issue 4 years ago • 6 comments

Help yourself

Describe the bug

When I enable masterlock passcode, libraries become empty. If it's not set with the fresh install, or if I disable and disconnect and reconnect, libraries are ok image

To Reproduce

Steps to reproduce the behavior:

  1. Go to Movie or TV show and see everything good
  2. Go to in wheel > Profiles > Profiles > Master user > Lock Preferences > Master lock > Numeric password, I set one and I let all lock options by default
  3. Go to Movie or TV show and see all empty
  4. Go to in wheel > Profiles > Profiles > Master user > Lock Preferences > Master lock > disable
  5. Disconnect and reconnect as master user
  6. Go back to Movie or TV show and see back to normal

Expected behavior

Able to set an numeric masterlock and see libraries as normal

You need to attach a KODI LOG FILE!

A Kodi debug log file is needed that you recorded while you reproduced the bug. Do clean your log of all Plex tokens (="Plex passwords")!!! .

  1. Activate Kodi's debug logging by going to the Kodi Settings -> System -> Logging. Then toggle the Enable debug logging setting.
  2. Restart Kodi to start with a "fresh" log file.
  3. Reproduce the bug.
  4. Follow the Kodi instructions to grab/share the Kodi log file. Usually only kodi.log is needed
  5. Delete all references to any of your Plex tokens by searching for X-Plex-Token and accesstoken and replacing the strings just after that!
    • It's easiest if you copy your token, then use Search&Replace for the entire log file
    • You don't want others to have access to your Plex installation....
  6. Drop your log file here in this issue. Or use a free pasting-service like https://pastebin.com and include the link to it here kodi.log I am aware that I can delete Plex tokens that I accidentiall

y posted by following the instructions on the PKC wiki

BartOon avatar Nov 22 '21 06:11 BartOon

This is so wierd! My homescreen works: image But then navigating into Movies, nothing shows up: image

croneter avatar Nov 25 '21 07:11 croneter

Seems like they changed something on the Kodi side 😢 . The issue originally persisted for PKC/Emby direct paths, see e.g. https://emby.media/community/index.php?/topic/23065-how-i-solved-the-emby-and-kodi-master-lock-issue/. A hack was discovered to solve it: adding 2 dummy-sources to sources.xml. PKC does this automatically for you. It was not necessary for add-on paths.

Now, PKC add-on paths won't work with master lock anymore - they used to work just fine. I tried messing with the sources.xml to also cover PKC's add-on paths plugin://, but whatever I tried, it did not work. Seems like Master Lock is broken for add-on paths. You would need to use direct paths to fix this.

Example sources.xml that I tried:

<sources>
  <video>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">smb://</path>
      <allowsharing>true</allowsharing>
    </source>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">nfs://</path>
      <allowsharing>true</allowsharing>
    </source>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">http://</path>
      <allowsharing>true</allowsharing>
    </source>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">http://</path>
      <allowsharing>true</allowsharing>
    </source>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">smb://</path>
      <allowsharing>true</allowsharing>
    </source>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">nfs://</path>
      <allowsharing>true</allowsharing>
    </source>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">plugin://</path>
      <allowsharing>true</allowsharing>
    </source>
    <source>
      <name>PlexKodiConnect Masterlock Hack</name>
      <path pathversion="1">plugin://</path>
      <allowsharing>true</allowsharing>
    </source>
  </video>
</sources>

croneter avatar Nov 25 '21 08:11 croneter

I personally revert Kodi to 19.1, everything is fine

BartOon avatar Dec 01 '21 00:12 BartOon

Could you be so kind and open a new issue with the Kodi team here: https://github.com/xbmc/xbmc/issues Thx!

croneter avatar Dec 01 '21 06:12 croneter

done; https://github.com/xbmc/xbmc/issues/20630

BartOon avatar Dec 05 '21 01:12 BartOon

This Kodi-PR will fix your issue: https://github.com/xbmc/xbmc/pull/20692

Fingers crossed that it gets merged quickly.

croneter avatar Dec 17 '21 07:12 croneter