mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Fix typo, do minor improvements
This commit is contained in:
@@ -137,18 +137,19 @@ def grab_single(raw_song, number=None):
|
|||||||
meta_tags = spotify_tools.generate_metadata(raw_song)
|
meta_tags = spotify_tools.generate_metadata(raw_song)
|
||||||
content = youtube_tools.go_pafy(raw_song, meta_tags)
|
content = youtube_tools.go_pafy(raw_song, meta_tags)
|
||||||
|
|
||||||
if const.args.download_only_metadata and meta_tags is None:
|
|
||||||
log.info('Found No metadata. Skipping the download')
|
|
||||||
return
|
|
||||||
|
|
||||||
if content is None:
|
if content is None:
|
||||||
log.debug('Found no matching video')
|
log.debug('Found no matching video')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if const.args.download_only_metadata and meta_tags is None:
|
||||||
|
log.info('Found no metadata. Skipping the download')
|
||||||
|
return
|
||||||
|
|
||||||
# "[number]. [artist] - [song]" if downloading from list
|
# "[number]. [artist] - [song]" if downloading from list
|
||||||
# otherwise "[artist] - [song]"
|
# otherwise "[artist] - [song]"
|
||||||
youtube_title = youtube_tools.get_youtube_title(content, number)
|
youtube_title = youtube_tools.get_youtube_title(content, number)
|
||||||
log.info('{} ({})'.format(youtube_title, content.watchv_url))
|
log.info('{} ({})'.format(youtube_title, content.watchv_url))
|
||||||
|
|
||||||
# generate file name of the song to download
|
# generate file name of the song to download
|
||||||
songname = content.title
|
songname = content.title
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user