diff --git a/ytmnd.py b/ytmnd.py index a6d0134..bdfc69c 100755 --- a/ytmnd.py +++ b/ytmnd.py @@ -89,7 +89,8 @@ class YTMND: ytmnd_info = simplejson.load(urllib2.urlopen("http://" + domain + ".ytmnd.com/info/" + ytmnd_id + "/json")) if ytmnd.json: - ytmnd.write_json(ytmnd_info) + print simplejson.dumps(ytmnd_info, sort_keys=True, indent=4 * ' ') + # ytmnd.write_json(ytmnd_info) else: ytmnd.fetch_media(ytmnd_info) if not ytmnd.media_only: @@ -114,24 +115,30 @@ class YTMND: # print simplejson.dumps(ytmnd_info) domain = ytmnd_info['site']['domain'] bgcolor = ytmnd_info['site']['background']['color'] + title = ytmnd_info['site']['description'] fn = open(domain + ".html", 'w') - fn.write("") - fn.write("") - fn.write("") + fn.write("background-position: center center; background-repeat: no-repeat;}\n") + fn.write("\n") + fn.write("\n") if self.no_web_audio: fn.write("