jellyfin/MediaBrowser.Model
Robert Lützner 2bd85df383
Add missing MIME types for comicbook formats (#11010)
* Correct MIME types for comicbook file extensions

cb7, cba, cbr, cbt and cbz all refer to different types of digital
comicbooks. The last letter of the extension indicates the compression
algorithm that was used: 7zip, arc, rar, tar or zip.

All these filetypes used to have the `application/x-cbr` MIME type
assigned to them. However, that has since been deprecated and was
replaced with

- `application/vnd.comicbook-rar` for rar compressed files and
- `application/vnd.comicbook+zip` for rar compressed files.

Only these two are officially listed by IANA

https://www.iana.org/assignments/media-types/application/vnd.comicbook+zip

. cbr and cbz are by far the most common file extensions for comicbooks.

There's no official MIME type for cb7, cba or cbt files. However, with
rar being a proprietary compression algorithm, FOSS applications will
often refuse to handle files that identify themselves as
`application/x-cbr`, so I decided to assign extension specific MIME
types to them. I've seen these being used by other applications,
specifically comic book readers.

I've read through the docs on iana.org, but haven't figured out why they
chose `-rar`, but `+zip`.

* Add conversions from MIME type to file extensions for comicbook formats

cb7, cba, cbr, cbt and cbz all refer to different types of digital
comicbooks. The last letter of the extension indicates the compression
algorithm that was used: 7zip, arc, rar, tar or zip.

All these filetypes used to have the `application/x-cbr` MIME type
assigned to them. However, that has since been deprecated and was
replaced with

- `application/vnd.comicbook-rar` for rar compressed files and
- `application/vnd.comicbook+zip` for rar compressed files.

Only these two are officially listed by IANA

https://www.iana.org/assignments/media-types/application/vnd.comicbook+zip

. cbr and cbz are by far the most common file extensions for comicbooks.

There's no official MIME type for cb7, cba or cbt files. However, with
rar being a proprietary compression algorithm, FOSS applications will
often refuse to handle files that identify themselves as
`application/x-cbr`, so I decided to assign extension specific MIME
types to them. I've seen these being used by other applications,
specifically comic book readers.

* Update CONTRIBUTORS.md
2024-02-15 23:15:14 +01:00
..
Activity
ApiClient
Branding
Channels
Collections
Configuration Add option to use replaygain tags for audio (#10566) 2024-01-06 13:59:56 -07:00
Cryptography
Devices Update /Device endpoint to return CustomName 2023-10-17 17:25:41 +08:00
Dlna Add EqualsAny for VideoCodecTag condition 2024-02-05 23:41:43 +08:00
Drawing Jellyfin.Drawing minor improvements 2023-10-08 17:10:04 +02:00
Dto Remove some unused model code 2024-02-06 10:15:29 -05:00
Entities Remove some unused model code 2024-02-06 10:15:29 -05:00
Extensions
Globalization
IO Remove unused Live TV code 2024-01-15 13:29:55 -05:00
Library Convert CollectionType, SpecialFolderType to enum (#9764) 2023-11-09 14:00:29 -07:00
LiveTv Remove unused Live TV code 2024-01-15 13:29:55 -05:00
MediaInfo Fix subtitle encoder if webvtt is requested 2023-08-02 15:15:41 +03:00
Net Add missing MIME types for comicbook formats (#11010) 2024-02-15 23:15:14 +01:00
Notifications
Playlists Convert string MediaType to enum MediaType 2023-10-10 15:57:15 -06:00
Plugins
Properties
Providers Add a Book ExternalIdMediaType 2023-10-08 01:08:57 +02:00
Querying Remove some unused client capabilities and sync code (#10812) 2024-01-06 13:33:48 -07:00
QuickConnect
Search Convert string MediaType to enum MediaType 2023-10-10 15:57:15 -06:00
Serialization
Session Fix some incompatible API deprecations 2024-02-06 22:23:31 +01:00
Subtitles
SyncPlay Add all websocket messages to generated openapi spec (#9682) 2023-06-10 07:28:21 -06:00
System Fix some incompatible API deprecations 2024-02-06 22:23:31 +01:00
Tasks
Updates
Users Validate AuthenticationProviderId and PasswordResetProviderId (#10553) 2023-11-10 07:51:44 -07:00
MediaBrowser.Model.csproj Update deps 2023-11-16 00:50:48 +01:00