mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 16:58:51 -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")
|
@Define("id")
|
||||||
public Integer getId() throws Exception {
|
public Object getId() throws Exception {
|
||||||
if (infoObject instanceof Episode)
|
if (infoObject instanceof Episode)
|
||||||
return getEpisode().getSeriesInfo().getId();
|
return getEpisode().getSeriesInfo().getId();
|
||||||
if (infoObject instanceof Movie)
|
if (infoObject instanceof Movie)
|
||||||
return getMovie().getId();
|
return getMovie().getId();
|
||||||
|
if (infoObject instanceof AudioTrack)
|
||||||
|
return getMusic().getMBID();
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user