1
Add comment about documentation for config.xml.
2
Also add mappings for matroska. Also add mappings for ogg in like manner as
4
==========================================================================
6
src/config_manager.cc | 13 +++++++++++++
7
src/metadata_handler.h | 2 ++
8
2 files changed, 15 insertions(+)
10
Index: mediatomb-0.12.1/src/config_manager.cc
11
===================================================================
12
--- mediatomb-0.12.1.orig/src/config_manager.cc
13
+++ mediatomb-0.12.1/src/config_manager.cc
16
String config_filename = homepath + DIR_SEPARATOR + DEFAULT_CONFIG_NAME;
18
Ref<Element> config(new Element(_("config")));
19
config->setAttribute(_("version"), String::from(CONFIG_XML_VERSION));
20
config->setAttribute(_("xmlns"), _(XML_XMLNS) + CONFIG_XML_VERSION);
21
config->setAttribute(_("xmlns:xsi"), _(XML_XMLNS_XSI));
22
config->setAttribute(_("xsi:schemaLocation"), _(XML_XMLNS) + CONFIG_XML_VERSION + " " + XML_XMLNS + CONFIG_XML_VERSION + ".xsd");
24
+ Ref<Comment> docinfo(new Comment(_("\n\
25
+ Read /usr/share/doc/mediatomb-common/README.gz section 6 for more\n\
26
+ information on creating and using config.xml configration files.\n\
28
+ config->appendChild(RefCast(docinfo, Node));
30
Ref<Element> server(new Element(_("server")));
32
Ref<Element> ui(new Element(_("ui")));
33
ui->setAttribute(_("enabled"), _(DEFAULT_UI_EN_VALUE));
34
ui->setAttribute(_("show-tooltips"), _(DEFAULT_UI_SHOW_TOOLTIPS_VALUE));
36
Ref<Element>accounts(new Element(_("accounts")));
37
accounts->setAttribute(_("enabled"), _(DEFAULT_ACCOUNTS_EN_VALUE));
40
Ref<Element> mtupnp(new Element(_("mimetype-upnpclass")));
41
mtupnp->appendElementChild(map_from_to(_("audio/*"),
42
_(UPNP_DEFAULT_CLASS_MUSIC_TRACK)));
43
mtupnp->appendElementChild(map_from_to(_("video/*"),
44
_(UPNP_DEFAULT_CLASS_VIDEO_ITEM)));
45
mtupnp->appendElementChild(map_from_to(_("image/*"),
46
_("object.item.imageItem")));
47
+ mtupnp->appendElementChild(map_from_to(_("application/ogg"),
48
+ _(UPNP_DEFAULT_CLASS_MUSIC_TRACK)));
50
mappings->appendElementChild(mtupnp);
52
Ref<Element> mtcontent(new Element(_("mimetype-contenttype")));
53
mtcontent->appendElementChild(treat_as(_("audio/mpeg"),
54
_(CONTENT_TYPE_MP3)));
55
mtcontent->appendElementChild(treat_as(_("application/ogg"),
56
_(CONTENT_TYPE_OGG)));
58
mtcontent->appendElementChild(treat_as(_("video/mp4"),
59
_(CONTENT_TYPE_MP4)));
60
mtcontent->appendElementChild(treat_as(_("audio/mp4"),
61
_(CONTENT_TYPE_MP4)));
62
mtcontent->appendElementChild(treat_as(_("application/x-iso9660"),
63
_(CONTENT_TYPE_DVD)));
64
mtcontent->appendElementChild(treat_as(_("application/x-iso9660-image"),
65
_(CONTENT_TYPE_DVD)));
66
+ mtcontent->appendElementChild(treat_as(_("video/x-matroska"),
67
+ _(CONTENT_TYPE_MKV)));
68
+ mtcontent->appendElementChild(treat_as(_("audio/x-matroska"),
69
+ _(CONTENT_TYPE_MKA)));
71
mappings->appendElementChild(mtcontent);
72
import->appendElementChild(mappings);
74
#ifdef ONLINE_SERVICES
75
import->appendElementChild(renderOnlineSection());
78
Index: mediatomb-0.12.1/src/metadata_handler.h
79
===================================================================
80
--- mediatomb-0.12.1.orig/src/metadata_handler.h
81
+++ mediatomb-0.12.1/src/metadata_handler.h
83
#define CONTENT_TYPE_JPG "jpg"
84
#define CONTENT_TYPE_PLAYLIST "playlist"
85
#define CONTENT_TYPE_MP4 "mp4"
86
#define CONTENT_TYPE_PCM "pcm"
87
#define CONTENT_TYPE_AVI "avi"
88
#define CONTENT_TYPE_MPEG "mpeg"
89
#define CONTENT_TYPE_DVD "dvd"
90
#define CONTENT_TYPE_QUICKTIME "quicktime"
91
+#define CONTENT_TYPE_MKV "mkv"
92
+#define CONTENT_TYPE_MKA "mka"
94
#define OGG_THEORA "t"
96
#define RESOURCE_CONTENT_TYPE "rct"
97
#define RESOURCE_HANDLER "rh"
99
#define ID3_ALBUM_ART "aa"
100
#define EXIF_THUMBNAIL "EX_TH"