mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Do not download single videos if cache does not exist
This commit is contained in:
parent
6289938d7c
commit
90cb6e989b
1 changed files with 6 additions and 1 deletions
|
|
@ -514,6 +514,11 @@ instance's greatest bottleneck.
|
||||||
else:
|
else:
|
||||||
log.explain(f"Using single video mode for {element.name}")
|
log.explain(f"Using single video mode for {element.name}")
|
||||||
stream_element = stream_elements[0]
|
stream_element = stream_elements[0]
|
||||||
|
|
||||||
|
# We do not have a local cache yet
|
||||||
|
if self._output_dir.resolve(original_path).exists():
|
||||||
|
log.explain(f"Video for {element.name} existed locally")
|
||||||
|
else:
|
||||||
await self._stream_from_url(stream_element.url, sink, bar, is_video=True)
|
await self._stream_from_url(stream_element.url, sink, bar, is_video=True)
|
||||||
self.report.add_custom_value(str(original_path), [original_path.name])
|
self.report.add_custom_value(str(original_path), [original_path.name])
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue