mirror of
https://github.com/cooperhammond/irs.git
synced 2024-09-18 22:35:10 +00:00
Finally fixed single song downloading.
This commit is contained in:
parent
2e3a0e9196
commit
ab4c4197c5
|
@ -44,6 +44,7 @@ class Manager:
|
||||||
|
|
||||||
if media == 1:
|
if media == 1:
|
||||||
self.args.song = color_input("Song you would like to download")
|
self.args.song = color_input("Song you would like to download")
|
||||||
|
self.args.artist = color_input("Name of artist")
|
||||||
self.rip_mp3()
|
self.rip_mp3()
|
||||||
|
|
||||||
elif media == 2:
|
elif media == 2:
|
||||||
|
@ -64,7 +65,7 @@ class Manager:
|
||||||
|
|
||||||
print (color(song, ["BOLD", "UNDERLINE"]) + ' by ' + color(artist, ["BOLD", "UNDERLINE"]))
|
print (color(song, ["BOLD", "UNDERLINE"]) + ' by ' + color(artist, ["BOLD", "UNDERLINE"]))
|
||||||
|
|
||||||
search_terms = song + " " + artist + " " + CONFIG["additional_search_terms"]
|
search_terms = song + " " + artist + " " + CONFIG["additional_search_terms"]
|
||||||
query_string = urlencode({"search_query" : (search_terms)})
|
query_string = urlencode({"search_query" : (search_terms)})
|
||||||
|
|
||||||
html_content = urlopen("http://www.youtube.com/results?" + query_string)
|
html_content = urlopen("http://www.youtube.com/results?" + query_string)
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='irs',
|
name='irs',
|
||||||
version='3.3.1',
|
version='3.3.2',
|
||||||
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