From 337150de2b97486a0d4ea2b7c3881fde0b75a0fd Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 6 Oct 2018 19:20:27 +0200 Subject: [PATCH] webui: add CSFD (http://csfd.cz) to query list --- src/webui/static/app/epg.js | 22 ++++++++++++++-------- src/webui/static/icons/csfd.png | Bin 0 -> 664 bytes 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 src/webui/static/icons/csfd.png diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 51cc3a975..5c8e60187 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -89,17 +89,22 @@ tvheadend.durationLookupRange = function(value) { }; tvheadend.seachTitleWeb = function(index, title){ + var url = ''; switch(index){ case 1: - window.open('http://akas.imdb.com/find?q=' + encodeURIComponent(title), '_blank'); + url = 'http://akas.imdb.com/find?q=' + encodeURIComponent(title); break; case 2: - window.open('https://www.thetvdb.com/search?q='+ encodeURIComponent(title)+'&l=en','_blank'); + url = 'https://www.thetvdb.com/search?q='+ encodeURIComponent(title)+'&l=en'; break; case 3: - window.open(tvheadend.filmAffinityLanguage() + encodeURIComponent(title), '_blank'); + url = tvheadend.filmAffinityLanguage() + encodeURIComponent(title); + break; + case 4: + url = 'https://www.csfd.cz/hledat/?q=' + encodeURIComponent(title); break; } + if (url) window.open(url, '_blank'); }; tvheadend.filmAffinityLanguage = function() { @@ -238,9 +243,10 @@ tvheadend.epgDetails = function(grid, index) { var comboGetInfo = new Ext.form.ComboBox({ store: new Ext.data.ArrayStore({ data: [ - [1, 'Find info from IMDB', 'imdb.png'], - [2, 'Find info from TheTVDB', 'thetvdb.png'], - [3, 'Find info from FilmAffinity', 'filmaffinity.png'], + [1, 'Query IMDB', 'imdb.png'], + [2, 'Query TheTVDB', 'thetvdb.png'], + [3, 'Query FilmAffinity', 'filmaffinity.png'], + [4, 'Query CSFD', 'csfd.png'], ], id: 0, fields: ['value', 'text', 'url'] @@ -271,7 +277,7 @@ tvheadend.epgDetails = function(grid, index) { handler: playProgram, iconCls: 'control_play', tooltip: _('Play this program'), - text: _("Play program") + text: _("Play") })); if (tvheadend.accessUpdate.dvr) { @@ -331,7 +337,7 @@ tvheadend.epgDetails = function(grid, index) { handler: recordEvent, iconCls: 'rec', tooltip: _('Record this program now'), - text: _('Record program') + text: _('Record') })); } buttons.push(new Ext.Button({ diff --git a/src/webui/static/icons/csfd.png b/src/webui/static/icons/csfd.png new file mode 100644 index 0000000000000000000000000000000000000000..2308a8e356f657922e5529e4ec3b440920b6a494 GIT binary patch literal 664 zc-jG&0%!e+P)45e8q~7&ZU^0wqaA zK~y-)m6P8~lTjGQKj*yft831wIGn2$Wo;GB#0V;)X*Yu11(i3}o%=WHVnKFM5T#v} zh!H_uWnBy;qyoW0g%uPFK_|a z$L?Yt_|ReHRz(5+1T^t~F%7gz;Cv};TRChi_fM)sKM1r-V6USp#nIlooO(Tsw#NlZ zl^@`ABEgAA{o5u%z0_UVc|4H_t^@ly5|4urW!WqIexzYwPW?czrRhc3rs{BrwXreQ z#>YwCx`|%lLi2dYt*oGwMc`T&zvt#L8X6GV7AlL?TLikh3C4Pue>y--ODpXQX)Z1; z5*c`clseVT&4haIusQqFsjBP=b!}17&tG89q&OKLLa(g_pwi!nvMr>`g*o{hb28~L zP6d_z081ky*k%R+%=YyIU?!7%>4~9GLsZn)lV4w_t}V*)yHSKD3kHDZ^^*DejforA z%Q67yUN52Bam-W-W!nf{cM^z%W^@8?x5rm%#?JXw3fs;*y0R>UrU6`*z(-(8YR2DT y03j&V3-B~BDhlgd14Mz~E;n%wc;8{=R{j8d%*o7+1s4JU0000