1
0
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:
Reinhard Pointner 2016-10-05 02:11:18 +08:00
parent 850818373d
commit 3f7c985db5

View File

@ -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;
} }