[media] Media played from live streams should be at least 5MB before playback starts.

This commit is contained in:
Fabio Manganiello 2024-08-25 03:16:05 +02:00
parent 54a6b34a64
commit 83d21d3f04
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -121,8 +121,8 @@ class YoutubeMediaResource(PopenMediaResource):
)
break
# The file must exist and be at least 1MB in size
if os.path.exists(file) and os.path.getsize(file) > 1024 * 1024:
# The file must exist and be at least 5MB in size
if os.path.exists(file) and os.path.getsize(file) > 5 * 1024 * 1024:
self._logger.info('Download started, process PID: %s', self.proc.pid)
break