From 16be8f34101ac56dfa495fe500d0a11b1c3bc6ab Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 9 Jul 2015 13:08:06 -0400 Subject: [PATCH] print zoom text --- ytmnd.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 46 insertions(+), 6 deletions(-) diff --git a/ytmnd.py b/ytmnd.py index d309112..1967907 100755 --- a/ytmnd.py +++ b/ytmnd.py @@ -51,7 +51,6 @@ class YTMND: print "fetching %s" % domain - # Get the url of the sound and foreground ytmnd_name = domain ytmnd_html = urllib2.urlopen("http://" + domain + ".ytmnd.com").read() expr = r"ytmnd.site_id = (\d+);" @@ -68,7 +67,6 @@ class YTMND: # Fetches the gif and mp3 for a post def fetch_media(self, ytmnd_info): - # Assign full url names for the sound and foreground domain = ytmnd_info['site']['domain'] original_gif = ytmnd_info['site']['foreground']['url'] gif_type = original_gif.split(".")[-1] @@ -82,7 +80,6 @@ class YTMND: original_wav = value['file_url'] wav_type = ytmnd_info['site']['sound']['file_type'] - # download files os.system("wget --quiet -O %s %s" % (domain + "." + gif_type, original_gif)) os.system("wget --quiet -O %s %s" % (domain + "." + wav_type, original_wav)) @@ -112,20 +109,27 @@ class YTMND: fn.write("%s\n" % title) fn.write("\n") fn.write("\n") + fn.write("\n") + self.write_zoom_text(fn, ytmnd_info) + if self.no_web_audio: - fn.write("