From de4e57728ae63ad55f0adc64b84faced87e7bc9b Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 26 Jun 2011 08:50:09 +0530 Subject: [PATCH] very hackish code - padma poster frames show on tooltip --- get_padma.py | 5 +- index.html | 2 +- padmaData.js | 489 +++++++++++++++++++++++++++++++++++++++++++++++++++ radia.js | 17 +- 4 files changed, 509 insertions(+), 4 deletions(-) create mode 100644 padmaData.js diff --git a/get_padma.py b/get_padma.py index 5e421a3..6582987 100644 --- a/get_padma.py +++ b/get_padma.py @@ -3,13 +3,14 @@ from pyquery import PyQuery as pq def do(): data = json.loads(open("radia.json").read()) - outfile = "padma.json" + outfile = "padmaData.js" ret = {} for d in data: # print get_padma_ids(data[d]['link']) ret[d] = get_padma_ids(data[d]['link']) f = open(outfile, "w") - f.write(json.dumps(ret, indent=2)) + f.write("PADMA = " + json.dumps(ret, indent=2)) +# f.write(json.dumps(ret, indent=2)) f.close() print "generated padma.json from radia.json - currently returns empty if link points to a single video. this should be fixed soon" diff --git a/index.html b/index.html index 6947698..d3bf90a 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - +