From 64c3d7710070fffbab65048c9f07d5a234e3c73e Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 14 Nov 2013 13:24:30 +0000 Subject: [PATCH] * enable use ID3 Tags as datasource in GUI --- .../filebot/resources/search.mediainfo.png | Bin 0 -> 488 bytes .../filebot/ui/rename/RenamePanel.java | 5 +++- .../sourceforge/filebot/web/ID3Lookup.java | 26 ++++++++---------- 3 files changed, 15 insertions(+), 16 deletions(-) create mode 100644 source/net/sourceforge/filebot/resources/search.mediainfo.png diff --git a/source/net/sourceforge/filebot/resources/search.mediainfo.png b/source/net/sourceforge/filebot/resources/search.mediainfo.png new file mode 100644 index 0000000000000000000000000000000000000000..eab4d7690cfc5419739ea30b1f55193d9634437c GIT binary patch literal 488 zcmVP)`q zi$kfq$zV`Hq%*jl>+D;@EUj%B##(* zc54c-uyAm(TCIMm)oQIwCi6|w$#C=#Sdw%u_^}0CoC5TEz1#VGzEG)DsMqUR;BL6Z z2CxYn57Mu|;uN6Y|GBHtXwdC;X*QbxJJWoc<-vo&VDP8aY7xgVz&(KA$8O+#(Cq^{ zQ_pDogQO$vcKa-_7D5DY16a5HR?=ah0IbZ+f$a{^8Sf>X0?q>$LTMQo0{8znNPBD_ z4YdQnP2jTatyF;RZD4f*I1ju6uG@YN|3*1Am68qtcYv$5*T?la;1{DGIh@fHF>-!C ekhOg!srd`A2f442>Ou|x0000 lookup(Iterable files) throws Exception { Map info = new HashMap(); - + MediaInfo mediaInfo = new MediaInfo(); for (File f : files) { if (!mediaInfo.open(f)) { throw new IOException("MediaInfo failed to open file: " + f); } - + String artist = mediaInfo.get(StreamKind.General, 0, "Performer"); String title = mediaInfo.get(StreamKind.General, 0, "Title"); String album = mediaInfo.get(StreamKind.General, 0, "Album"); mediaInfo.close(); - + info.put(f, new AudioTrack(artist, title, album)); } - + return info; } - + }