Ejemplo n.º 1
0
 def get_files(self,exts=None):
     """ The list of files in the finalized torrent def.
     @param exts (Optional) list of filename extensions (without leading .)
     to search for.
     @return A list of filenames.
     """
     return [filename for filename, _ in maketorrent.get_files(self.metainfo, exts)]
Ejemplo n.º 2
0
 def get_files_with_length(self, exts=None):
     """ The list of files in the finalized torrent def.
     @param exts (Optional) list of filename extensions (without leading .)
     to search for.
     @return A list of filenames.
     """
     return maketorrent.get_files(self.metainfo, exts)
Ejemplo n.º 3
0
    def get_files(self, exts=None):
        """ The list of files in the finalized torrent def.
        @param exts (Optional) list of filename extensions (without leading .)
        to search for.
        @return A list of filenames.
        """
        if not self.metainfo_valid:
            raise NotYetImplementedException()  # must save first

        return maketorrent.get_files(self.metainfo, exts)
Ejemplo n.º 4
0
    def get_files(self, exts=None):
        """ The list of files in the finalized torrent def.
        @param exts (Optional) list of filename extensions (without leading .)
        to search for.
        @return A list of filenames.
        """
        if not self.metainfo_valid:
            raise NotYetImplementedException()  # must save first

        return maketorrent.get_files(self.metainfo, exts)