mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
0320f15e96
1 changed files with 18 additions and 0 deletions
|
@ -112,6 +112,24 @@ namespace MediaBrowser.Common.Net
|
|||
return "application/xml";
|
||||
}
|
||||
|
||||
// Type document
|
||||
if (ext.Equals(".pdf", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "application/pdf";
|
||||
}
|
||||
if (ext.Equals(".mobi", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "application/x-mobipocket-ebook";
|
||||
}
|
||||
if (ext.Equals(".epub", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "application/epub+zip";
|
||||
}
|
||||
if (ext.Equals(".cbz", StringComparison.OrdinalIgnoreCase) || ext.Equals(".cbr", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "application/x-cdisplay";
|
||||
}
|
||||
|
||||
// Type image
|
||||
if (ext.Equals(".gif", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue