mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-08 03:18:28 +03:00
Changed log level for media
This commit is contained in:
@@ -116,7 +116,12 @@ class Media:
|
||||
# self.is_video() should be used together with this method
|
||||
try:
|
||||
streams = ffmpeg.probe(self.filename, select_streams="v")["streams"]
|
||||
logger.warning(f"STREAMS FOR {self.filename} {streams}")
|
||||
# DM 27th May 2025
|
||||
# https://x.com/dave_mateer/status/1524341442738638848
|
||||
# shows this warning for the gif file
|
||||
# Have changed to debug for now to clean up logs
|
||||
# logger.warning(f"STREAMS FOR {self.filename} {streams}")
|
||||
logger.debug(f"STREAMS FOR {self.filename} {streams}")
|
||||
return any(s.get("duration_ts", 0) > 0 for s in streams)
|
||||
except Error:
|
||||
return False # ffmpeg errors when reading bad files
|
||||
|
||||
Reference in New Issue
Block a user