From 3f7c985db5f6d87983abc8afb81ba25746ef4ce3 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 5 Oct 2016 02:11:18 +0800 Subject: [PATCH] Map {id} to MusicBrainz ID for AudioTrack objects --- source/net/filebot/format/MediaBindingBean.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 3c130f0a..2ba1b373 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -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; }