+ preliminary support for audio identification via AcoustID

This commit is contained in:
Reinhard Pointner 2013-01-10 16:38:17 +00:00
parent e8513bfd54
commit b8802bb2d3
5 changed files with 10 additions and 3 deletions

View File

@ -23,8 +23,8 @@
Short-lived (48 hours) persistent cache for web responses. Short-lived (48 hours) persistent cache for web responses.
--> -->
<cache name="web-datasource" <cache name="web-datasource"
maxElementsInMemory="120" maxElementsInMemory="200"
maxElementsOnDisk="1200" maxElementsOnDisk="5000"
eternal="false" eternal="false"
timeToIdleSeconds="172800" timeToIdleSeconds="172800"
timeToLiveSeconds="172800" timeToLiveSeconds="172800"

View File

@ -18,3 +18,4 @@ thetvdb.apikey: 58B4AA94C59AD656
themoviedb.apikey: 5a6edae568130bf10617b6d45be99f13 themoviedb.apikey: 5a6edae568130bf10617b6d45be99f13
serienjunkies.apikey: 9fbhw9uebfiwvbefzuwv serienjunkies.apikey: 9fbhw9uebfiwvbefzuwv
fanart.tv.apikey: 780b986b22c35e6f7a134a2f392c2deb fanart.tv.apikey: 780b986b22c35e6f7a134a2f392c2deb
acoustid.apikey: 0B3qZnQc

View File

@ -20,6 +20,7 @@ import java.util.concurrent.Future;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
import net.sourceforge.filebot.audio.AcoustID;
import net.sourceforge.filebot.media.MediaDetection; import net.sourceforge.filebot.media.MediaDetection;
import net.sourceforge.filebot.web.AnidbClient; import net.sourceforge.filebot.web.AnidbClient;
import net.sourceforge.filebot.web.EpisodeListProvider; import net.sourceforge.filebot.web.EpisodeListProvider;
@ -61,8 +62,9 @@ public final class WebServices {
public static final SubsceneSubtitleClient Subscene = new SubsceneSubtitleClient(); public static final SubsceneSubtitleClient Subscene = new SubsceneSubtitleClient();
public static final SublightSubtitleClient Sublight = new SublightSubtitleClient(); public static final SublightSubtitleClient Sublight = new SublightSubtitleClient();
// fanart.tv // misc
public static final FanartTV FanartTV = new FanartTV(Settings.getApplicationProperty("fanart.tv.apikey")); public static final FanartTV FanartTV = new FanartTV(Settings.getApplicationProperty("fanart.tv.apikey"));
public static final AcoustID AcoustID = new AcoustID(Settings.getApplicationProperty("acoustid.apikey"));
public static EpisodeListProvider[] getEpisodeListProviders() { public static EpisodeListProvider[] getEpisodeListProviders() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

View File

@ -256,6 +256,10 @@ public class RenamePanel extends JComponent {
actionPopup.add(new AutoCompleteAction(it.getName(), it.getIcon(), new MovieHashMatcher(it))); actionPopup.add(new AutoCompleteAction(it.getName(), it.getIcon(), new MovieHashMatcher(it)));
} }
actionPopup.addSeparator();
actionPopup.addDescription(new JLabel("Music Mode:"));
actionPopup.add(new AutoCompleteAction("AcoustID", ResourceManager.getIcon("search.acoustid"), new AudioFingerprintMatcher(WebServices.AcoustID)));
actionPopup.addSeparator(); actionPopup.addSeparator();
actionPopup.addDescription(new JLabel("Options:")); actionPopup.addDescription(new JLabel("Options:"));