mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-02 00:15:02 -04:00
Added season years binding {sy}
This commit is contained in:
parent
2c1757faad
commit
759d5c9a94
@ -698,10 +698,15 @@ public class MediaBindingBean {
|
||||
}
|
||||
|
||||
@Define("episodelist")
|
||||
public Object getEpisodeList() throws Exception {
|
||||
public List<Episode> getEpisodeList() throws Exception {
|
||||
return WebServices.getEpisodeListProvider(getSeriesInfo().getDatabase()).getEpisodeList(getSeriesInfo().getId(), SortOrder.forName(getSeriesInfo().getOrder()), new Locale(getSeriesInfo().getLanguage()));
|
||||
}
|
||||
|
||||
@Define("sy")
|
||||
public List<Integer> getSeasonYears() throws Exception {
|
||||
return getEpisodeList().stream().filter(e -> getSeasonNumber().equals(e.getSeason()) && e.getAirdate() != null).map(e -> e.getAirdate().getYear()).sorted().distinct().collect(toList());
|
||||
}
|
||||
|
||||
@Define("localize")
|
||||
public Object getLocalizedInfoObject() throws Exception {
|
||||
return new DynamicBindings(key -> {
|
||||
|
@ -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, type, 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, mediaTitle, age, duration, seconds, minutes, media, 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, sxe, s00e00, t, d, startdate, absolute, es, sy, special, episode, series, primaryTitle, alias, movie, tmdbid, imdbid, pi, pn, lang, subt, plex, az, type, 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, mediaTitle, age, duration, seconds, minutes, media, 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
|
||||
|
Loading…
Reference in New Issue
Block a user