bazarr/libs/subliminal
Michiel van Baak 87fbd196a4
Make subliminal always mangle cache keys to prevent long filenames
* Use dogpile.cache sha1_mangle_key to mangle cache keys

When using the subtitle hashes as cache keys, sometimes they come
out as filenames of 270 characters.
Not a lot of filesystems out there support filenames with over 250
characters.
This behaviour was reported with ext4 and zfs on both linux and FreeBSD.

The dogpile.cache utils come with a function that returns a hex digest
of the key, limiting the filename to a fixed length of 40 characters.

* Set region to subliminal.region and only then configure it, instead of assigning the result of configure to the property

* Make sure subliminal ALWAYS mangles keys with the sha1 to prevent filenames that are too long
2021-03-13 18:04:18 -05:00
..
converters WIP 2019-09-16 22:04:27 -04:00
providers Upgraded GuessIt to 3.0.1 2020-05-20 11:29:39 -04:00
refiners Upgraded GuessIt to 3.0.1 2020-05-20 11:29:39 -04:00
__init__.py WIP 2019-09-16 22:04:27 -04:00
cache.py Make subliminal always mangle cache keys to prevent long filenames 2021-03-13 18:04:18 -05:00
cli.py WIP 2019-09-16 22:04:27 -04:00
core.py WIP 2019-09-16 22:04:27 -04:00
exceptions.py WIP 2019-09-16 22:04:27 -04:00
extensions.py WIP 2019-09-16 22:04:27 -04:00
score.py Upgraded GuessIt to 3.0.1 2020-05-20 11:29:39 -04:00
subtitle.py Upgraded GuessIt to 3.0.1 2020-05-20 11:29:39 -04:00
utils.py WIP 2019-09-16 22:04:27 -04:00
video.py Upgraded GuessIt to 3.0.1 2020-05-20 11:29:39 -04:00