2020-01-31, 12:09
(2020-01-30, 19:15)LongMan Wrote: @Montellese,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?
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