WIP Media importing and library integration (UPnP, Emby, Plex, ...)
(2020-01-30, 19:15)LongMan Wrote: @Montellese,

Some how I remember  a routine having a name similar to "PlayStrm". It doesn't seems to be there anymore. The references to strm below are the only ones I could find

https://github.com/MediaBrowser/plugin.v...ls.py#L170
https://github.com/MediaBrowser/plugin.v...ls.py#L203

Edit:  From an older version of the plugin

 def directPlay(self):

        try:
            playurl = self.item['MediaSources'][0]['Path']
        except (IndexError, KeyError):
            playurl = self.item['Path']

        if self.item.get('VideoType'):
            # Specific format modification
            if self.item['VideoType'] == "Dvd":
                playurl = "%s/VIDEO_TS/VIDEO_TS.IFO" % playurl
            elif self.item['VideoType'] == "BluRay":
                playurl = "%s/BDMV/index.bdmv" % playurl

        # Assign network protocol
        if playurl.startswith('\\\\'):
            playurl = playurl.replace("\\\\", "smb://")
            playurl = playurl.replace("\\", "/")

        if "apple.com" in playurl:
            USER_AGENT = "QuickTime/7.7.4"
            playurl += "?|User-Agent=%s" % USER_AGENT

        # Strm
        if playurl.endswith('.strm'):
            playurl = urllib.urlencode(playurl)

        return playurl
Ah that makes sense. It only works if you can use Direct Play on the STRM i.e. if Kodi has direct access to the STRM file (wherever it is stored). I can give that a try i.e. if Direct Play is enabled and Kodi can directly access the STRM it will use it directly. If Direct Play is disabled or Kodi can't directly access the STRM it will not be imported. Would that be acceptable?
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply


Messages In This Thread
Unexpected Behaviour - by LongMan - 2015-04-20, 23:53
RE: Media importing and library integration (UPnP, Emby, Plex, ...) - by Montellese - 2020-01-31, 12:09
20.2 Generic Builds - by LongMan - 2023-07-20, 04:49
Logout Mark Read Team Forum Stats Members Help
Media importing and library integration (UPnP, Emby, Plex, ...)10