From d03f00ddb442432a11792da3b28d86c276069587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Mon, 7 Mar 2016 13:49:52 +0100 Subject: [PATCH] cleaned whitespace --- napi | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/napi b/napi index 8418026..50fbf50 100755 --- a/napi +++ b/napi @@ -39,10 +39,10 @@ for movie_filename in args.movies: movie_digest = digest.hexdigest() - request_data = { - "downloaded_subtitles_id" : movie_digest, - "mode" : "31", - "client" : "NapiProjekt", + request_data = { + "downloaded_subtitles_id" : movie_digest, + "mode" : "31", + "client" : "NapiProjekt", "downloaded_subtitles_lang" : args.language } @@ -62,7 +62,6 @@ for movie_filename in args.movies: subtitle_author = subtitle_xml.find('author').text subtitle_date = subtitle_xml.find('upload_date').text - content = subtitle_xml.find("content").text decoded_content = base64.b64decode(content) with open(input_filename, "w") as input_file: @@ -87,8 +86,7 @@ for movie_filename in args.movies: print "%s: 7zip returned non-zero code: %s" % (movie_filename, subtitle_filename) os.remove(subtitle_filename) sys.exit(3) - - print "%s: downloaded subtitles: uploader '%s', author '%s', date '%s'" % (movie_filename, + + print "%s: downloaded subtitles: uploader '%s', author '%s', date '%s'" % (movie_filename, subtitle_uploader, subtitle_author, subtitle_date) os.remove(input_filename) -