I think I solved the Emby and Kodi Master Lock issue. At least, it has worked for me since June 28, 2015 with no apparent negative impacts.
CAUTION/DISCLAIMER: This worked for me on a networked dual server source/multiple client setting. I cannot guarantee it will work for your specific set up.
Here is a step-by-step of what I did, and some tips and pointers I learned; I am doing it from memory a week after the fact, so I hope I didn't forget anything. Please feel free to shoot anything down if you wish. My whole reason for doing this was to have multiple profiles that were protected by passwords (one for the master user, one for parents) and multiple profiles without protection, but restricted in Emby, for the kids
- Set up your first profile in Kodi, including your skin settings. This will be the master user profile.
- Install the Emby plug-in and restart Kodi, and then scan your library
- Exit the program once the scan is done.
- Do NOT enable Masterlock yet!
- Create the other profiles you want, but for each one, choose the media info to be separate and the sources to be the same. When I kept the media info the same, the child profile I created for my son could see the poster for each movie, but not play them. I wanted the posters to be out of the way altogether.
- You may want to set all of your settings before cloning your profiles. I did not and it was painful later on because I was adding and removing the same sources over and over to create the menus the way I wanted.
- Let Emby scan the library for each user
- Exit the program.
- Install a dummy sources.xml file in the master user folder. Here's the file I used:
<sources> <programs> <default pathversion="1"></default> </programs> <video> <default pathversion="1"></default> <source> <name>dummy one</name> <path pathversion="1">smb://kore/dummy new/</path> <allowsharing>true</allowsharing> </source> <source> <name>dummy two</name> <path pathversion="1">smb://kore/dummy viewed/</path> <allowsharing>true</allowsharing> </source> </video> <music> <default pathversion="1"></default> </music> <pictures> <default pathversion="1"></default> </pictures> <files> <default pathversion="1"></default> </files> </sources>
Here is the most important part of the sources file that worked for me: I needed two dummy sources. Each time I used only one, it never worked. Don't ask me why, I do not know.
- You do not need to have any real paths in the file. If you do, Kodi will actually scan those paths and if your skin shows library totals, it will be off because of double-counted movies.
- Create symbolic links to the file for the other profile folders, or create copies. Either way works.
- Start Kodi and log in as the Master User
- Enable the Master Lock
- Exit the program
- Log in as another user and you should be able to see your movies. All Emby movies will be under the "Movies" section of your skin, and not under Videos.
- You can set lock codes for other users as well, or leave them blank.
- Hints and tips: If I had to do it all over again, I would set all settings first and then clone the profiles. Before cloning, I would remove “videos” from the shortcuts, and the ability to add sources:
- I also removed the parent folder visibility because clicking on that in the skin would kick me right out of my customized menu and into the "Video" part of Kodi. It's also a good idea to add sources to various movie collections (if needed) for all your movies at once, and then clone. The reason for this is that it is easier to add everything and remove them from the custom skin shortcuts for your cloned profiles (one action, "delete") than to add a new shortcut ("add a button", "choose a shortcut", "browse to source", "add source"). Here's what mine looks like:
I hope that helps some other users out there. As a Dad, it's important for me to keep the parent movies away from my kids, and I like to have two separate locked accounts so one can act like the admin. If you have any questions, let me know. I can't promise a quick response, but I'll try.
Edited by tired dad, 13 July 2015 - 09:57 PM.