added language information to fetch status

This commit is contained in:
Paweł Płazieński 2016-03-07 13:55:47 +01:00
parent b5c7529f72
commit 727fbd5e92

6
napi
View file

@ -53,7 +53,7 @@ for movie_filename in args.movies:
response_status = response_xml.find('status')
if response_status is None or response_status.text != 'success':
print "%s: No subtitles found" % (movie_filename,)
print "%s: No subtitles found for language %s" % (movie_filename, args.language)
continue
subtitle_xml = response_xml.find("subtitles")
@ -87,6 +87,6 @@ for movie_filename in args.movies:
os.remove(subtitle_filename)
continue
print "%s: downloaded subtitles: uploader '%s', author '%s', date '%s'" % (movie_filename,
subtitle_uploader, subtitle_author, subtitle_date)
print "%s: downloaded subtitles: language '%s', uploader '%s', author '%s', date '%s'" % (movie_filename,
args.language, subtitle_uploader, subtitle_author, subtitle_date)
os.remove(input_filename)