mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 14:25:02 -05:00
// progressive by default if ScanType is undefined
This commit is contained in:
parent
6aae22e604
commit
9bec33c20b
@ -380,8 +380,11 @@ public class MediaBindingBean {
|
||||
String height = getMediaInfo(StreamKind.Video, 0, "Height");
|
||||
String scanType = getMediaInfo(StreamKind.Video, 0, "ScanType");
|
||||
|
||||
// progressive by default if ScanType is undefined
|
||||
String p = scanType.codePoints().map(Character::toLowerCase).mapToObj(Character::toChars).map(String::valueOf).findFirst().orElse("p");
|
||||
|
||||
// e.g. 720p
|
||||
return height + Character.toLowerCase(scanType.charAt(0));
|
||||
return height + p;
|
||||
}
|
||||
|
||||
@Define("af")
|
||||
|
Loading…
Reference in New Issue
Block a user