Black09 / script.videolanguage

Video language script for audio & subtitle streams
GNU General Public License v2.0
7 stars 4 forks source link

This script is designed to use in the video info dialog and sets properties for all audio and subtitle languages of a video file.

Add this to DialogVideoInfo.xml

RunScript(script.videolanguage,movieid=$INFO[ListItem.DBID])

or run it in background by adding the following line to MyVideoNav.xml. If the script runs in background, you don't need to run it in DialogVideoInfo.xml.

RunScript(script.videolanguage,background=True)

The following properties are available Window(movieinformation).Property(AudioLanguage.%d) Window(movieinformation).Property(AudioCodec.%d) Window(movieinformation).Property(AudioChannels.%d) Window(movieinformation).Property(SubtitleLanguage.%d)

Force the content type by adding type=movie, type=episode or type=musicvideo