mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 21:15:06 +00:00
fix(api): show filename codec and range labels in codec_display and range_display
This commit is contained in:
@@ -333,10 +333,10 @@ When you give both `season` and `episode`, the server combines them into a `"{se
|
||||
"title": { "type": "movie", "name": "Example Movie", "id": "12345", "year": 2021 },
|
||||
"video": [
|
||||
{
|
||||
"id": "v-1", "codec": "H265", "codec_display": "HEVC",
|
||||
"id": "v-1", "codec": "HEVC", "codec_display": "H.265",
|
||||
"bitrate": 8000, "bitrate_bps": 8000000, "width": 3840, "height": 2160,
|
||||
"resolution": "2160p", "fps": "24", "range": "HDR10",
|
||||
"range_display": "HDR10", "scan_type": null, "closed_captions": [],
|
||||
"range_display": "HDR", "scan_type": null, "closed_captions": [],
|
||||
"dv_compatible_bitstream": false, "hdr10plus": false, "hdr10_base": false, "language": "en",
|
||||
"is_original_lang": true,
|
||||
"name": null, "track_name": "English", "needs_repack": false, "edition": [], "data": null,
|
||||
@@ -345,7 +345,7 @@ When you give both `season` and `episode`, the server combines them into a `"{se
|
||||
],
|
||||
"audio": [
|
||||
{
|
||||
"id": "a-1", "codec": "EC3", "codec_display": "DD+",
|
||||
"id": "a-1", "codec": "EC3", "codec_display": "DDP",
|
||||
"bitrate": 640, "bitrate_bps": 640000, "channels": "5.1", "language": "en",
|
||||
"is_original": true, "is_original_lang": true, "atmos": false, "joc": 0,
|
||||
"descriptive": false, "name": null, "track_name": "English", "needs_repack": false, "edition": [],
|
||||
|
||||
@@ -91,6 +91,9 @@ For `hdr`, unshackle renames each part of a Dolby Vision label separately, so `H
|
||||
changes `DV.HDR10P` to `DV.HDR10+`. When an audio name ends in a digit, `audio_full` puts a
|
||||
separator before the channels: `EAC3.5.1`, not `EAC35.1`.
|
||||
|
||||
The REST API fields `codec_display` and `range_display` use the same names and the same map.
|
||||
The `dl --export` file name does not use `codec_names`.
|
||||
|
||||
!!! note "`tag_rules` see the new names"
|
||||
unshackle evaluates [`tag_rules`](#tag_rules) after the rename. With the example above, a
|
||||
rule must match `audio: EAC3`, not `audio: DDP`.
|
||||
|
||||
Reference in New Issue
Block a user