mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
* added bindings for Menu/Chapters/Image media info objects
This commit is contained in:
parent
cf9045d3a4
commit
3081ec3885
@ -673,6 +673,16 @@ public class MediaBindingBean {
|
|||||||
return createMapBindings(getMediaInfo().snapshot(StreamKind.Text, 0));
|
return createMapBindings(getMediaInfo().snapshot(StreamKind.Text, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Define("menu")
|
||||||
|
public AssociativeScriptObject getMenuInfo() {
|
||||||
|
return createMapBindings(getMediaInfo().snapshot(StreamKind.Menu, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Define("image")
|
||||||
|
public AssociativeScriptObject getImageInfo() {
|
||||||
|
return createMapBindings(getMediaInfo().snapshot(StreamKind.Image, 0));
|
||||||
|
}
|
||||||
|
|
||||||
@Define("videos")
|
@Define("videos")
|
||||||
public List<AssociativeScriptObject> getVideoInfoList() {
|
public List<AssociativeScriptObject> getVideoInfoList() {
|
||||||
return createMapBindingsList(getMediaInfo().snapshot().get(StreamKind.Video));
|
return createMapBindingsList(getMediaInfo().snapshot().get(StreamKind.Video));
|
||||||
@ -688,6 +698,21 @@ public class MediaBindingBean {
|
|||||||
return createMapBindingsList(getMediaInfo().snapshot().get(StreamKind.Text));
|
return createMapBindingsList(getMediaInfo().snapshot().get(StreamKind.Text));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Define("menus")
|
||||||
|
public List<AssociativeScriptObject> getMenuInfoList() {
|
||||||
|
return createMapBindingsList(getMediaInfo().snapshot().get(StreamKind.Menu));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Define("chapters")
|
||||||
|
public List<AssociativeScriptObject> getChaptersInfoList() {
|
||||||
|
return createMapBindingsList(getMediaInfo().snapshot().get(StreamKind.Chapters));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Define("images")
|
||||||
|
public List<AssociativeScriptObject> getImageInfoList() {
|
||||||
|
return createMapBindingsList(getMediaInfo().snapshot().get(StreamKind.Image));
|
||||||
|
}
|
||||||
|
|
||||||
@Define("artist")
|
@Define("artist")
|
||||||
public String getArtist() {
|
public String getArtist() {
|
||||||
return getMusic().getArtist();
|
return getMusic().getArtist();
|
||||||
|
Loading…
Reference in New Issue
Block a user