From 9464cd0b11781ae2401436a98c8d4d9d812d6670 Mon Sep 17 00:00:00 2001 From: ebewo Date: Thu, 27 Aug 2015 02:23:24 +0100 Subject: [PATCH] Update imdb.py Added charts dictionary to IMDBAutomation class to fix charts instance error. --- .../core/media/movie/providers/automation/imdb.py | 26 +++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/media/movie/providers/automation/imdb.py b/couchpotato/core/media/movie/providers/automation/imdb.py index b84949f..a396aba 100644 --- a/couchpotato/core/media/movie/providers/automation/imdb.py +++ b/couchpotato/core/media/movie/providers/automation/imdb.py @@ -125,7 +125,31 @@ class IMDBWatchlist(IMDBBase): class IMDBAutomation(IMDBBase): enabled_option = 'automation_providers_enabled' - + + charts = { + 'theater': { + 'order': 1, + 'name': 'IMDB - Movies in Theaters', + 'url': 'http://www.imdb.com/movies-in-theaters/', + }, + 'boxoffice': { + 'order': 2, + 'name': 'IMDB - Box Office', + 'url': 'http://www.imdb.com/boxoffice/', + }, + 'rentals': { + 'order': 3, + 'name': 'IMDB - Top DVD rentals', + 'url': 'http://www.imdb.com/boxoffice/rentals', + 'type': 'json', + }, + 'top250': { + 'order': 4, + 'name': 'IMDB - Top 250 Movies', + 'url': 'http://www.imdb.com/chart/top', + }, + } + def getIMDBids(self): movies = []