Skip to content

Commit

Permalink
filter another MI report comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Jan 24, 2025
1 parent 36e7748 commit f7c3450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exportmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def filter_mediainfo(data):
media_info = MediaInfo.parse(video, output="STRING", full=False, mediainfo_options={'inform_version': '1'})
filtered_media_info = "\n".join(
line for line in media_info.splitlines()
if not line.strip().startswith("ReportBy")
if not line.strip().startswith("ReportBy") and not line.strip().startswith("Report created by ")
)
with open(f"{base_dir}/tmp/{folder_id}/MEDIAINFO.txt", 'w', newline="", encoding='utf-8') as export:
export.write(filtered_media_info.replace(video, os.path.basename(video)))
Expand Down

0 comments on commit f7c3450

Please sign in to comment.