From 9010746b5691cbab96fc9558751177b9287166f6 Mon Sep 17 00:00:00 2001 From: thlo Date: Mon, 2 Sep 2013 18:53:27 +0200 Subject: Provide correct MIME types for media.xml --- responsememblk.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'responsememblk.h') diff --git a/responsememblk.h b/responsememblk.h index f0b1174..ce17989 100755 --- a/responsememblk.h +++ b/responsememblk.h @@ -38,8 +38,9 @@ struct sFileEntry { string sName; string sPath; int sStart; + string sMime; -sFileEntry(string n, string l, int s) : sName(n), sPath(l), sStart(s) { +sFileEntry(string n, string l, int s, string m) : sName(n), sPath(l), sStart(s), sMime(m) { }; }; @@ -91,7 +92,7 @@ class cResponseMemBlk : public cResponseBase { int parseResume(cResumeEntry &entry, string &id); int parseFiles(vector *entries, string prefix, string dir_base, string dir_name, struct stat *statbuf); int sendDir(struct stat *statbuf); - int writeXmlItem(string title, string link, string programme, string desc, string guid, int no, time_t start, int dur, double fps, int is_pes, int is_new); + int writeXmlItem(string title, string link, string programme, string desc, string guid, int no, time_t start, int dur, double fps, int is_pes, int is_new, string mime); uint64_t getVdrFileSize(); private: -- cgit v1.2.3