Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling master lock using direct paths causes content to disappear #169

Open
lhupitr opened this issue Dec 20, 2019 · 18 comments
Open

Enabling master lock using direct paths causes content to disappear #169

lhupitr opened this issue Dec 20, 2019 · 18 comments
Labels
bug Something isn't working

Comments

@lhupitr
Copy link

lhupitr commented Dec 20, 2019

Using Jellyfin for Kodi with direct paths, initial ingestion completes normally, content is available and can be played but if master lock is enabled in Kodi (even when choosing to not lock down anything) all content disappears. Normally, when using Kodi without Jellyfin, this wouldn't cause content to disappear.

  • OS: Linux OSMC
  • Jellyfin Version: 10.4.3
  • Kodi Version: 18.5
  • Addon Version: 0.40
@TrueTechy
Copy link
Contributor

I'm using Ubuntu 18 so there's a difference there but otherwise it's the same and the content does not disappear when enabling the master lock. Could you try disabling the lock and seeing if the content returns?

@lhupitr
Copy link
Author

lhupitr commented Dec 21, 2019

Yes, I should have mentioned, disabling the lock causes the content to return. The same thing also happens on an x86-64 pc with arch linux.

@TrueTechy
Copy link
Contributor

TrueTechy commented Dec 22, 2019

Seem this might be related to an issue with Kodi with how content is added by the addon, but this only seems to affect Native mode
https://forum.kodi.tv/showthread.php?tid=208996

@lhupitr
Copy link
Author

lhupitr commented Dec 22, 2019

Yes, this occurs in native (direct paths) mode, this does not happen when using the default playback mode

@TrueTechy
Copy link
Contributor

We'd need to dig into the differences between how the addon adds to Kodi in the different modes. Do you have a specific need for native mode just now?

@lhupitr
Copy link
Author

lhupitr commented Dec 23, 2019

Yes there are various kodi in play addons that I use.

@mcarlton00 mcarlton00 added the bug Something isn't working label Feb 29, 2020
@mcarlton00
Copy link
Member

We've received reports via Matrix that this is happening with multiple profiles in addon mode as well.

@MagnificentMagician
Copy link

MagnificentMagician commented May 17, 2021

Same issue here with addon-mode enabled. This bug really annoys me, as having a master lock is mandatory for enforcing age restrictions on movies. The system is an OSMC Vero 4K. I've deleted the .kodi folder, tried the stable OSMC Kodi Leia & beta OSMC Kodi Matrix. After setting a master lock the libraries are empty. There are approx. hundred lines logspam of the following after updating libraries in Jellyfin manually (with master lock enabled):

2021-05-17 19:31:13.090 T:2797     INFO <general>: JELLYFIN.helper.utils -> DEBUG::jellyfin_kodi/helper/utils.py:48 --[ window clear: Jellyfin.nodes.recentepisodes.path ]
2021-05-17 19:31:13.093 T:2797    DEBUG <CAddonSettings[plugin.video.jellyfin]>: trying to load setting definitions from old format...
2021-05-17 19:31:13.097 T:2797    DEBUG <CSettingsManager>: requested setting (LastIncrementalSync) was not found.
2021-05-17 19:31:13.097 T:2797    DEBUG <CSettingsManager>: requested setting (SyncInstallRunDone) was not found.
2021-05-17 19:31:13.097 T:2797    DEBUG <CSettingsManager>: requested setting (groupedSets) was not found.
2021-05-17 19:31:13.097 T:2797    DEBUG <CSettingsManager>: requested setting (platformDetected) was not found.

However, I was able to get a "fix" for this behaviour. The Jellyfin server is running in the same local network as the Kodi client. Using a mobile hotspot for my client solves the issue immediately.

@mcarlton00

@mcarlton00
Copy link
Member

Running Kodi from a mobile hotspot allowed you to enable a master lock and everything worked properly?

@MagnificentMagician
Copy link

Yesterday it did but today in a different network it was no longer working. However, when browsing the movie database with Kodi "master mode" enabled it did work in every network. Tested it multiple times. Looks like the Jellyfin for Kodi Addon writes the movies in a protected area, which is only available to users with "master mode" enabled, as far as I see it.

@Zelgadis87
Copy link

Can confirm that master lock causes issues even in addon mode on Kodi Matrix (not sure about other modes or versions).
Unfortunately there is no evidence of this in the logs, even when in Debug mode. Libraries were empty when synced to Kodi while using master lock (dynamic folders where working perfectly fine), I randomly tried to disable master lock after a few hours of tries, and now all issues are solved.
I can upload logs if needed but there is no error reported in there. Please let me know if I can be of help.

@mmBesar
Copy link

mmBesar commented Jun 29, 2022

I have the same problem!

@Coprocessor8087
Copy link

Coprocessor8087 commented Jul 2, 2022

I too confirm this issue in add-on mode. I'm on 19.4 running on a Nvidia Shield

@SteveMavic
Copy link

Same on Kodi 19.4.0 and Jellyfin 10.8.8

@matmielke
Copy link

Is there any solution planned or at least a workaround available?
I'd like to implement the following scenario:

  • One Kodi installation on SmartTV
  • One central Jellyfin installation with separate users (family and adults)
  • Kodi should have one profile for alle the movies (jellyfin's adult profile) with PIN protection and one family profile without PIN

As soon as I enable the PIN, the content disappears at the moment.

@samdoshi
Copy link

This works for me:

Add the following to sources.xml in //sources/video

    <source>
            <name>Jellyfin</name>
            <path pathversion="1">plugin://plugin.video.jellyfin/</path>
            <allowsharing>true</allowsharing>
    </source>

source

If you read through the whole thread it might give you other pointers too.

@matmielke
Copy link

Great, I gave it a quick try on a test installation and it did the job.
I just had to integrate that into the sources.xml of the respective profile and that's it.
Thank you very much!

@Hansie9999
Copy link

A workaround was found by a Kodi forum user a while back for me.
Kodi Forum
I opened a issue for a permanent fix on the Kodi Github
Github Kodi

I hope a more permanent fix can be implemented in a new update,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests