From 4f6a473b3d55009863649a25c8470c934739cee6 Mon Sep 17 00:00:00 2001 From: lqs Date: Sun, 21 Apr 2019 09:48:00 +0000 Subject: [PATCH 1/2] add webm/rm/rmvb support --- metadata.c | 8 ++++++++ upnpglobalvars.h | 5 ++++- utils.c | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/metadata.c b/metadata.c index 4781db7..04ed27c 100644 --- a/metadata.c +++ b/metadata.c @@ -862,6 +862,10 @@ GetVideoMetadata(const char *path, const char *name) xasprintf(&m.mime, "video/x-matroska"); else if( strcmp(ctx->iformat->name, "flv") == 0 ) xasprintf(&m.mime, "video/x-flv"); + else if( strcmp(ctx->iformat->name, "rm") == 0 ) + xasprintf(&m.mime, "application/vnd.rn-realmedia"); + else if( strcmp(ctx->iformat->name, "rmvb") == 0 ) + xasprintf(&m.mime, "application/vnd.rn-realmedia-vbr"); if( m.mime ) goto video_no_dlna; @@ -1538,6 +1542,10 @@ GetVideoMetadata(const char *path, const char *name) xasprintf(&m.mime, "video/x-matroska"); else if( strcmp(ctx->iformat->name, "flv") == 0 ) xasprintf(&m.mime, "video/x-flv"); + else if( strcmp(ctx->iformat->name, "rm") == 0 ) + xasprintf(&m.mime, "application/vnd.rn-realmedia"); + else if( strcmp(ctx->iformat->name, "rmvb") == 0 ) + xasprintf(&m.mime, "application/vnd.rn-realmedia-vbr"); else DPRINTF(E_WARN, L_METADATA, "%s: Unhandled format: %s\n", path, ctx->iformat->name); } diff --git a/upnpglobalvars.h b/upnpglobalvars.h index 92596e7..c4c0671 100644 --- a/upnpglobalvars.h +++ b/upnpglobalvars.h @@ -172,7 +172,10 @@ "http-get:*:audio/x-wav:*," \ "http-get:*:audio/x-flac:*," \ "http-get:*:audio/x-dsd:*," \ - "http-get:*:application/ogg:*" + "http-get:*:application/ogg:*" \ + "http-get:*:application/vnd.rn-realmedia:*" \ + "http-get:*:application/vnd.rn-realmedia-vbr:*" \ + "http-get:*:video/webm:*" #define DLNA_FLAG_DLNA_V1_5 0x00100000 #define DLNA_FLAG_HTTP_STALLING 0x00200000 diff --git a/utils.c b/utils.c index dc936f9..03ba850 100644 --- a/utils.c +++ b/utils.c @@ -404,7 +404,9 @@ is_video(const char * file) #ifdef TIVO_SUPPORT ends_with(file, ".TiVo") || #endif - ends_with(file, ".mov") || ends_with(file, ".3gp")); + ends_with(file, ".mov") || ends_with(file, ".3gp") || + ends_with(file, ".rm") || ends_with(file, ".rmvb") || + ends_with(file, ".webm")); } int From 5b75f9b2d77d721700274b019ad940932ace2709 Mon Sep 17 00:00:00 2001 From: ViBE Date: Mon, 6 Jun 2022 17:00:51 +0200 Subject: [PATCH 2/2] Hungarian translation Why not? --- po/hu.po | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 po/hu.po diff --git a/po/hu.po b/po/hu.po new file mode 100644 index 0000000..6136b15 --- /dev/null +++ b/po/hu.po @@ -0,0 +1,128 @@ +# MiniDLNA translation template file +# Justin Maggard , 2010. +# +# MiniDLNA media server +# Copyright (C) 2010 NETGEAR +# +# This file is part of MiniDLNA. +# +# MiniDLNA is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# MiniDLNA is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with MiniDLNA. If not, see . +# +msgid "" +msgstr "" +"Project-Id-Version: minidlna 1.1.0\n" +"Report-Msgid-Bugs-To: jmaggard@users.sourceforge.net\n" +"POT-Creation-Date: 2010-07-19 10:50-0700\n" +"PO-Revision-Date: 2022-06-06 16:34+0200\n" +"Last-Translator: ViBE \n" +"Language-Team: Hungarian \n" +"Language: hu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"X-Generator: Gtranslator 3.36.0\n" + +#: scanner.c:165 +msgid "Unknown Date" +msgstr "Ismeretlen dátum" + +#: scanner.c:167 +msgid "Unknown Camera" +msgstr "Ismeretlen kamera" + +#: scanner.c:277 +msgid "- All Albums -" +msgstr "- Minden album -" + +#: scanner.c:285 scanner.c:292 scanner.c:296 +msgid "Unknown Album" +msgstr "Ismeretlen album" + +#: scanner.c:318 +msgid "- All Artists -" +msgstr "- Minden előadó -" + +#: scanner.c:326 scanner.c:332 scanner.c:336 +msgid "Unknown Artist" +msgstr "Ismeretlen előadó" + +#: scanner.c:528 +msgid "Music" +msgstr "Zene" + +#: scanner.c:529 +msgid "All Music" +msgstr "Minden zene" + +#: scanner.c:530 +msgid "Genre" +msgstr "Műfaj" + +#: scanner.c:531 +msgid "Artist" +msgstr "Előadó" + +#: scanner.c:532 +msgid "Album" +msgstr "Album" + +#: scanner.c:533 scanner.c:538 scanner.c:544 +msgid "Folders" +msgstr "Könyvtárak" + +#: scanner.c:534 +msgid "Playlists" +msgstr "Lejátszási listák" + +#: scanner.c:598 +msgid "Recently Added" +msgstr "Nemrég hozzáadva" + +#: scanner.c:536 +msgid "Video" +msgstr "Videó" + +#: scanner.c:537 +msgid "All Video" +msgstr "Minden videó" + +#: scanner.c:540 +msgid "Pictures" +msgstr "Kép" + +#: scanner.c:541 +msgid "All Pictures" +msgstr "Minden kép" + +#: scanner.c:542 +msgid "Date Taken" +msgstr "Létrehozva" + +#: scanner.c:543 +msgid "Camera" +msgstr "Kamera" + +#: scanner.c:546 +msgid "Browse Folders" +msgstr "Könyvtárak tallózása" + +#: scanner.c:690 +#, c-format +msgid "Scanning %s\n" +msgstr "%s elemzése\n" + +#: scanner.c:766 +#, c-format +msgid "Scanning %s finished (%llu files)!\n" +msgstr "%s elemzése befejeződött (%llu fájl található)!\n"