Exemplo n.º 1
0
 def create_stream_descriptor(self, stream_hash):
     descriptor_writer = BlobStreamDescriptorWriter(
         self.session.blob_manager)
     d = get_sd_info(self.lbry_file_manager.stream_info_manager,
                     stream_hash, True)
     d.addCallback(descriptor_writer.create_descriptor)
     return d
Exemplo n.º 2
0
    def make_stream_desc_file(stream_hash):
        log.debug("creating the stream descriptor file")
        descriptor_writer = PlainStreamDescriptorWriter(file_name + conf.CRYPTSD_FILE_EXTENSION)

        d = get_sd_info(lbry_file_manager.stream_info_manager, stream_hash, True)

        d.addCallback(descriptor_writer.create_descriptor)

        return d
Exemplo n.º 3
0
    def make_stream_desc_file(stream_hash):
        log.debug("creating the stream descriptor file")
        descriptor_file_path = os.path.join(session.db_dir, file_name + conf.CRYPTSD_FILE_EXTENSION)
        descriptor_writer = PlainStreamDescriptorWriter(descriptor_file_path)

        d = get_sd_info(lbry_file_manager.stream_info_manager, stream_hash, True)

        d.addCallback(descriptor_writer.create_descriptor)

        return d
Exemplo n.º 4
0
    def make_stream_desc_file(stream_hash):
        log.debug("creating the stream descriptor file")
        descriptor_file_path = os.path.join(
            session.db_dir, file_name + settings.CRYPTSD_FILE_EXTENSION)
        descriptor_writer = PlainStreamDescriptorWriter(descriptor_file_path)

        d = get_sd_info(lbry_file_manager.stream_info_manager, stream_hash, True)

        d.addCallback(descriptor_writer.create_descriptor)

        return d
Exemplo n.º 5
0
 def create_stream_descriptor(stream_hash):
     descriptor_writer = BlobStreamDescriptorWriter(session.blob_manager)
     d = get_sd_info(lbry_file_manager.stream_info_manager, stream_hash, True)
     d.addCallback(descriptor_writer.create_descriptor)
     return d
Exemplo n.º 6
0
 def verify_stream_descriptor_file(stream_hash):
     d = get_sd_info(self.lbry_file_manager.stream_info_manager, stream_hash, True)
     d.addCallback(verify_equal)
     return d
Exemplo n.º 7
0
 def verify_stream_descriptor_file(stream_hash):
     d = get_sd_info(self.lbry_file_manager.stream_info_manager,
                     stream_hash, True)
     d.addCallback(verify_equal)
     return d