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,7 +514,12 @@ instance's greatest bottleneck.
|
||||
else:
|
||||
log.explain(f"Using single video mode for {element.name}")
|
||||
stream_element = stream_elements[0]
|
||||
await self._stream_from_url(stream_element.url, sink, bar, is_video=True)
|
||||
|
||||
# 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)
|
||||
self.report.add_custom_value(str(original_path), [original_path.name])
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user