2016-09-18, 19:39
You can't attach your log !!
Put it on xbmclogs.com or pastebin and post a link to it here.
Put it on xbmclogs.com or pastebin and post a link to it here.
(2016-09-19, 09:58)Wimpie Wrote: jpil,
It doesn't work because I didn't explain the script enough. I assumed it would be obvious.
The last iso_f line contains the full path to the iso
In this line (resss = URL_Escape_Playlist(iso_f, "00032")) you need to replace 00032 with the correct .mpls number
Try it again, and if it doesn't work this time, make a also debug log while you are directly playing a bluray iso (NOT using the .strm file).
(2016-09-20, 01:37)jpil Wrote: debug log
here is my debug log
import os, sys, re, urllib.parse
# test, use python 3.x
iso_f = r'\\MEDIA_SERVER_1\BluRay_TV_Shows\Firefly\.BIUfiles\Firefly.s01e01.s01e02.s01e03.s01e04.BluRay.iso'
iso_f = r'smb://tower/movies/bluray/hail, caesar!/Hail, Caesar!.iso'
# test
# URL escape the filename so that it works with xbmc.player.play
# Needs following format: bluray://[udf://[path to iso]/]/BDMV/PLAYLIST/12345.mpls
# with [path to iso] eg: 'M:/testdir/test_movie.bluray.iso'
# and 12345 the playlist number to play. Playlist number needs to be 5 digits.
def URL_Escape_Playlist(iso_filename, play_stream):
result_str = urllib.parse.quote(iso_filename, safe='()!')
result_str = 'udf://' + result_str + '/'
result_str = urllib.parse.quote(result_str, safe='()!')
result_str = 'bluray://' + result_str + '/BDMV/PLAYLIST/' + play_stream + '.mpls'
return result_str
resss = URL_Escape_Playlist(iso_f, "00800")
print(resss)
(2016-09-20, 12:37)Wimpie Wrote: PS: I don' really get why you use smb: in the iso path. Did you map the NAS drive to a windows drive letter?
(2016-09-20, 12:37)Wimpie Wrote: try another thing:
Copy an bluray iso file to a local drive (on your windows pc).
Name this bluray iso file."movie.iso".
Play this "movie.iso" with Kodi (video/files/...)(you probably need to adjust sources to that dir before you can do that), and then see in the debug log what 'bluray://...." it used
In the same dir as this movie.iso, make a "strm_movie.strm" and put this "bluray://...." line inside it
Test if it plays, and I really hope it does because my ideas are running dry...
PS: I don' really get why you use smb: in the iso path. Did you map the NAS drive to a windows drive letter?