From f94a8c6bf019aa770fa342319794c98735d0eecf Mon Sep 17 00:00:00 2001 From: "M. Voerman" Date: Mon, 12 May 2014 12:36:58 +0200 Subject: In settings menu you can dynamic chose the subtitle language, if the channel provide more subtitles. (eg TV5 europe from france) --- index.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index fa4d7d5..80625a4 100644 --- a/index.html +++ b/index.html @@ -209,7 +209,7 @@ function GetSettings() { is = toi.informationService; - is.setObject("cfg.media.subtitling.languagepriority",subs_prio,is.STORAGE_VOLATILE); + is.setObject("cfg.media.subtitling.languagepriority",subs_prio,is.STORAGE_PERMANENT); // set default subtitle language to @@ -555,6 +555,7 @@ for(x=0; x 0) { + is.setObject("cfg.media.subtitling.languagepriority",subs_prio_dyn[subs_dyn],is.STORAGE_PERMANENT); + } else { + is.setObject("cfg.media.subtitling.languagepriority",subs_prio,is.STORAGE_PERMANENT); + } + InitMenu(menu); break; } @@ -2534,7 +2542,12 @@ if(menu == 6) { // Main Menu when watching recording if(menu == 1) { // settings menu var htmltext = "

" + Lang[10] + "

   1 - ";
 	if (ShowSubs) { htmltext += "\uE017"; } else { htmltext += "\uE016"; }
-	htmltext += Lang[20] + "\n   2 - \uE003" + Lang[22] + (toi.informationService.getObject("cfg.media.subtitling.modepriority")) + "\n   3 - \uE003" + Lang[24] + (toi.informationService.getObject("cfg.media.audio.languagepriority")) + "\n   4 - " + Lang[82] + "\n   5 - VDR : " + server_ip + "\n   6 - ";
+	htmltext += Lang[20] + " \u25CF ";
+	if (subs_prio_dyn.length > 0) { htmltext += "(" + (subs_dyn + 1 ) + "/" + subs_prio_dyn.length + ") "; }
+	htmltext += (toi.informationService.getObject("cfg.media.subtitling.languagepriority"));
+	htmltext += "\n   2 - \uE003" + Lang[22] + (toi.informationService.getObject("cfg.media.subtitling.modepriority"));
+	htmltext += "\n   3 - \uE003" + Lang[24] + (toi.informationService.getObject("cfg.media.audio.languagepriority")); 
+	htmltext += "\n   4 - " + Lang[82] + "\n   5 - VDR : " + server_ip + "\n   6 - ";
 	if (showClock) { htmltext += "\uE017"; } else { htmltext += "\uE016"; }
 	htmltext += Lang[25] + "\n   7 - ";
 	if (ShowProtectedChannels) { htmltext += "\uE017"; } else { htmltext += "\uE016"; }
@@ -3011,7 +3024,7 @@ function MPD(ev) {
 if (MPDListener == 0) {
 	if (ev.state == 6 ) { 
 		showDisplay("ERRR", false, 100, 0 ); 
-		    settimer(0,Lang[67],0,2);
+		settimer(0,Lang[67],0,2);
 		}
 	
 } else {
-- 
cgit v1.2.3