cleaned whitespace

This commit is contained in:
Paweł Płazieński 2016-03-07 13:49:52 +01:00
parent 9ab87b958e
commit d03f00ddb4

14
napi
View file

@ -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)