aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Net/MimeTypes.cs
AgeCommit message (Collapse)Author
2025-07-14vob file support (#14471)FJOX.win
2025-01-26Use MediaTypeNames where possible (#13440)Bond-009
2024-11-30Resolve audio/x-aac to .aacBond_009
2024-09-04Use frozen collections in MimeTypes.cs (#10826)Stepan Goremykin
Co-authored-by: Stepan Goremykin <goremukin@gmail.com>
2024-02-15Add missing MIME types for comicbook formats (#11010)Robert Lützner
* 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-10Correct m4b mimetype (#10980)felix920506
2023-02-16Verify ContentType of uploaded imagesBond_009
2022-12-07Use ArgumentException.ThrowIfNullOrEmptyBond_009
2022-01-04Remove incorrect mime type image/jpgBond_009
2021-12-25Add image/jpg to extension lookupCody Robibero
2021-12-12Use correct jpeg MIME typeBond_009
image/jpg isn't a valid MIME type
2021-12-04Refactor MimeTypes.ToExtension()Ahmed Rafiq
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-12-04Update documentationAhmed Rafiq
2021-12-04Use MimeTypes package to determine MIME typeAhmed Rafiq
This simplifies the code since we don't have to keep large mappings of extensions and MIME types. We still keep the ability to override the mappings for: - filling in entries not present in the package, for e.g. ".azw3" - picking preferred extensions, for e.g. MimeTypes provides ".conf" as a possible extionsion for "text/plain", and while that is correct, ".txt" would be preferrable - compatibility reasons
2021-11-16Fix some warningsBond_009
2021-09-24Address commentsBond_009
2021-09-24Target net6.0Bond_009
2021-09-19Reduce allocationsBond_009
2021-02-20Enable TreatWarningsAsErrors for MediaBrowser.ModelBond_009
2020-11-13Fix nullability errors in MediaBrowser.Modelcrobibero
2020-11-13Fix nullability errors in Jellyfin.Api (part 1)crobibero
2020-09-04Fix aac mime-typeBill Thornton
2020-05-27Merge branch 'master' into nullable3Bond_009
2020-05-20Add .edl Mimetypeartiume
2020-05-15Update MimeTypes.csartiume
2020-05-15Add opf mimetypeartiume
2020-05-07Remove ogg video mimetypeartiume
2020-05-06Update MimeTypes.csartiume
2020-05-06Update MediaBrowser.Model/Net/MimeTypes.csartiume
2020-05-06Update MediaBrowser.Model/Net/MimeTypes.csartiume
Co-authored-by: dkanada <dkanada@users.noreply.github.com>
2020-05-05Add missing commaMark Monteiro
2020-05-05add azw3artiume
2020-05-04Update MimeTypes.csartiume
2020-05-03Update MimeTypes.csartiume
2020-04-17Add mime type for .mpegts files.randrey
2020-04-17Add mime types for ape and wv files.randrey
2020-04-05Enable nullabe reference types for MediaBrowser.ModelBond_009
2020-03-17add wasm mimetypeShawmon
2020-02-23Fix some warningsBond_009
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
2020-02-04Fix warnings MediaBrowser.ModelBond_009
2020-01-09Remove StringHelper functionsBond-009
2019-09-01Restore flac mime typeBill Thornton
2019-07-28Use a dictionary to look up mimetypesBond-009
2019-01-27Fix more analyzer warningsBond_009
2019-01-17Reformat JustAMan review pt2 changesErwin de Haan
Refs #575
2019-01-13ReSharper format: conform inline 'out' parameters.Erwin de Haan
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.ModelErwin de Haan
2019-01-13Visual Studio Reformat: MediaBrowser.ModelErwin de Haan
2019-01-10Mayor code cleanupErwin de Haan
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.