From 2c8a7fb032bcca24059a66ce879ef5d132c241c3 Mon Sep 17 00:00:00 2001 From: naveensagarts Date: Sat, 16 Sep 2017 16:51:55 +0530 Subject: [PATCH 1/3] search button added --- GUI.py | 10 ++++++++-- crawler.pyc | Bin 4276 -> 4176 bytes 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/GUI.py b/GUI.py index b177c64..bcbc30a 100755 --- a/GUI.py +++ b/GUI.py @@ -44,6 +44,7 @@ def search(self): """ This function initiates a new search based on the text entered in the search bar. """ + self.b1=Button(self, text='Search', command=self.search) search_string = self.search_var.get() print(search_string) self.populate_Similar_Songs(search_string) @@ -72,18 +73,23 @@ def widgets(self): """ Label(self, text="Song Downloader System", background="#CC0001", font= ("Comic Sans MS",16)).grid(row=0, column=0, padx=20) - self.search_var = StringVar() + + self.search_var = StringVar() self.entry = Entry(self, textvariable=self.search_var, width=45) self.b1=Button(self, text='Search', command=self.search) + self.b1.grid(row=1, column=1, sticky=W, padx=20, pady=10) - + self.lbox = Listbox(self, width=45, height=15) + self.lbox.grid(row=2, column=0, columnspan=6,sticky=W, padx=20, pady=10) + self.lbox.bind("", self.onDouble) self.lbox2 = Listbox(self, width=45, height=15) + self.lbox2.grid(row=2, column=1, columnspan=6,sticky=W, padx=2000, pady=10) diff --git a/crawler.pyc b/crawler.pyc index ef88d48d466f4dac34499d68707aed8b57c0bb92..26630034516c046fc3dc5ce84232f5fc304699bc 100644 GIT binary patch delta 244 zcmdm@ctK&q6BcGpPR`A5SUee7fDF#bj%;$=K-xw>(T)qmuV8aD1WD*BxRe$pmSpDV zSt%G>85-z;WNq||3lj6}xD=qkMnA(Cq;2v%7O~0P>|7wTC(E)QQvjKekzbISlUiI1 z(Fiu)Mn5I945ooQH?<^DK?!256^Ei9NRv%YCRl)z(^w%lKd&UCSRpYzA7lj3a+n-K bk&%Isj;V#QLRn^NIoKkEs?BFOUa$iIBG5Ds delta 351 zcmcbhutjmh6BZ5yDA@d*#gmZ-#skrl1=wVzxR6C`^b_si0+VCe9Bp8-x(Y6(MTsSu z`FU0f##V*~dT?bn`o#r_c?fMb`WeO$-sJOa3UKQue_}gk2s14szaTXywYV6`5G0Fj z^iwj+;6{i|e#g#%Fy<$_Vm-_lo19F9y&yqjh1~qSl8j=7#Pob5vyqiy=rJ-d(lNC# ZRw&C%Ek||`iYEQi9E44q%Q$Ya0|32zNw5F_ From 2bcddb18ef4e40d3a7110e7b92cb0600b0380f92 Mon Sep 17 00:00:00 2001 From: naveensagarts Date: Sat, 16 Sep 2017 17:04:26 +0530 Subject: [PATCH 2/3] LINKIN PARK BUG SOLVED --- song_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/song_finder.py b/song_finder.py index a3040ad..64ea90c 100755 --- a/song_finder.py +++ b/song_finder.py @@ -20,7 +20,7 @@ def compareArtists(artists, search): def searchStringLogic(cursor, search_string): words = search_string.split(' ') - for i in range(len(words) - 1): + for i in range(len(words) ): artist = '-'.join(words[0:i]) song = '-'.join(words[i+1:]) print('Artist', artist) From 899806d35237fdb33769b4da84cbc95fc8274535 Mon Sep 17 00:00:00 2001 From: naveensagarts Date: Sat, 16 Sep 2017 17:19:42 +0530 Subject: [PATCH 3/3] LINKIN PARK --- song_finder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/song_finder.py b/song_finder.py index 64ea90c..93c5f8f 100755 --- a/song_finder.py +++ b/song_finder.py @@ -20,7 +20,7 @@ def compareArtists(artists, search): def searchStringLogic(cursor, search_string): words = search_string.split(' ') - for i in range(len(words) ): + for i in range(len(words) + 1): artist = '-'.join(words[0:i]) song = '-'.join(words[i+1:]) print('Artist', artist)