1
0
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:
Reinhard Pointner 2017-07-27 14:59:32 +08:00
parent 6aae22e604
commit 9bec33c20b

View File

@ -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")