mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Do not download single videos if cache does not exist
This commit is contained in:
parent
6289938d7c
commit
90cb6e989b
@ -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…
Reference in New Issue
Block a user