net/cache readUrl->read_url / Unicode -> unicode=True
format replace all CammelCase with under_score
This commit is contained in:
parent
c1d0fc6242
commit
2de989e188
33 changed files with 243 additions and 254 deletions
|
|
@ -12,7 +12,7 @@ def getUrl(id):
|
|||
def getData(id):
|
||||
data = {}
|
||||
url = getUrl(id)
|
||||
details = cache.readUrl('%s?output=json' % url)
|
||||
details = cache.read_url('%s?output=json' % url)
|
||||
details = json.loads(details)
|
||||
for key in ('title', 'description', 'runtime'):
|
||||
data[key] = details['metadata'][key]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue