Made code more python-y per mano3ms recommendation.
This commit is contained in:
@@ -19,15 +19,11 @@ class Rottentomatoes(Automation, RSS):
|
|||||||
movies = []
|
movies = []
|
||||||
|
|
||||||
rotten_tomatoes_namespace = 'http://www.rottentomatoes.com/xmlns/rtmovie/'
|
rotten_tomatoes_namespace = 'http://www.rottentomatoes.com/xmlns/rtmovie/'
|
||||||
enablers = [tryInt(x) for x in splitString(self.conf('automation_urls_use'))]
|
urls = dict(zip(splitString(self.conf('automation_urls')), [tryInt(x) for x in splitString(self.conf('automation_urls_use'))]))
|
||||||
urls = splitString(self.conf('automation_urls'))
|
|
||||||
|
|
||||||
index = -1
|
|
||||||
|
|
||||||
for url in urls:
|
for url in urls:
|
||||||
|
|
||||||
index += 1
|
if not urls[url]:
|
||||||
if not enablers[index]:
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
rss_movies = self.getRSSData(url)
|
rss_movies = self.getRSSData(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user