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 Enable nullable in more files 2021-07-26 23:02:32 +02:00
ApiClient Enable nullability for ServerDiscoveryInfo (#5804) 2021-04-15 15:39:59 +02:00
Branding Backport pull request #9060 from jellyfin/release-10.8.z 2023-01-22 14:05:38 -05:00
Channels Enable nullable for more files 2021-10-26 13:56:30 +02:00
Collections Fix some warnings 2020-02-23 12:11:43 +01:00
Configuration Add option to use replaygain tags for audio (#10566) 2024-01-06 13:59:56 -07:00
Cryptography Remove redundant 'else' keywords 2023-04-06 19:38:34 +02:00
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 Fix image searching to prioritize explicit language match if searching in English (#8946) 2022-12-29 15:15:48 +01:00
Globalization Extend language code handling 2023-03-09 14:38:20 +01:00
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 Remove Emby.Notifications (#9147) 2023-01-28 07:43:55 -07:00
Playlists Convert string MediaType to enum MediaType 2023-10-10 15:57:15 -06:00
Plugins Update StyleCop 2021-12-24 18:28:27 +01:00
Properties Move StreamBuilderTests to correct project (#7461) 2022-03-18 22:19:02 +01:00
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 Fix issues with QuickConnect and AuthenticationDb 2021-06-23 21:07:08 -06:00
Search Convert string MediaType to enum MediaType 2023-10-10 15:57:15 -06:00
Serialization Remove custom Json serializer 2020-12-23 13:24:34 +01:00
Session Fix some incompatible API deprecations 2024-02-06 22:23:31 +01:00
Subtitles fix lint 2020-08-20 15:17:42 +08:00
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 Enable nullable for more files 2023-02-15 23:41:28 +01:00
Updates Replace == null with is null 2022-12-05 15:00:20 +01:00
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