2009-08-10, 16:31
ultrabrutal Wrote:does it use file name for searching or what about the length of the subtitles? I often find that they don't match the video and is out of sync
it uses search by hash and by file name.
Zeljko
ultrabrutal Wrote:does it use file name for searching or what about the length of the subtitles? I often find that they don't match the video and is out of sync
nixa Wrote:Amet, your hard work is much appreciated.
Yeah, as you said, the script is not meant for internet streaming as Ive tested on my apple tv. However, I did some modification of your script and now its working for internet streaming as well.
For those who is interested, here is what you need to do. There are only 2 files you need to modify.
(1) default.py - you need to replace the "xbmc.Player().getPlayingFile()" with xbmc.getInfoLabel("listitem.filename")
(2) gui.py - you need to replace the "xbmc.Player().getPlayingFile()" with xbmc.getInfoLabel("listitem.filename")
and you're done. Remember to browse your downloaded subtitle in /Volumes/Applications and make sure you tick the "Search for subtitles in RAR" in the XBMC video settings.
Okay now, to start with, you can download my watchnewfilms video plugin. I updated the plugin to remove brackets & genres as these could 'disturb' the search-string.
p/s:but if you feel dont hv time to replace the strings, you can get the modified script on my googlecode pg. (OpenSubtitles_OSD).
Credit goes to developers of those 3 scripts and Amet.
Hope to hear feedbacks on any issue arises.
10:39:27 M: 22257664 NOTICE: -->Python Initialized<--
10:39:27 M: 22237184 NOTICE:
10:39:30 M: 17915904 NOTICE: Traceback (most recent call last):
10:39:30 M: 17915904 NOTICE: File "Q:\scripts\OpenSubtitles_OSD\default.py", line 68, in ?
10:39:30 M: 17915904 NOTICE:
10:39:30 M: 17915904 NOTICE: ui = gui.GUI( "script-%s-%s.xml" % ( __scriptname__.replace( " ", "_" ), window, ), os.getcwd(), (skin))
10:39:30 M: 17915904 NOTICE: TypeError
10:39:30 M: 17915904 NOTICE: :
10:39:30 M: 17915904 NOTICE: XML File for Window is missing
10:39:30 M: 17915904 NOTICE:
10:39:30 M: 17915904 ERROR: Scriptresult: Error
Meez Wrote:trying to get this to work with PMIII (SDTV) on xbox. i get this error,
Code:10:39:27 M: 22257664 NOTICE: -->Python Initialized<--
10:39:27 M: 22237184 NOTICE:
10:39:30 M: 17915904 NOTICE: Traceback (most recent call last):
10:39:30 M: 17915904 NOTICE: File "Q:\scripts\OpenSubtitles_OSD\default.py", line 68, in ?
10:39:30 M: 17915904 NOTICE:
10:39:30 M: 17915904 NOTICE: ui = gui.GUI( "script-%s-%s.xml" % ( __scriptname__.replace( " ", "_" ), window, ), os.getcwd(), (skin))
10:39:30 M: 17915904 NOTICE: TypeError
10:39:30 M: 17915904 NOTICE: :
10:39:30 M: 17915904 NOTICE: XML File for Window is missing
10:39:30 M: 17915904 NOTICE:
10:39:30 M: 17915904 ERROR: Scriptresult: Error
how do i get this to work on PMIII?
thanks!!
nixa Wrote:i use watchnewfilms. yeah, you could integrate if it doesnt break the local streaming.
if not, sorry for making trouble in your thread.
Batemann Wrote:Hi. This seems marvelous! Any possiblity that it can support Aeon as well?
16:24:04 M: 24195072 NOTICE: File "Q:\scripts\OpenSubtitles_OSD\default.py", line 70, in ?
16:24:04 M: 24195072 NOTICE:
16:24:04 M: 24195072 NOTICE: ui = gui.GUI( "script-%s-%s.xml" % ( __scriptname__.replace( " ", "_" ), window, ), os.getcwd(), (skin))
16:24:04 M: 24195072 NOTICE: TypeError
16:24:04 M: 24195072 NOTICE: :
16:24:04 M: 24195072 NOTICE: XML File for Window is missing
16:24:04 M: 24195072 NOTICE:
16:24:04 M: 24195072 ERROR: Scriptresult: Error
Meez Wrote:tested the latest version, 1.03 in PMIII. the OSD would not load. log they there was something wrong with Line 72 in the videoosd.xml. there was a typo which i fixed. it was, "<</visible>" instead of, "</visible>".
but the script still does not work in PMIII. i get the same error,
Code:16:24:04 M: 24195072 NOTICE: File "Q:\scripts\OpenSubtitles_OSD\default.py", line 70, in ?
16:24:04 M: 24195072 NOTICE:
16:24:04 M: 24195072 NOTICE: ui = gui.GUI( "script-%s-%s.xml" % ( __scriptname__.replace( " ", "_" ), window, ), os.getcwd(), (skin))
16:24:04 M: 24195072 NOTICE: TypeError
16:24:04 M: 24195072 NOTICE: :
16:24:04 M: 24195072 NOTICE: XML File for Window is missing
16:24:04 M: 24195072 NOTICE:
16:24:04 M: 24195072 ERROR: Scriptresult: Error
looks like PMIII is missing files,
script-OpenSubtitles-main.xml
script-OpenSubtitles-settings.xml
also, where exactly do i put this script. i put it in the XBMC/Scripts/ folder? is that what you mean by, "user's scripts folder" or somewhere else?
thanks!
Meez Wrote:quick question, where are the subtitles saved to?
i downloaded a sub and it said it downloaded and extract successfully, but the movie still had no subs to display.