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
175b4df976
Stick to 1nd pass with Manami
2019-05-19 20:28:03 +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
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
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
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
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
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
f3308493f7
Ensure JNA 4.x compatibility (i.e. use JNA package on Linux)
2019-05-14 18:49:58 +07:00
Reinhard Pointner
744f61a291
Prefer direct descendant video files when formatting folder objects
...
https://www.filebot.net/forums/viewtopic.php?f=8&t=10797
2019-05-12 02:11:41 +07:00
Reinhard Pointner
f58cffda34
Dark Mode fine-tuning
2019-05-08 23:26:41 +07:00
Reinhard Pointner
93a41a41f1
Enable dark mode by default if dark mode is set system-wide
2019-05-08 10:32:53 +07:00
Reinhard Pointner
7b6d154392
Use both "Channel(s)_Original" or "Channel(s)" just use the first one that actually has a valid value.
...
https://www.filebot.net/forums/viewtopic.php?f=5&t=10773&p=43876#p43869
2019-05-07 03:25:55 +07:00
Reinhard Pointner
570e5ecbee
Use both "Channel(s)_Original" or "Channel(s)" just use the first one that actually has a valid value.
...
https://www.filebot.net/forums/viewtopic.php?f=5&t=10773&p=43876#p43869
2019-05-07 03:17:17 +07:00
Reinhard Pointner
bc25174fdc
Implement XEM API
2019-05-06 19:54:12 +07:00
Reinhard Pointner
4b674db342
Implement XEM API
2019-05-06 17:28:30 +07:00
Reinhard Pointner
d0598ea9b9
Don't require minimum file size when using MediaInfo on small files (e.g. image files)
2019-05-06 15:50:20 +07:00
Reinhard Pointner
63aab06d3f
shared HTTP Client instance for all thumbnail requests
2019-05-05 15:43:18 +07:00
Reinhard Pointner
8380ed9f3c
Improved logging
2019-05-05 12:41:13 +07:00
Reinhard Pointner
3db219f1fb
Experiment with artwork thumbnail support
2019-05-05 12:23:31 +07:00
Reinhard Pointner
72f2f68d0e
Private lock
2019-05-05 04:59:59 +07:00
Reinhard Pointner
27095c51d0
Add blank thumbnail if poster is not available
2019-05-05 04:47:13 +07:00
Reinhard Pointner
ea583295f3
Generate index file
2019-05-05 00:34:49 +07:00
Reinhard Pointner
fdc2b6e473
Work around Java 11 HTTP Client TLS 1.3 bugs
2019-05-04 22:55:29 +07:00
Reinhard Pointner
bb686b5a27
Experiment with artwork thumbnail support
2019-05-04 19:15:56 +07:00