mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-12 06:18:01 -05:00
Make {languages} binding work for Episode objects as well
This commit is contained in:
parent
7c292e631e
commit
3152a69152
@ -533,7 +533,7 @@ public class MediaBindingBean {
|
|||||||
|
|
||||||
@Define("languages")
|
@Define("languages")
|
||||||
public Object getSpokenLanguages() {
|
public Object getSpokenLanguages() {
|
||||||
List<?> languages = (List<?>) getMetaInfo().getProperty("spokenLanguages");
|
List<?> languages = infoObject instanceof Movie ? (List<?>) getMetaInfo().getProperty("spokenLanguages") : singletonList(getMetaInfo().getProperty("language"));
|
||||||
return languages.stream().map(it -> new Locale(it.toString()).getDisplayLanguage()).collect(toList());
|
return languages.stream().map(it -> new Locale(it.toString()).getDisplayLanguage()).collect(toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user