File hasing plugin for Flexget
stop
and time
are in the schema, they are not implemented yet.hashlib.algorithms_available
file_hash: yes
file_hash: sha1
size
, start
, stop
.
start
and stop
could be either smaller or larger than size
.start
position is larger than size of the file, one of two things will happen:
size
, start
is set to 0, ORsize
(but still smaller than start
), start
will be set to the size of the file minus size
templates:
file_hash_basic:
<<: *any-file-input-plugin
file_hash: yes
file_hash_basic_extended: # These are the settings when you use "file_hash: yes"
<<: *any-file-input-plugin
file_hash:
algorithm: blake2b # Or if your system doesn't have blake2b, this will be md5
size: 25
start: 50
file_hash_algorithm:
<<: *any-file-input-plugin
file_hash: sha1
file_hash_advanced:
<<: *any-file-input-plugin
file_hash:
algorithm: sha256 # Optional, default will be chosen if this is not set
size: 1 # Will hash 1MiB of the given file
start: 25 # Will start at 25MiB into the file, see usage for how this applies to files smaller than this value