Download only songs whose metadata is found #193 (#197)

This commit is contained in:
Nitesh Sawant
2018-01-11 01:51:49 +05:30
committed by Ritiek Malhotra
parent cb738ca731
commit fb70ad32bb
2 changed files with 9 additions and 0 deletions

View File

@@ -412,6 +412,11 @@ def grab_single(raw_song, number=None):
meta_tags = generate_metadata(raw_song)
content = go_pafy(raw_song, meta_tags)
if args.download_only_metadata:
if meta_tags is None:
log.info('Found No metadata. Skipping the download')
return
if content is None:
log.debug('Found no matching video')
return