Browse Source
Merge pull request #7316 from clinton-hall/imdb-8
Add Imdb 8 digit
pull/7291/head
Ruud Burger
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
couchpotato/core/helpers/variable.py
-
couchpotato/core/plugins/userscript/template.js_tmpl
|
|
@ -194,7 +194,7 @@ def getImdb(txt, check_inside = False, multiple = False): |
|
|
|
output.close() |
|
|
|
|
|
|
|
try: |
|
|
|
ids = re.findall('(tt\d{4,7})', txt) |
|
|
|
ids = re.findall('(tt\d{4,8})', txt) |
|
|
|
|
|
|
|
if multiple: |
|
|
|
return removeDuplicate(['tt%07d' % tryInt(x[2:]) for x in ids]) if len(ids) > 0 else [] |
|
|
|
|
|
@ -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+'/')) |
|
|
|