* helpers for creating a MediaBindingBean objects to make it easy to access extended metadata

This commit is contained in:
Reinhard Pointner 2013-09-15 15:21:30 +00:00
parent f68170c243
commit 2bdf60d19b
2 changed files with 8 additions and 1 deletions

View File

@ -188,9 +188,13 @@ List.metaClass.watch = { c -> createWatchService(c, delegate, true) }
// FileBot MetaAttributes helpers
import net.sourceforge.filebot.media.MetaAttributes
import net.sourceforge.filebot.media.*
import net.sourceforge.filebot.format.*
import net.sourceforge.filebot.web.*
File.metaClass.getMetadata = { net.sourceforge.filebot.Settings.useExtendedFileAttributes() ? new MetaAttributes(delegate) : null }
File.metaClass.getMediaBinding = { new MediaBindingBean(delegate.metadata, delegate, null) }
Movie.metaClass.getMediaBinding = Episode.metaClass.getMediaBinding = { new MediaBindingBean(delegate, null, null) }
// Complete or session rename history

View File

@ -1222,6 +1222,7 @@ Kurai-Subs
Kuth
KyF
KYR
kyussone
Kyuubi
L-F
L-S
@ -1378,6 +1379,7 @@ MRShanku
MS
mSD
MsR
mthodmn101
MUSiX
MuSt
mV4U
@ -1603,6 +1605,7 @@ PORNOHOLiCS
PorphyriA
PosTX
PoT
PotentPortables
PoTuS
PP
PPQ