mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 08:25:02 -04:00
Refactor
This commit is contained in:
parent
4646d623b3
commit
f5442e7316
@ -29,7 +29,6 @@ import java.util.Map.Entry;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.SortedSet;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.TreeSet;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.regex.Pattern;
|
||||
@ -303,7 +302,7 @@ public class MediaBindingBean {
|
||||
String codec = getMediaInfo(StreamKind.Video, 0, "Encoded_Library_Name", "Encoded_Library/Name", "CodecID/Hint", "Format");
|
||||
|
||||
// get first token (e.g. DivX 5 => DivX)
|
||||
return new StringTokenizer(codec).nextToken();
|
||||
return SPACE.splitAsStream(codec).findFirst().get();
|
||||
}
|
||||
|
||||
@Define("ac")
|
||||
|
Loading…
Reference in New Issue
Block a user