Update of /cvsroot/btplusplus/BT++/src
In directory sc8-pr-cvs1:/tmp/cvs-serv26677/src
Modified Files:
SeedManager.py
Log Message:
- Small fix.
- Seeds without the torrent are removed from the history.
Index: SeedManager.py
===================================================================
RCS file: /cvsroot/btplusplus/BT++/src/SeedManager.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SeedManager.py 11 Mar 2003 01:23:34 -0000 1.1
--- SeedManager.py 18 Apr 2003 16:04:53 -0000 1.2
***************
*** 25,43 ****
# UPDATE TORRENT LIST
tors = listdir( self.DirTorrent )
- if len(tors) == 0:
- return
for tor in tors:
! con = false
for loader in self.Loaders:
if loader.Config['Tor'] == tor:
! con = true
! if con == true:
continue
self.CreateNewLoader(tor)
def CreateNewLoader(self, torrent):
try:
--- 25,45 ----
# UPDATE TORRENT LIST
tors = listdir( self.DirTorrent )
for tor in tors:
! con = False
for loader in self.Loaders:
if loader.Config['Tor'] == tor:
! con = True
! if con == True:
continue
self.CreateNewLoader(tor)
+ for loader in self.Loaders:
+ if not path.exists( loader.Config['TorFull'] ):
+ self.Loaders.remove(loader)
+
def CreateNewLoader(self, torrent):
try:
***************
*** 53,58 ****
CheckExist = true )
! ## if not path.exists( loader.Config['Filename'] ):
! ## return None
self.Loaders.append(loader)
--- 55,60 ----
CheckExist = true )
! if not path.exists( loader.Config['Filename'] ):
! return None
self.Loaders.append(loader)
***************
*** 62,66 ****
return loader
except:
- ## if self.Log != None:
- ## self.Log( 'Error adding seed "' + torrent + '"...', loglevel = LOG_ERROR )
return None
--- 64,66 ----
|