Minor fixes

This commit is contained in:
Kepoor Hampond 2017-01-01 17:53:20 -08:00
parent dbd8e29280
commit 00fc694047
4 changed files with 9 additions and 5 deletions

View file

@ -216,6 +216,10 @@ class Manager:
search = self.args.artist + " " + self.args.album
songs = self.get_album_contents(search)
if not songs:
print (bc.FAIL + "Could not find album." + bc.ENDC)
exit(1)
print ("")
print (bc.HEADER + "Album Contents:" + bc.ENDC)
for song in songs:
@ -298,7 +302,7 @@ class Manager:
mp3.add_track_number(tracknum)
image_url = mp3.add_album_art(self.get_album_art(artist, mp3.get_attr('album')))
exclaim_good("Album art added: ", image_url)
exclaim_good("Album art: ", image_url)
print (color(song, ["BOLD", "UNDERLINE"]) + bc.OKGREEN + ' downloaded successfully!'+ bc.ENDC)

View file

@ -57,7 +57,7 @@ class Metadata:
self.mp3['album'] = album
self.mp3.save()
return True
except Exception:
self.mp3['album'] = self.song
self.mp3.save()
@ -73,7 +73,7 @@ class Metadata:
self.mp3['date'] = date
self.mp3.save()
return release_date
return True
except UnboundLocalError:
return False

View file

@ -3,7 +3,7 @@ import sys
def strip_special_chars(string):
special_chars = "\ / : * ? \" < > | - ( )".split(" ")
for char in special_chars:
string.replace(char, "")
string = string.replace(char, "")
return string
def supports_color():

View file

@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='irs',
version='2.6.14',
version='2.6.15',
description='A music downloader that just gets metadata.',
url='https://github.com/kepoorhampond/irs',
author='Kepoor Hampond',