mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 03:27:34 +00:00
feat: Bump version to 0.5.5 and update frame class detection logic
This commit is contained in:
@@ -88,9 +88,10 @@ class MediaInfoExtractor:
|
||||
# First, try to match width to typical widths
|
||||
width_matches = []
|
||||
for frame_class, info in FRAME_CLASSES.items():
|
||||
if width in info['typical_widths'] and frame_class.endswith(scan_type):
|
||||
diff = abs(height - info['nominal_height'])
|
||||
width_matches.append((frame_class, diff))
|
||||
for tw in info['typical_widths']:
|
||||
if abs(width - tw) <= 5 and frame_class.endswith(scan_type):
|
||||
diff = abs(height - info['nominal_height'])
|
||||
width_matches.append((frame_class, diff))
|
||||
|
||||
if width_matches:
|
||||
# Choose the frame class with the smallest height difference
|
||||
|
||||
Reference in New Issue
Block a user