Plex client for Zidoo devices - ZidooPlexMod

Discussion in 'Plex for Zidoo' started by bowlingbeeg, Dec 31, 2023.

Tags:
  1. bowlingbeeg

    bowlingbeeg Active Member

    Path mapping was added to the upstream PM4K code base the ZidooPlexMod is based on. I added support to PlexToZidoo to take the already substituted path directly from ZidooPlexMod in case someone decided they wanted to use it. But PlexToZidoo is still needed because Kodi doesn't support passing the correct parameters on the intent that the Zidoo player needs. I wish they did and I'm hoping at some point they do, then we could get rid of PlexToZidoo all together. But at this point it's still required even if you do the path mapping in Kodi. And no PlexToZidoo does not manipulate the path mapping .xml in ZidooPlexMod. If you use path mapping in ZidooPlexMod it passes the smb path directly to PlexToZidoo which then turns around and directly calls the zidoo player with that path. If ZidooPlexMod isn't using the path mapping then the HTTPS stream is passed to PlexToZidoo which then searches for a substitution from it's own data.
     
  2. Creator44

    Creator44 Member

    So, the Path Mapping option in ZidooPlexMod is intelligent enough to get the correct smb path from the https path even if I never entered a "Path to replace" and "replace with" anywhere in ZidooPlexMod? How?
     
  3. bowlingbeeg

    bowlingbeeg Active Member

    No, you have to fill out the path mapping stuff in Kodi. Which is the same thing as the substitution stuff in PlexToZidoo.
     
  4. Creator44

    Creator44 Member

    I checked again and I don't see anywhere where I can specify the paths in Kodi. From the description of the "Enable Path Mapping" option it seems like you need to manually change an xml file in the addon_data directory of the addon but I don't seem to have access to that directory on the nVidia Shield Pro while using PM4K nor can I access the directories on the Z9X Pro so I don't see how I can change that file and use that? I checked in the addon settings in Kodi too and I also don't see anywhere where I can specify a Path, just a "Verify map file exists" or something like that?
     
  5. bowlingbeeg

    bowlingbeeg Active Member

    First of all you can keep using PlexToZidoo to do the path substitution like you always have, you don't need to use the feature in ZidooPlexMod. If you do really want to switch you can either edit the json file manually or you can do it through the gui. You first need to add your smb path to the Kodi sources(that's outside of the ZidooPlexMod app). That needs to be done no matter if you're manually editing the json file or if you're going to use the gui. Then if you use the gui you can hit the menu button on a given library and then select the path to the source files for that library. If you want to manually create the json file it's available at this path on the Zidoo, /Storage/Android/data/com.zidoo.zdmc/files/.kodi/userdata/addon_data/script.zidooplexmod/path_mapping.json. If you've turned on samba on your zidoo it's really easy to access from any computer. The json will have the "Replaced with" portion first followed by the "Part of the path to replace" second. So like I said, it's the same information. Just remember it must be in proper json format and must include the server name. See the example json file in /Storage/Android/data/com.zidoo.zdmc/files/.kodi/addons/script.zidooplexmod/path_mapping.example.json
     
  6. Creator44

    Creator44 Member

    Ahhhhh so that’s the list of paths I was seeing when I press menu on a library icon … the thing is though, I don’t know where kodi got all these paths since I only entered 1 root path for all my libraries once in file source in kodi on the shield and not at all in zdmc and some of my librairies have lots of paths for 1 library so it seems something gets auto detected somehow? I’ll check more tomorrow. Thanks for all the explanation and for the addons!
     
  7. bowlingbeeg

    bowlingbeeg Active Member

    Those paths that are listed are the paths that you have entered into your Plex Server for that library.
     
    Creator44 likes this.
  8. wangguosu

    wangguosu New Member

    Exit playback every time error:failed start zidoo player
     
    Creator44 likes this.
  9. Creator44

    Creator44 Member

    I also have that message popup and it auto goes away.
     
  10. karmu

    karmu Member

    Nice work, this update.
    But still one question:
    How do I unhide libraries, that I've hidden?
    I didn't find an option for that.
     
  11. bowlingbeeg

    bowlingbeeg Active Member

    Does it auto close? If not are you on the latest PlexToZidoo and ZidooPlexMod?

    That message will always show after ending a movie/show because of how the windowing in Kodi works but if you've watched the show for long enough(more than 30 seconds) then it should auto close.
     
  12. bowlingbeeg

    bowlingbeeg Active Member

    Select the "Home" icon and then click the menu key and you can unhide libraries
     
    Creator44 likes this.
  13. karmu

    karmu Member

    Ah, thanks
     
  14. Faceman2k24

    Faceman2k24 Active Member

    Anyone else not able to stop playback at all in Plex now? you cant exit the player and it just loops and starts playing again.
    I have an app switcher set up so I can kill the app and gallery (player) to get back and start over, but if you didn't have that you are stuck in a loop and only a reboot will solve it.
    Playing the files directly within ZDMC seems to work.

    Z2600 1.0.85, ZDMC 20.2, plugins all up to date as far as I can tell.
     
  15. bowlingbeeg

    bowlingbeeg Active Member

    Do you have the latest 2.7 version of PlexToZidoo?
     
  16. Faceman2k24

    Faceman2k24 Active Member

    That's the only thing I haven't checked, I'll have a look at which one I'm on when I get home from work. maybe I never installed the update.
     
  17. Tim Briggs

    Tim Briggs New Member

    Hi all. Everything is installed and up to date. Seems the linking as worked ok but keep getting a message saying player failed. Can anyone help?
     

    Attached Files:

  18. bowlingbeeg

    bowlingbeeg Active Member

    The thing most people get wrong is knowing what the actual path is that's is shared over SMB. Can you navigate to the file and play it through the media center app? That should help you figure out what the actual SMB path should look like after the path substitution.
     
  19. Creator44

    Creator44 Member

    @bowlingbeeg ,
    I was wondering, how come when I use ZidooPlexMod and say resume video the zidoo internal player does not ask to resume to his own internal resume point?

    My guess is your PlexToZidoo app gets not only the http path from ZidooPlexMod but also the resume time and you somehow pass enough parameters to the Zidoo internal player that it does not need to pop up the resume question a second time and uses the correct resume point returned by the plex server?

    Am I right?
     
  20. bowlingbeeg

    bowlingbeeg Active Member

    Yes, you are correct. The resume point is pulled from plex and passed to the internal player so it doesn't need to pop up the window.
     
    Creator44 likes this.

Share This Page