Merge pull request #4549 from bromor/fix-tvheadend42-query-urls

Fix tvheadend42 query urls
This commit is contained in:
CvH 2020-10-24 18:02:44 +02:00 committed by GitHub
commit 93e40294ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 1 deletions

View File

@ -1,3 +1,6 @@
124
- fix query url for imdb.com and thetvdb.com
123
- Python3 ABI support

View File

@ -5,7 +5,7 @@ PKG_NAME="tvheadend42"
PKG_VERSION="5bdcfd8ac97b3337e1c7911ae24127df76fa693a"
PKG_SHA256="b562a26248cdc02dc94cc62038deea172668fa4c079b2ea4e1b4220f3b1d34f5"
PKG_VERSION_NUMBER="4.2.8-36"
PKG_REV="123"
PKG_REV="124"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.tvheadend.org"

View File

@ -0,0 +1,42 @@
Fix query urls for imdb.com and thetvdb.com
Based on tvheadend master branch
https://github.com/tvheadend/tvheadend/commit/d8a31e57a492be6628b685488fcc7f1d9d262679
https://github.com/tvheadend/tvheadend/commit/ce09077056f9c6558c188d135cec3be85cc9c200
--- a/src/webui/static/app/epg.js
+++ b/src/webui/static/app/epg.js
@@ -287,13 +287,11 @@ tvheadend.epgDetails = function(event) {
win.show();
function searchIMDB() {
- window.open('http://akas.imdb.com/find?q=' +
- encodeURIComponent(event.title), '_blank');
+ window.open('https://www.imdb.com/find?q=' + encodeURIComponent(event.title), '_blank');
}
function searchTheTVDB(){
- window.open('http://thetvdb.com/?string='+
- encodeURIComponent(event.title)+'&searchseriesid=&tab=listseries&function=Search','_blank');
+ window.open('https://www.thetvdb.com/search?query=' + encodeURIComponent(event.title), '_blank');
}
function playProgram() {
--- a/src/webui/static/app/dvr.js
+++ b/src/webui/static/app/dvr.js
@@ -87,13 +87,11 @@ tvheadend.dvrDetails = function(uuid) {
}));
function searchIMDB() {
- window.open('http://akas.imdb.com/find?q=' +
- encodeURIComponent(title), '_blank');
+ window.open('https://www.imdb.com/find?q=' + encodeURIComponent(title), '_blank');
}
function searchTheTVDB(){
- window.open('http://thetvdb.com/?string='+
- encodeURIComponent(title)+'&searchseriesid=&tab=listseries&function=Search','_blank');
+ window.open('https://www.thetvdb.com/search?query=' + encodeURIComponent(title),'_blank');
}
var win = new Ext.Window({