]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: add CSFD (http://csfd.cz) to query list
authorJaroslav Kysela <perex@perex.cz>
Sat, 6 Oct 2018 17:20:27 +0000 (19:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 6 Oct 2018 17:21:07 +0000 (19:21 +0200)
src/webui/static/app/epg.js
src/webui/static/icons/csfd.png [new file with mode: 0644]

index 51cc3a975aa0909a4e3073051b8fc3950a3e22c0..5c8e60187f27e3f9e3fa9c4effb2cca79bb5204b 100644 (file)
@@ -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 (file)
index 0000000..2308a8e
Binary files /dev/null and b/src/webui/static/icons/csfd.png differ