From bbac80d5f0b5baadd7871b9ed2d82c10002a656c Mon Sep 17 00:00:00 2001 From: Kepoor Hampond Date: Mon, 19 Dec 2016 19:58:43 -0800 Subject: [PATCH] Added the ability to choose a link from a list of titles and fixed major error from last commit --- irs/manage.py | 4 +--- setup.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/irs/manage.py b/irs/manage.py index ebe4af3..bb8a04f 100644 --- a/irs/manage.py +++ b/irs/manage.py @@ -27,8 +27,6 @@ def find_mp3(song, artist, html_content = urlopen("http://www.youtube.com/results?" + query_string) search_results = findall(r'href=\"\/watch\?v=(.{11})', html_content.read().decode()) - no_download_terms = ["full album"] - in_title = False i = -1 given_up_score = 0 @@ -48,7 +46,7 @@ def find_mp3(song, artist, for song in song_title: song = strip_special_chars(song) - if song in title and any(term in song for term in no_download_terms): + if song in title and "full album" not in title: in_title = True print (bc.OKGREEN + "Found youtube link! \n" + bc.ENDC) diff --git a/setup.py b/setup.py index ec3713b..c00f65d 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='irs', - version='1.5.9', + version='1.5.10', description='A music downloader that just gets metadata.', url='https://github.com/kepoorhampond/irs', author='Kepoor Hampond',