Use json in flixter

This commit is contained in:
Ruud
2013-10-13 14:16:59 +02:00
parent 9bf01e3a0b
commit 3be6389fbf

View File

@@ -1,7 +1,6 @@
from couchpotato.core.helpers.variable import tryInt, splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.providers.automation.base import Automation
import json
log = CPLog(__name__)
@@ -40,7 +39,7 @@ class Flixster(Automation):
if not enablers[index]:
continue
data = json.loads(self.getHTMLData(self.url % user_id))
data = self.getJsonData(self.url % user_id)
for movie in data:
movies.append({'title': movie['movie']['title'], 'year': movie['movie']['year'] })