From 69db530d8a689a006a606d7566513e106d86ccac Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 5 May 2016 19:48:08 +0800 Subject: [PATCH] Added {bitdepth} binding --- source/net/filebot/format/MediaBindingBean.java | 7 +++++++ source/net/filebot/ui/rename/BindingDialog.properties | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 1f50d222..70c1c21f 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -392,6 +392,13 @@ public class MediaBindingBean { return join(dim, "x"); } + @Define("bitdepth") + public int getVideoBitDepth() { + String bitdepth = getMediaInfo(StreamKind.Video, 0, "BitDepth"); + + return Integer.parseInt(bitdepth); + } + @Define("ws") public String getWidescreen() { List dim = getDimension(); diff --git a/source/net/filebot/ui/rename/BindingDialog.properties b/source/net/filebot/ui/rename/BindingDialog.properties index f5fdca5a..34b1199e 100644 --- a/source/net/filebot/ui/rename/BindingDialog.properties +++ b/source/net/filebot/ui/rename/BindingDialog.properties @@ -2,4 +2,4 @@ parameter.exclude: ^StreamKind|^UniqueID|^StreamOrder|^ID|Count$ # preview expressions (keys are tagged so they can be sorted alphabetically) -expressions: n, y, s, e, es, sxe, s00e00, t, d, startdate, absolute, special, episode, series, primaryTitle, alias, movie, tmdbid, imdbid, pi, pn, lang, subt, plex, az, anime, regular, music, album, artist, albumArtist, actors, director, collection, genre, genres, languages, certification, rating, vc, ac, cf, vf, hpi, af, channels, resolution, dim, ws, sdhd, source, tags, s3d, group, original, fn, ext, mediaType, file, file.name, folder, folder.name, gigabytes, crc32, info, info.runtime, info.status, omdb.rating, omdb.votes, localize.German.title, age, duration, seconds, minutes, media, media.title, media.overallBitRateString, video[0], video[0].codecID, video[0].frameRate, video[0].displayAspectRatioString, video[0].scanType, audio[0], audio[0].bitRateString, audio[0].language, audio, audio.language, text[0], text[0].codecInfo, text[0].language, text, text.language +expressions: n, y, s, e, es, sxe, s00e00, t, d, startdate, absolute, special, episode, series, primaryTitle, alias, movie, tmdbid, imdbid, pi, pn, lang, subt, plex, az, anime, regular, music, album, artist, albumArtist, actors, director, collection, genre, genres, languages, certification, rating, vc, ac, cf, vf, hpi, af, channels, resolution, dim, bitdepth, ws, sdhd, source, tags, s3d, group, original, fn, ext, mediaType, file, file.name, folder, folder.name, gigabytes, crc32, info, info.runtime, info.status, omdb.rating, omdb.votes, localize.German.title, age, duration, seconds, minutes, media, media.title, media.overallBitRateString, video[0], video[0].codecID, video[0].frameRate, video[0].displayAspectRatioString, video[0].scanType, audio[0], audio[0].bitRateString, audio[0].language, audio, audio.language, text[0], text[0].codecInfo, text[0].language, text, text.language