mirror of
https://source.perfectable.org/nivertius/napi.git
synced 2025-07-02 03:14:46 +02:00
cleaned whitespace
This commit is contained in:
parent
9ab87b958e
commit
d03f00ddb4
1 changed files with 6 additions and 8 deletions
14
napi
14
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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue