0
0
Fork 0

[YoutubeDL] check annotations availabilty(closes #18582)

main
Remita Amine 2019-08-09 08:19:41 +01:00
parent 64b6a4e91e
commit ffddb11264
1 changed files with 2 additions and 0 deletions

View File

@ -1783,6 +1783,8 @@ class YoutubeDL(object):
annofn = replace_extension(filename, 'annotations.xml', info_dict.get('ext'))
if self.params.get('nooverwrites', False) and os.path.exists(encodeFilename(annofn)):
self.to_screen('[info] Video annotations are already present')
elif not info_dict.get('annotations'):
self.report_warning('There are no annotations to write.')
else:
try:
self.to_screen('[info] Writing video annotations to: ' + annofn)