comparison cagou/core/cagou_main.py @ 486:f826ebb7f605

code: update `fileDownloadComplete` bridge call, following backend change
author Goffi <goffi@goffi.org>
date Sat, 15 Oct 2022 14:20:38 +0200
parents 5f0705a9cd3b
children 38ca44d96752
comparison
equal deleted inserted replaced
485:f046092ba883 486:f826ebb7f605
1108 elif dest == C.FILE_DEST_CACHE: 1108 elif dest == C.FILE_DEST_CACHE:
1109 dest_path = '' 1109 dest_path = ''
1110 else: 1110 else:
1111 raise exceptions.InternalError(f"Invalid dest_path: {dest_path!r}") 1111 raise exceptions.InternalError(f"Invalid dest_path: {dest_path!r}")
1112 self.bridge.fileDownloadComplete( 1112 self.bridge.fileDownloadComplete(
1113 url.geturl(), 1113 data_format.serialise({"uri": url.geturl()}),
1114 str(dest_path), 1114 str(dest_path),
1115 '' if not options else data_format.serialise(options), 1115 '' if not options else data_format.serialise(options),
1116 profile, 1116 profile,
1117 callback=callback, 1117 callback=callback,
1118 errback=errback 1118 errback=errback