jellyfin/tests
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
..
Jellyfin.Api.Tests Add unit test for log file not found 2024-02-03 19:10:08 -07:00
Jellyfin.Common.Tests Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00
Jellyfin.Controller.Tests Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00
Jellyfin.Extensions.Tests Fix tests 2023-12-18 22:02:31 +01:00
Jellyfin.LiveTv.Tests Move LiveTv to separate project 2024-01-09 10:16:56 -05:00
Jellyfin.MediaEncoding.Hls.Tests Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00
Jellyfin.MediaEncoding.Keyframes.Tests Always run code analyzers for tests projects (#9304) 2023-02-12 10:54:55 -07:00
Jellyfin.MediaEncoding.Tests test: add webm test 2024-01-09 10:40:21 +03:00
Jellyfin.Model.Tests Add missing MIME types for comicbook formats (#11010) 2024-02-15 23:15:14 +01:00
Jellyfin.Naming.Tests Fix tests 2023-12-18 22:02:31 +01:00
Jellyfin.Networking.Tests Fix tests 2023-12-18 22:02:31 +01:00
Jellyfin.Providers.Tests Fix tests 2023-12-18 22:02:31 +01:00
Jellyfin.Server.Implementations.Tests Move LiveTv tests to separate project 2024-01-09 09:47:07 -05:00
Jellyfin.Server.Integration.Tests Use helper function to compare guid (#10825) 2024-01-17 08:51:39 -07:00
Jellyfin.Server.Tests Revert "Use System.Net.IPNetwork" 2023-11-14 21:16:33 +01:00
Jellyfin.XbmcMetadata.Tests Merge branch 'master' into fix-resharper-warnings 2023-10-12 20:11:16 +02:00
Directory.Build.props Update to .NET 8 2023-11-14 21:12:16 +01:00
coverletArgs.runsettings SkipAutoProps is true by default but set it explicitly 2023-12-31 15:24:23 +01:00
jellyfin-tests.ruleset Disable xUnit1028 2023-09-01 09:35:48 -06:00