Update of /cvsroot/freevo/freevo/src/video/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv994/src/video/plugins
Modified Files:
imdb.py
Log Message:
adjust to new kaa.notifier thread interface
Index: imdb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/plugins/imdb.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** imdb.py 13 Jul 2005 19:28:41 -0000 1.42
--- imdb.py 5 Aug 2005 17:04:16 -0000 1.43
***************
*** 148,158 ****
searchstring = item.name
- # create callback to handle the results
- cb = kaa.notifier.Callback(self.parse_results, item, disc_set, box)
- # create callback for a possible exception
- ex = kaa.notifier.Callback(self.handle_exception, item, box)
# start search in thread
thread = kaa.notifier.Thread(fxd.guessImdb, searchstring, disc_set)
! thread.start(cb, ex)
--- 148,156 ----
searchstring = item.name
# start search in thread
thread = kaa.notifier.Thread(fxd.guessImdb, searchstring, disc_set)
! thread.signals['completed'].connect(self.parse_results, item,
disc_set, box)
! thread.signals['exception'].connect(self.handle_exception, item, box)
! thread.start()
***************
*** 211,222 ****
devicename = None
- # create callback to handle the data
- cb = kaa.notifier.Callback(self.save, item, fxd, box, disc_set,
- devicename)
- # create callback for a possible exception
- ex = kaa.notifier.Callback(self.handle_exception, item, box)
# start download in thread
thread = kaa.notifier.Thread(fxd.setImdbId, id)
! thread.start(cb, ex)
--- 209,217 ----
devicename = None
# start download in thread
thread = kaa.notifier.Thread(fxd.setImdbId, id)
! thread.signals['completed'].connect(self.save, item, fxd, box,
disc_set, devicename)
! thread.signals['exception'].connect(self.handle_exception, item, box)
! thread.start()
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog