Update of /cvsroot/freevo/freevo/src/audio/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv14699/src/audio/plugins
Modified Files:
coversearch.py
Log Message:
Made the license key into an activate argument. Now you can have:
plugin.activate('audio.coversearch', args=('my_key',))
Index: coversearch.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/plugins/coversearch.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** coversearch.py 23 Jun 2003 19:28:32 -0000 1.7
--- coversearch.py 24 Jun 2003 01:51:13 -0000 1.8
***************
*** 14,17 ****
--- 14,21 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.8 2003/06/24 01:51:13 rshortt
+ # Made the license key into an activate argument. Now you can have:
+ # plugin.activate('audio.coversearch', args=('my_key',))
+ #
# Revision 1.7 2003/06/23 19:28:32 dischi
# cover support for audio cds (only with installed mmpython)
***************
*** 107,110 ****
--- 111,124 ----
class PluginInterface(plugin.ItemPlugin):
+ def __init__(self, license=None):
+ plugin.ItemPlugin.__init__(self)
+
+ # You must get your own key!
+ if license:
+ self.license = license
+ else:
+ self.license = 'empty'
+
+
def actions(self, item):
self.item = item
***************
*** 131,135 ****
artist = self.item.artist
! amazon.setLicense('...') # must get your own key!
try:
cover = amazon.searchByKeyword('%s %s' % (artist,album) ,
product_line="music")
--- 145,149 ----
artist = self.item.artist
! amazon.setLicense(self.license)
try:
cover = amazon.searchByKeyword('%s %s' % (artist,album) ,
product_line="music")
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog