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
Dlna Add EqualsAny for VideoCodecTag condition 2024-02-05 23:41:43 +08:00
Drawing
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
LiveTv Remove unused Live TV code 2024-01-15 13:29:55 -05:00
MediaInfo
Net Add missing MIME types for comicbook formats (#11010) 2024-02-15 23:15:14 +01:00
Notifications
Playlists
Plugins
Properties
Providers
Querying Remove some unused client capabilities and sync code (#10812) 2024-01-06 13:33:48 -07:00
QuickConnect
Search
Serialization
Session Fix some incompatible API deprecations 2024-02-06 22:23:31 +01:00
Subtitles
SyncPlay
System Fix some incompatible API deprecations 2024-02-06 22:23:31 +01:00
Tasks
Updates
Users
MediaBrowser.Model.csproj