diff --git a/tdutils/generate/generate_mime_types_gperf.cpp b/tdutils/generate/generate_mime_types_gperf.cpp index f816e68cc..f446969ec 100644 --- a/tdutils/generate/generate_mime_types_gperf.cpp +++ b/tdutils/generate/generate_mime_types_gperf.cpp @@ -27,7 +27,7 @@ static std::pair split(std::string s, char delimiter = } static bool generate(const char *file_name, const char *from_name, const char *to_name, - const std::map &map) { + const std::map &map) { // binary mode is needed for MSYS2 gperf std::ofstream out(file_name, std::ios_base::trunc | std::ios_base::binary); if (!out) { diff --git a/tdutils/generate/mime_types.txt b/tdutils/generate/mime_types.txt index a2d4abbf2..a0270fdc0 100644 --- a/tdutils/generate/mime_types.txt +++ b/tdutils/generate/mime_types.txt @@ -506,7 +506,6 @@ application/x-font-pcf pcf application/x-font-snf snf application/x-font-ttf ttf ttc application/x-font-type1 pfa pfb pfm afm -application/font-woff woff application/x-freearc arc application/x-futuresplash spl application/x-gca-compressed gca @@ -589,7 +588,7 @@ application/zip zip audio/adpcm adp audio/basic au snd audio/midi mid midi kar rmi -audio/mp4 mp4a +audio/mp4 m4a mp4a audio/mpeg mpga mp2 mp2a mp3 m2a m3a audio/ogg oga ogg spx audio/s3m s3m @@ -624,10 +623,19 @@ chemical/x-cmdf cmdf chemical/x-cml cml chemical/x-csml csml chemical/x-xyz xyz +font/collection ttc +font/otf otf +font/ttf ttf +font/woff woff +font/woff2 woff2 image/bmp bmp image/cgm cgm image/g3fax g3 image/gif gif +image/heic heic +image/heic-sequence heics +image/heif heif +image/heif-sequence heifs image/ief ief image/jpeg jpeg jpg jpe image/ktx ktx @@ -638,8 +646,8 @@ image/svg+xml svg svgz image/tiff tiff tif image/vnd.adobe.photoshop psd image/vnd.dece.graphic uvi uvvi uvg uvvg -image/vnd.dvb.subtitle sub image/vnd.djvu djvu djv +image/vnd.dvb.subtitle sub image/vnd.dwg dwg image/vnd.dxf dxf image/vnd.fastbidsheet fbs @@ -700,8 +708,8 @@ text/uri-list uri uris urls text/vcard vcard text/vnd.curl curl text/vnd.curl.dcurl dcurl -text/vnd.curl.scurl scurl text/vnd.curl.mcurl mcurl +text/vnd.curl.scurl scurl text/vnd.dvb.subtitle sub text/vnd.fly fly text/vnd.fmi.flexstor flx @@ -715,9 +723,10 @@ text/x-asm s asm text/x-c c cc cxx cpp h hh dic text/x-fortran f for f77 f90 text/x-java-source java +text/x-nfo nfo text/x-opml opml text/x-pascal p pas -text/x-nfo nfo +text/x-php php text/x-setext etx text/x-sfv sfv text/x-uuencode uu