~timo-jyrinki/ubuntu/utopic/rhythmbox/enable_grilo_rhythmbox

« back to all changes in this revision

Viewing changes to plugins/artdisplay/artdisplay/AmazonCoverArtSearch.py

Tags: upstream-0.11.99.1
ImportĀ upstreamĀ versionĀ 0.11.99.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
import locale
30
30
import urllib
31
31
 
 
32
import rb
32
33
import rhythmdb
33
34
 
34
35
LICENSE_KEY = "18C3VZN9HCECM5G3HQG2"
43
44
class Bag: pass
44
45
 
45
46
class AmazonCoverArtSearch (object):
46
 
        def __init__ (self, loader):
 
47
        def __init__ (self):
47
48
                self.searching = False
48
49
                self.cancel = False
49
 
                self.loader = loader
50
50
                self.db = None
51
51
                self.entry = None
52
52
                (self.tld, self.encoding) = self.__get_locale ()
168
168
                        job += 1
169
169
 
170
170
                # Retrieve search for keyword
171
 
                self.loader.get_url (url, self.on_search_response)
 
171
                l = rb.Loader()
 
172
                l.get_url (url, self.on_search_response)
172
173
                return True
173
174
 
174
175
        def __unmarshal (self, element):