Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
Bump to 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
piplongrun authored Oct 18, 2017
1 parent 6360099 commit f50a83b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = '2.4'
VERSION = '2.5'
API_URL = 'https://api.tadata.me/imdb2ta/v2/?imdb_id=%s' # %s = imdb id

POST_URL = 'https://traileraddict.cache.tadata.me/ajax/film_popular.php'
Expand Down Expand Up @@ -66,11 +66,11 @@ def update(self, metadata, media, lang):
try:
json_obj = JSON.ObjectFromURL(API_URL % (metadata.id), sleep=2.0)
except:
Log("*** Failed retrieving data from %s ***" % (API_URL % (metadata.id)))
Log("*** Failed retrieving data from %s ***" % (API_URL % (metadata.id)))
return None

if 'error' in json_obj:
Log('*** An error occurred: %s ***' % (json_obj['error']))
Log("*** An error occurred: %s ***" % (json_obj['error']))
return None

ta_movie_id = json_obj['ta_id']
Expand All @@ -86,7 +86,7 @@ def update(self, metadata, media, lang):
try:
page = HTTP.Request(POST_URL, data=POST_BODY % (page, ta_movie_id), sleep=2.0).content # Only HTTP.Request supports a POST body
except:
Log("*** POST request failed ***")
Log("*** POST request failed; plugin version %s ***" % (VERSION))
break

html = HTML.ElementFromString(page)
Expand Down

0 comments on commit f50a83b

Please sign in to comment.