mirror of
https://github.com/cooperhammond/irs.git
synced 2025-03-22 16:15:05 +00:00
Added the search to look for a lyric video for more accuracy.
This commit is contained in:
parent
b50675778b
commit
d7dc97eb68
|
@ -21,7 +21,7 @@ def find_mp3(song, artist,
|
|||
os.system("clear")
|
||||
print (color(song, ["BOLD", "UNDERLINE"]) + ' by ' + color(artist, ["BOLD", "UNDERLINE"]))
|
||||
|
||||
search_terms = song + " " + artist
|
||||
search_terms = song + " " + artist + " lyrics"
|
||||
query_string = urlencode({"search_query" : (search_terms)})
|
||||
|
||||
html_content = urlopen("http://www.youtube.com/results?" + query_string)
|
||||
|
|
Loading…
Reference in a new issue