2010-10-07, 21:50
kispaljr Wrote:Code:def search_subtitles( file_original_path, title, tvshow, year, season, episode, set_temp, rar, lang1, lang2, lang3 )
all these are documented in gui.py, script gets those from xbmc
kispaljr Wrote:Code:def download_subtitles (subtitles_list, pos, zip_subs, tmp_sub_dir, sub_folder, session_id)
subtitles_list = list of subtitles that was returned from "search_subtitles"
pos = subtitle user selected in list
zip_subs = "special://temp/sub_tmp/zipsubs.zip" , temporary download location
tmp_sub_dir = "special://temp/sub_tmp" , temporary extraction location
sub_folder = location where the subs will be saved, movie folder or custom location(if you cant save to samba drive)
session_id = some services need this to be able to download, it is returned from "search_subtitles"
kispaljr Wrote:and having trouble with eg. saving the subtitle next to the movie if it's on a samba drive.
you shouldnt need to worry about it, your service would download it to temp location and main script would take over, unpack,rename and move to the desired location.