mirror of
https://github.com/cooperhammond/irs.git
synced 2025-02-28 23:26:48 +00:00
Didn't remove dev stuff
This commit is contained in:
parent
9c09ed062f
commit
9c171efb12
|
@ -190,7 +190,6 @@ class Manager:
|
||||||
def get_album_contents(self, search):
|
def get_album_contents(self, search):
|
||||||
spotify = spotipy.Spotify()
|
spotify = spotipy.Spotify()
|
||||||
|
|
||||||
|
|
||||||
results = spotify.search(q=search, type='album')
|
results = spotify.search(q=search, type='album')
|
||||||
items = results['albums']['items']
|
items = results['albums']['items']
|
||||||
if len(items) > 0:
|
if len(items) > 0:
|
||||||
|
@ -212,7 +211,7 @@ class Manager:
|
||||||
names.append(song)
|
names.append(song)
|
||||||
return names, album_id
|
return names, album_id
|
||||||
else:
|
else:
|
||||||
print (bc.FAIL + "No results were found for your album search." + bc.ENDC)
|
print (bc.FAIL + "There was no results." + bc.ENDC)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
def get_album_art(self, artist, album, id=None):
|
def get_album_art(self, artist, album, id=None):
|
||||||
|
@ -231,9 +230,7 @@ class Manager:
|
||||||
|
|
||||||
def rip_album(self):
|
def rip_album(self):
|
||||||
search = self.args.artist + " " + self.args.album
|
search = self.args.artist + " " + self.args.album
|
||||||
print(self.get_album_contents(search))
|
songs, album_uri = self.get_album_contents(search)
|
||||||
import time
|
|
||||||
time.sleep(10)
|
|
||||||
|
|
||||||
if not songs:
|
if not songs:
|
||||||
print (bc.FAIL + "Could not find album." + bc.ENDC)
|
print (bc.FAIL + "Could not find album." + bc.ENDC)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='irs',
|
name='irs',
|
||||||
version='2.7.17',
|
version='2.7.18',
|
||||||
description='A music downloader that just gets metadata.',
|
description='A music downloader that just gets metadata.',
|
||||||
url='https://github.com/kepoorhampond/irs',
|
url='https://github.com/kepoorhampond/irs',
|
||||||
author='Kepoor Hampond',
|
author='Kepoor Hampond',
|
||||||
|
|
Loading…
Reference in a new issue