Reinhard Pointner
a9285d53fd
[!] Stream.count() may short-circuit and not traverse any elements at all.
...
@apiNote
An implementation may choose to not execute the stream pipeline (either sequentially or in parallel) if it is capable of computing the count directly from the stream source. In such cases no source elements will be traversed and no intermediate operations will be evaluated. Behavioral parameters with side-effects, which are strongly discouraged except for harmless cases such as debugging, may be affected. For example, consider the following stream:
List<String> l = Arrays.asList("A", "B", "C", "D");
long count = l.stream().peek(System.out::println).count();
The number of elements covered by the stream source, a List, is known and the intermediate operation, peek, does not inject into or remove elements from the stream (as may be the case for flatMap or filter operations). Thus the count is the size of the List and there is no need to execute the pipeline and, as a side-effect, print out the list elements.
2019-05-20 13:13:12 +07:00
Reinhard Pointner
6fb43e79b7
Add File.getDisplaySize() extension method
2019-05-20 00:28:21 +07:00
Reinhard Pointner
9c21465e50
Sleep limits don't work
2019-05-19 20:38:24 +07:00
Reinhard Pointner
175b4df976
Stick to 1nd pass with Manami
2019-05-19 20:28:03 +07:00
Reinhard Pointner
6d93c99376
Fix logging & anti-abuse limits
2019-05-19 19:34:33 +07:00
Reinhard Pointner
c9478ffeba
Allow *.groovy
files as argument value for --format
, --filter
and --file-filter
CLI options (e.g. --format /path/to/MyFormat.groovy
)
2019-05-19 18:54:58 +07:00
Reinhard Pointner
e3ff4525c0
Allow *.groovy
files as argument value for --format
, --filter
and --file-filter
CLI options (e.g. --format /path/to/MyFormat.groovy
)
2019-05-19 18:41:46 +07:00
Reinhard Pointner
d9ab6f7acb
Fix multi-scale updates
2019-05-19 18:34:08 +07:00
Reinhard Pointner
8425a10810
Fix multi-scale updates
2019-05-19 17:13:18 +07:00
Reinhard Pointner
e9aadf2c6d
Fix multi-scale updates
2019-05-19 17:12:00 +07:00
Reinhard Pointner
8c9e1787b4
Fix multi-scale updates
2019-05-19 16:55:01 +07:00
Reinhard Pointner
b20f6932e4
Improved -mediainfo -exec
pipeline
2019-05-19 16:30:20 +07:00
Reinhard Pointner
61aa3cbbdb
* Added -no-history
CLI option
2019-05-19 16:29:26 +07:00
Reinhard Pointner
98799eb827
2nd pass without Manami
2019-05-19 13:16:35 +07:00
Reinhard Pointner
1ebe2a350c
Refactor Manami
2019-05-19 13:16:14 +07:00
Reinhard Pointner
616f361b0b
Added -no-history switch
2019-05-19 12:47:17 +07:00
Reinhard Pointner
e35e905fa9
Streamify --filter --format -exec pipeline
2019-05-19 04:01:12 +07:00
Reinhard Pointner
9bc0871b92
Streamify --filter --format -exec pipeline
2019-05-19 03:54:01 +07:00
Reinhard Pointner
8b71eda926
Make --format -exec pipeline more stateless
2019-05-19 03:52:33 +07:00
Reinhard Pointner
2838a8f976
Streamify --filter --format -exec pipeline
2019-05-19 03:48:10 +07:00
Reinhard Pointner
a11b405931
Streamify --filter --format -exec pipeline
2019-05-19 03:30:53 +07:00
Reinhard Pointner
318e9af191
Implement non-manami artwork support as well just in case
2019-05-18 23:52:36 +07:00
Reinhard Pointner
f4ff6b10dd
Implement non-manami artwork support as well just in case
2019-05-18 23:51:41 +07:00
Reinhard Pointner
d5e21795e4
Require non-place holder URIs
2019-05-18 23:11:12 +07:00
Reinhard Pointner
785072f159
Check dead entries
2019-05-18 22:46:27 +07:00
Reinhard Pointner
7ed492cdc6
Closure style
2019-05-18 22:46:13 +07:00
Reinhard Pointner
6398526b57
Experiment with artwork thumbnail support
2019-05-18 22:10:12 +07:00
Reinhard Pointner
6239dbb1c8
Experiment with artwork thumbnail support
2019-05-18 21:07:56 +07:00
Reinhard Pointner
ed1a0fa09c
Experiment with artwork thumbnail support
2019-05-18 20:48:36 +07:00
Reinhard Pointner
45e491e962
Fix copy & paste programming
2019-05-18 20:27:32 +07:00
Reinhard Pointner
62a4b9af8f
compress="yes" level="9"
2019-05-18 11:09:02 +07:00
Reinhard Pointner
bd9b0415ff
Fix JDK8 patch
2019-05-18 03:04:33 +07:00
Reinhard Pointner
d28df06818
Allow custom parallelism for formats
2019-05-18 02:26:57 +07:00
Reinhard Pointner
b6251a7aa5
Allow custom parallelism for formats
2019-05-18 02:15:52 +07:00
Reinhard Pointner
468ded44aa
Cache MediaInfo objects for up to 20 minutes to make sure we benefit from cached information even when processing files on network drives, especially when --filter is used followed by --format with lots of MediaInfo bindings.
...
https://www.filebot.net/forums/viewtopic.php?f=6&p=44112#p44111
2019-05-18 01:40:32 +07:00
Reinhard Pointner
4ef1ebe052
Fix JDK8 patch
2019-05-17 21:11:45 +07:00
Reinhard Pointner
79ee700001
Experiment with @2x artwork thumbnail support
2019-05-17 19:03:19 +07:00
Reinhard Pointner
fadebfae61
Better upscale icons to @3x or @4x (if necessary)
2019-05-17 18:10:31 +07:00
Reinhard Pointner
fab38b54a1
Use the same key type for all cache entries
2019-05-17 00:03:35 +07:00
Reinhard Pointner
674170a250
Experiment with @2x artwork thumbnail support
2019-05-16 23:19:42 +07:00
Reinhard Pointner
6f0e424414
Experiment with @2x artwork thumbnail support
2019-05-16 22:59:13 +07:00
Reinhard Pointner
a69f51036c
Experiment with @2x artwork thumbnail support
2019-05-16 22:55:45 +07:00
Reinhard Pointner
fdec4090d2
Load multi-resolution images only if necessary
2019-05-16 20:45:00 +07:00
Reinhard Pointner
431cff4f4e
Experiment with artwork thumbnail support
2019-05-16 20:12:59 +07:00
Reinhard Pointner
889d411c44
Experiment with artwork thumbnail support
2019-05-16 19:55:10 +07:00
Reinhard Pointner
a05ab703ff
Require Movie / Episode category files to be video files
2019-05-15 21:21:35 +07:00
Reinhard Pointner
ded4b33ca6
Add movie / series / episode extension properties to the built-in help
2019-05-15 10:13:12 +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
8bdb76b914
Update all dependencies to the latest
2019-05-14 19:11:25 +07:00
Reinhard Pointner
f3308493f7
Ensure JNA 4.x compatibility (i.e. use JNA package on Linux)
2019-05-14 18:49:58 +07:00