mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 00:38:52 -05:00
Map {id} to MusicBrainz ID for AudioTrack objects
This commit is contained in:
parent
850818373d
commit
3f7c985db5
@ -274,11 +274,13 @@ public class MediaBindingBean {
|
||||
}
|
||||
|
||||
@Define("id")
|
||||
public Integer getId() throws Exception {
|
||||
public Object getId() throws Exception {
|
||||
if (infoObject instanceof Episode)
|
||||
return getEpisode().getSeriesInfo().getId();
|
||||
if (infoObject instanceof Movie)
|
||||
return getMovie().getId();
|
||||
if (infoObject instanceof AudioTrack)
|
||||
return getMusic().getMBID();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user