Commit Graph

70 Commits

Author SHA1 Message Date
Reinhard Pointner 0678aa646a Inject ExpressionFormatFunctions via extensionClasses instead of starImports 2019-05-25 01:34:58 +07:00
Reinhard Pointner 015314e5f5 Added {cy} collection years binding and {movie.collection} extension method 2019-05-15 10:04:23 +07:00
Reinhard Pointner 3f2a8ee5a6 Support "guarded expressions" when concatting String values.
e.g. {"[" + {n} + " " + {s00e00} + "]"}

https://www.filebot.net/forums/viewtopic.php?f=8&t=10719
2019-04-24 14:44:09 +07:00
Reinhard Pointner 2911ea488a Move DSL utilities 2019-04-24 13:58:41 +07:00
Reinhard Pointner 4979de00f7 Backwards compatibility: Make sure String.replaceAll(String) defaults to String.replaceAll(String, "") 2019-03-07 11:09:03 +07:00
Reinhard Pointner 9d08f5f192 az.match('[a-f]': '/volume1', '[g-x]': '/volume2') ?: '/volume3' 2019-02-26 14:02:04 +07:00
Reinhard Pointner 6856275a42 Refactor ExpressionFormatMethods 2019-02-23 17:20:31 +07:00
Reinhard Pointner 8c8e1045fb Add String.initialName() for "James Cameron" ➔ "J. Cameron" 2019-02-22 18:57:52 +07:00
Reinhard Pointner a7c736d40b Fix dateutil methods in case groovy extension methods dont work 2018-12-03 03:23:37 +07:00
Reinhard Pointner 1710681ff6 Fix dateutil methods in case groovy extension methods dont work 2018-12-03 03:19:54 +07:00
Reinhard Pointner 9bc99007e1 Don't use sortName() transformation when applying String.acronym()
https://www.filebot.net/forums/viewtopic.php?f=8&t=5969
2018-06-06 16:57:51 +07:00
Reinhard Pointner 736018deb4 Easy access to TheMovieDB Alternative Titles in custom formats via Movie.getAlternativeTitles() extension function 2018-05-28 15:07:16 +07:00
Reinhard Pointner a9aa5d8ae1 Add Long.toDate() convenience method 2018-04-24 14:15:59 +07:00
Reinhard Pointner 8563ae349f Reduce String.replacePart() false positive rate
https://www.filebot.net/forums/viewtopic.php?f=5&t=4068&p=32229#p32229
2018-02-05 13:55:33 +07:00
Reinhard Pointner a28d2e4ccf Added String.isLatin()
@see https://www.filebot.net/forums/viewtopic.php?f=5&t=2&p=28963#p28963
2017-06-21 09:19:14 +08:00
Reinhard Pointner 395ec3a4b8 Added String.isLatin()
@see https://www.filebot.net/forums/viewtopic.php?f=5&t=2&p=28963#p28963
2017-06-21 09:18:04 +08:00
Reinhard Pointner c8d98d2089 Fix Fix 2017-04-11 17:48:02 +08:00
Reinhard Pointner 8649f506a4 Make sure that BigDecimal.round() works out of the box without having to convert to double first 2017-04-09 16:01:45 +08:00
Reinhard Pointner 3511f08344 Improved support for custom Duration formats 2017-03-27 19:39:30 +08:00
Reinhard Pointner d6a8dfc00e Added {dt} timestamp binding 2017-02-27 04:48:39 +08:00
Reinhard Pointner 2a5ebbc7f1 Added {location} binding for dynamically resolving GPS -> Address via maps.googleapis.com 2017-02-26 04:28:06 +08:00
Reinhard Pointner bd826cb297 {d} and {y} now evaluate to Exif Date-Taken if possible when dealing with generic files 2017-02-25 19:13:33 +08:00
Reinhard Pointner 133572f196 Hide constructor in utility classes 2017-02-14 21:26:04 +08:00
Reinhard Pointner ac67a9b1af plex.derive{...} most not allow / injection into the file path 2017-02-04 02:56:00 +08:00
Reinhard Pointner 892e0d70fb Added File.getTail()
e.g. {plex.tail}
2017-01-27 17:45:17 +08:00
Reinhard Pointner 815cda5f2d Add List.bounds() 2016-12-22 20:37:52 +08:00
Reinhard Pointner 6090fab9eb Add List.bounds() 2016-12-22 20:32:44 +08:00
Reinhard Pointner e7a4140426 Fix upperInitial/lowerTrail behavior when there are apostrophes (e.g. He'll)
@see https://www.filebot.net/forums/viewtopic.php?f=5&t=4500
2016-12-14 23:58:54 +08:00
Reinhard Pointner 3f10b3265b Don't use Roman Numeral Unicode characters 2016-11-22 18:49:31 +08:00
Reinhard Pointner 894f76d8bc Replace numbers 1..12 with Roman numerals
e.g. "Star Wars: Episode 4" -> "Star Wars: Episode IV"
2016-11-22 09:59:42 +08:00
Reinhard Pointner 7feeb0a3be Refactor MediaBindingBean error handling 2016-11-13 19:12:30 +08:00
Reinhard Pointner bcabaa61e2 findWordMatch 2016-11-06 15:12:22 +08:00
Reinhard Pointner c7f5fe9364 Experimental support for episode level extended info (only supported with TheTVDB data) 2016-10-31 07:58:27 +08:00
Reinhard Pointner 256b5be2d3 Experimental support for episode level extended info (only supported with TheTVDB data) 2016-10-31 07:19:11 +08:00
Reinhard Pointner 956e284b11 Refactor ExpressionFormatMethods 2016-10-12 04:56:56 +08:00
Reinhard Pointner 2cdebbfbd1 Use expression unwind behaviour (i.e. throw exceptions) in check / joining / joiningDistinct 2016-10-10 21:31:39 +08:00
Reinhard Pointner 2e5484d2ec Use expression unwind behaviour (i.e. throw exceptions) in check / joining / joiningDistinct 2016-10-10 21:29:55 +08:00
Reinhard Pointner db85b77dad Added List.joining(delim, prefix, suffix) convenience method 2016-10-08 23:13:07 +08:00
Reinhard Pointner c5be87c213 Deal with different kinds of colon properly 2016-09-26 18:53:20 +08:00
Reinhard Pointner d745be08ab Helper for adding custom tags to the standard Plex name (after name but before subtitle language tag)
e.g. plex.derive{" by $director"}{" [$vc, $ac]"}
2016-09-20 13:56:10 +08:00
Reinhard Pointner 21a68272ec The Collection.join() extension method somehow interferes with the Groovy runtime (e.g. 'hello'.tr('aeiou', 'AEIOU') fails) 2016-08-07 05:20:16 +08:00
Reinhard Pointner 0acd0e885a Replace slash and backslash to make sure the result is not a file path. 2016-05-04 23:27:49 +08:00
Reinhard Pointner 41e445543a Pick first non-empty capturing group 2016-04-06 07:16:30 +00:00
Reinhard Pointner d76b74b13f String.matchAll() should work like String.match() 2016-04-03 03:30:29 +00:00
Reinhard Pointner 0ac8d2d6cc Fix https://www.filebot.net/forums/viewtopic.php?f=5&t=3579&p=20057#p20057 2016-04-01 17:48:01 +00:00
Reinhard Pointner 7279c52b2b Update movie format examples with some basics for the noobs 2016-03-30 16:43:45 +00:00
Reinhard Pointner c9bbdf5e65 Make non-String objects behave more like String objects in format expressions 2016-03-28 10:13:55 +00:00
Reinhard Pointner fd2ee64c9f Fix unexpected Groovy side effects (e.g. Set += String) 2016-03-26 10:32:23 +00:00
Reinhard Pointner 6afd3b9094 Organize Imports 2016-03-26 07:44:03 +00:00
Reinhard Pointner 564d11294d Make format engine a little bit more n00b friendly 2016-03-24 11:13:44 +00:00