1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-21 23:38:50 -05:00

Check {video.title} as well when finding a {mediaTitle} value

This commit is contained in:
Reinhard Pointner 2019-06-08 15:09:40 +07:00
parent a895b57067
commit 5fda8b14ae

View File

@ -829,7 +829,7 @@ public class MediaBindingBean {
@Define("mediaTitle")
public String getMediaTitle() {
return getMediaInfo(StreamKind.General, 0, "Title", "Movie");
return Stream.of(StreamKind.General, StreamKind.Video).flatMap(k -> getMediaInfo(k, "Title", "Movie")).findFirst().orElse(null);
}
@Define("audioLanguages")