mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Bump cloudinary from 1.28.0 to 1.28.1 (#1615)
* Bump cloudinary from 1.28.0 to 1.28.1 Bumps [cloudinary](https://github.com/cloudinary/pycloudinary) from 1.28.0 to 1.28.1. - [Release notes](https://github.com/cloudinary/pycloudinary/releases) - [Changelog](https://github.com/cloudinary/pycloudinary/blob/master/CHANGELOG.md) - [Commits](https://github.com/cloudinary/pycloudinary/compare/1.28.0...1.28.1) --- updated-dependencies: - dependency-name: cloudinary dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Update cloudinary==1.28.1 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
This commit is contained in:
parent
2829041dc3
commit
515a5d42d3
5 changed files with 20 additions and 21 deletions
|
@ -130,6 +130,22 @@ __SERIALIZED_UPLOAD_PARAMS = [
|
|||
|
||||
upload_params = __SIMPLE_UPLOAD_PARAMS + __SERIALIZED_UPLOAD_PARAMS
|
||||
|
||||
_SIMPLE_TRANSFORMATION_PARAMS = {
|
||||
"ac": "audio_codec",
|
||||
"af": "audio_frequency",
|
||||
"br": "bit_rate",
|
||||
"cs": "color_space",
|
||||
"d": "default_image",
|
||||
"dl": "delay",
|
||||
"dn": "density",
|
||||
"f": "fetch_format",
|
||||
"g": "gravity",
|
||||
"p": "prefix",
|
||||
"pg": "page",
|
||||
"sp": "streaming_profile",
|
||||
"vs": "video_sampling",
|
||||
}
|
||||
|
||||
SHORT_URL_SIGNATURE_LENGTH = 8
|
||||
LONG_URL_SIGNATURE_LENGTH = 32
|
||||
|
||||
|
@ -402,23 +418,8 @@ def generate_transformation_string(**options):
|
|||
"vc": video_codec,
|
||||
"z": normalize_expression(options.pop('zoom', None))
|
||||
}
|
||||
simple_params = {
|
||||
"ac": "audio_codec",
|
||||
"af": "audio_frequency",
|
||||
"br": "bit_rate",
|
||||
"cs": "color_space",
|
||||
"d": "default_image",
|
||||
"dl": "delay",
|
||||
"dn": "density",
|
||||
"f": "fetch_format",
|
||||
"g": "gravity",
|
||||
"p": "prefix",
|
||||
"pg": "page",
|
||||
"sp": "streaming_profile",
|
||||
"vs": "video_sampling",
|
||||
}
|
||||
|
||||
for param, option in simple_params.items():
|
||||
for param, option in _SIMPLE_TRANSFORMATION_PARAMS.items():
|
||||
params[param] = options.pop(option, None)
|
||||
|
||||
variables = options.pop('variables', {})
|
||||
|
@ -545,7 +546,7 @@ def process_radius(param):
|
|||
raise ValueError("Invalid radius param")
|
||||
return ':'.join(normalize_expression(t) for t in param)
|
||||
|
||||
return str(param)
|
||||
return normalize_expression(str(param))
|
||||
|
||||
|
||||
def process_params(params):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue