aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Net
AgeCommit message (Collapse)Author
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
2024-02-06Remove some unused model codePatrick Barron
2023-11-15Remove DLNA socket codePatrick Barron
2023-11-14Revert "Use System.Net.IPNetwork"Bond_009
This reverts commit 117d05d288da1d412159a29c0cb8d5c8259e48ae.
2023-11-14Use System.Net.IPNetworkBond_009
2023-10-11Refactor URI overrides (#10051)Tim Eisele
2023-06-15Merge branch 'master' into network-rewriteShadowghost
2023-06-10Add all websocket messages to generated openapi spec (#9682)Cody Robibero
* Add all websocket messages to generated openapi spec * Use oneOf * JsonIgnore ServerId * Oops * Add discriminators * Add WebSocketMessage container for Inbound and Outbound messages
2023-02-20Apply review suggestionsShadowghost
2023-02-20Merge branch 'master' into network-rewriteShadowghost
2023-02-17Replace ISocket and UdpSocket, fix DLNA and SSDP binding and discoveryShadowghost
2023-02-16Verify ContentType of uploaded imagesBond_009
2022-12-07Merge branch 'master' into network-rewriteShadowghost
2022-12-07Use ArgumentException.ThrowIfNullOrEmptyBond_009
2022-07-21Cleanup and fixesShadowghost
2022-07-21Enforce interface bindings on SSDP, add Loopback to LAN if no LAN definedShadowghost
2022-03-08SocketFactory: Remove redundant codeBond_009
ExclusiveAddressUse should be false by default afaik
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-11-09Remove some dead codeBond_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-14remove custom HttpExceptioncrobibero
2020-11-13Fix nullability errors in MediaBrowser.Modelcrobibero
2020-11-13Fix nullability errors in Jellyfin.Api (part 1)crobibero
2020-09-27Use SessionMessageType for WebSocket messagesNiels van Velzen
2020-09-04Fix aac mime-typeBill Thornton
2020-06-16Add full stop at end of comments (SA1629)telans
2020-06-15fix SA1508telans
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-14Merge branch 'master' into websocketMark Monteiro
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