Logo Search packages:      
Sourcecode: hellanzb version File versions  Download package

def Hellanzb::NZBLeecher::NZBModel::NZB::finalize (   self,
  justClean = False 
)

Delete any potential cyclic references existing in this NZB, then garbage
collect. justClean will only clean/delete specific things, to prep the NZB for
another download 

Definition at line 179 of file NZBModel.py.

00179                                          :
        """ Delete any potential cyclic references existing in this NZB, then garbage
        collect. justClean will only clean/delete specific things, to prep the NZB for
        another download """
        # nzbFiles aren't needed for another download
        for nzbFile in self.nzbFiles:
            del nzbFile.todoNzbSegments
            del nzbFile.dequeuedSegments
            if not justClean:
                # This could be a postponed download, which would need the nzbFile. The
                # actual nzbFile here will be available, it will just have a reference
                # count decremented by del
                del nzbFile.nzb
            del nzbFile

        if justClean:
            self.nzbFiles = []
            self.skippedParFiles = []
            self.postProcessor = None
            self.cleanStats()
        else:
            del self.nzbFiles
            del self.skippedParFiles
            del self.postProcessor

    def getSkippedParSubjects(self):


Generated by  Doxygen 1.6.0   Back to index