Browse Source

add 8 digit imdb

pull/7316/head
Clinton Hall 5 years ago
committed by GitHub
parent
commit
1945b075d2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      couchpotato/core/plugins/userscript/template.js_tmpl

2
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+'/'))

Loading…
Cancel
Save