From 1945b075d27d8ceff54012c2d5cd2bfb093e7205 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Wed, 29 Jan 2020 12:49:10 +1300 Subject: [PATCH] add 8 digit imdb --- couchpotato/core/plugins/userscript/template.js_tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/userscript/template.js_tmpl b/couchpotato/core/plugins/userscript/template.js_tmpl index 25e1842..8023b18 100644 --- a/couchpotato/core/plugins/userscript/template.js_tmpl +++ b/couchpotato/core/plugins/userscript/template.js_tmpl @@ -100,7 +100,7 @@ var osd = function(){ // Try and get imdb url try { - var regex = new RegExp(/tt(\d{7})/); + var regex = new RegExp(/tt(\d{8})/); var imdb_id = document.body.innerHTML.match(regex)[0]; if (imdb_id) iframe.setAttribute('src', createApiUrl('http://imdb.com/title/'+imdb_id+'/'))