2010-09-01, 19:05
I made another change to the script. I have another mediaplayer which needs the subtitle to be named same as the video, so I made adding language name to downloaded subtitle filenames optional.
If anyone is interested in trying it, here's the changes needed.
gui.py
At "Download Subtitles" and "Extract, Rename & Activate Subtitles", about rows 265 and 292
Change this:
To this:
settings.xml
Add new row to "<category label="30106">" section
strings.xml in english or language used
Add new row to "Script Settings" section
If Amet you can implement these to the script for future releases, that would be great.
If anyone is interested in trying it, here's the changes needed.
gui.py
At "Download Subtitles" and "Extract, Rename & Activate Subtitles", about rows 265 and 292
Change this:
Code:
file_name = "%s.%s%s" % ( sub_name, sub_lang, sub_ext )
Code:
if (__settings__.getSetting( "lang_to_end" ) == "true"):
file_name = "%s.%s%s" % ( sub_name, sub_lang, sub_ext )
else:
file_name = "%s%s" % ( sub_name, sub_ext )
settings.xml
Add new row to "<category label="30106">" section
Code:
<setting id="lang_to_end" type="bool" label="30121" default="true" />
strings.xml in english or language used
Add new row to "Script Settings" section
Code:
<string id="30121">- Add Language To Filename </string>
If Amet you can implement these to the script for future releases, that would be great.