2012-12-05 04:36:30 -05:00
|
|
|
// filebot -script fn:sysinfo
|
2012-05-14 15:15:22 -04:00
|
|
|
|
|
|
|
// FileBot 2.62 (r993)
|
|
|
|
println net.sourceforge.filebot.Settings.applicationIdentifier
|
|
|
|
|
2013-10-09 02:31:05 -04:00
|
|
|
// chromaprint-tools
|
|
|
|
try {
|
|
|
|
print 'chromaprint-tools: '
|
|
|
|
def fpcalc = System.getProperty('net.sourceforge.filebot.AcoustID.fpcalc', 'fpcalc')
|
|
|
|
def version = [fpcalc, '-version'].execute().text.trim() ?: 'fpcalc -version failed'
|
|
|
|
println "$version ($fpcalc)"
|
|
|
|
} catch(Throwable error) {
|
|
|
|
println error
|
|
|
|
}
|
|
|
|
|
2012-11-25 00:36:06 -05:00
|
|
|
// JNA Native: 3.5.0
|
|
|
|
try {
|
|
|
|
print 'JNA Native: '
|
|
|
|
println com.sun.jna.Native.nativeVersion
|
2013-03-06 03:26:27 -05:00
|
|
|
} catch(Throwable error) {
|
2012-11-25 00:36:06 -05:00
|
|
|
println error.cause
|
|
|
|
}
|
|
|
|
|
2012-05-14 15:15:22 -04:00
|
|
|
// MediaInfo: MediaInfoLib - v0.7.48
|
|
|
|
try {
|
|
|
|
print 'MediaInfo: '
|
|
|
|
println net.sourceforge.filebot.mediainfo.MediaInfo.version()
|
2013-03-06 03:26:27 -05:00
|
|
|
} catch(Throwable error) {
|
2012-05-14 15:15:22 -04:00
|
|
|
println error.cause
|
|
|
|
}
|
|
|
|
|
|
|
|
// 7-Zip-JBinding: OK
|
|
|
|
try {
|
|
|
|
print '7-Zip-JBinding: '
|
2012-08-13 04:03:11 -04:00
|
|
|
net.sourceforge.filebot.archive.SevenZipLoader.requireNativeLibraries() // load 7-Zip-JBinding native libs
|
2012-11-25 00:36:06 -05:00
|
|
|
println 'OK'
|
2012-05-14 15:15:22 -04:00
|
|
|
} catch(Throwable error) {
|
|
|
|
println error
|
|
|
|
}
|
|
|
|
|
2012-10-27 08:39:52 -04:00
|
|
|
// Extended File Attributes
|
|
|
|
try {
|
|
|
|
print 'Extended Attributes: '
|
|
|
|
if (net.sourceforge.filebot.Settings.useExtendedFileAttributes()){
|
|
|
|
// create new temp file
|
2013-02-04 09:34:39 -05:00
|
|
|
def f = new File(net.sourceforge.filebot.Settings.applicationFolder, '.xattr-test')
|
2012-10-27 08:39:52 -04:00
|
|
|
f.createNewFile() && f.deleteOnExit()
|
|
|
|
|
|
|
|
// xattr write, read and verify
|
|
|
|
def xattr = new net.sourceforge.filebot.media.MetaAttributes(f)
|
|
|
|
def payload = new Date()
|
2013-05-17 14:48:31 -04:00
|
|
|
xattr.setObject(payload)
|
|
|
|
assert xattr.getObject() == payload
|
2012-11-25 00:36:06 -05:00
|
|
|
println 'OK'
|
2012-10-27 08:39:52 -04:00
|
|
|
} else {
|
2012-11-25 00:36:06 -05:00
|
|
|
println 'DISABLED'
|
|
|
|
}
|
|
|
|
} catch(Throwable error) {
|
|
|
|
println error
|
|
|
|
}
|
|
|
|
|
|
|
|
// GIO and GVFS
|
|
|
|
try {
|
2013-01-16 05:19:41 -05:00
|
|
|
if (net.sourceforge.filebot.Settings.useGVFS()) {
|
2012-11-25 00:36:06 -05:00
|
|
|
print 'GVFS: '
|
|
|
|
assert net.sourceforge.filebot.gio.GVFS.defaultVFS != null
|
|
|
|
println 'OK'
|
2012-10-27 08:39:52 -04:00
|
|
|
}
|
|
|
|
} catch(Throwable error) {
|
|
|
|
println error
|
|
|
|
}
|
|
|
|
|
2012-05-14 15:15:22 -04:00
|
|
|
// Java(TM) SE Runtime Environment 1.6.0_30 (headless)
|
|
|
|
println net.sourceforge.filebot.Settings.javaRuntimeIdentifier
|
|
|
|
|
|
|
|
// 32-bit Java HotSpot(TM) Client VM
|
|
|
|
println String.format('%d-bit %s', com.sun.jna.Platform.is64Bit() ? 64 : 32, _system['java.vm.name'])
|
|
|
|
|
|
|
|
// Windows 7 (x86)
|
|
|
|
println String.format('%s (%s)', _system['os.name'], _system['os.arch'])
|
2013-10-23 01:24:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// check for updates
|
|
|
|
try {
|
|
|
|
def update = new net.sourceforge.filebot.web.CachedXmlResource(net.sourceforge.filebot.Settings.getApplicationProperty('update.url')).get().xml
|
|
|
|
def latestRev = update.revision.text() as int
|
|
|
|
def latestApp = update.name.text()
|
|
|
|
|
|
|
|
if (latestRev > net.sourceforge.filebot.Settings.applicationRevisionNumber) {
|
|
|
|
println "\n--- UPDATE AVAILABLE: $latestApp (r$latestRev) ---\n"
|
|
|
|
}
|
|
|
|
} catch(Throwable error) {
|
|
|
|
// ignore
|
|
|
|
}
|