mirror of
https://source.perfectable.org/nivertius/napi.git
synced 2025-07-02 03:45:05 +02:00
added language information to fetch status
This commit is contained in:
parent
b5c7529f72
commit
727fbd5e92
1 changed files with 3 additions and 3 deletions
6
napi
6
napi
|
@ -53,7 +53,7 @@ for movie_filename in args.movies:
|
||||||
|
|
||||||
response_status = response_xml.find('status')
|
response_status = response_xml.find('status')
|
||||||
if response_status is None or response_status.text != 'success':
|
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
|
continue
|
||||||
|
|
||||||
subtitle_xml = response_xml.find("subtitles")
|
subtitle_xml = response_xml.find("subtitles")
|
||||||
|
@ -87,6 +87,6 @@ for movie_filename in args.movies:
|
||||||
os.remove(subtitle_filename)
|
os.remove(subtitle_filename)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print "%s: downloaded subtitles: uploader '%s', author '%s', date '%s'" % (movie_filename,
|
print "%s: downloaded subtitles: language '%s', uploader '%s', author '%s', date '%s'" % (movie_filename,
|
||||||
subtitle_uploader, subtitle_author, subtitle_date)
|
args.language, subtitle_uploader, subtitle_author, subtitle_date)
|
||||||
os.remove(input_filename)
|
os.remove(input_filename)
|
||||||
|
|
Loading…
Add table
Reference in a new issue