mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
report charset in HTTP replies (suggested by Rolf Ahrenberg)
This commit is contained in:
parent
d5f0744f4b
commit
f4e9cc1de9
@ -33,6 +33,7 @@ Rolf Ahrenberg
|
||||
for replacing private members by cThread::Running()/Active()
|
||||
for improving externremux script termination
|
||||
for fixing PAT repacker version field
|
||||
for suggesting to include the charset in HTTP replies
|
||||
|
||||
Rantanen Teemu
|
||||
for providing vdr-incompletesections.diff
|
||||
|
1
HISTORY
1
HISTORY
@ -1,6 +1,7 @@
|
||||
VDR Plugin 'streamdev' Revision History
|
||||
---------------------------------------
|
||||
|
||||
- report charset in HTTP replies (suggested by Rolf Ahrenberg)
|
||||
- use SO_KEEPALIVE option on all sockets do detect dead sockets (thanks to
|
||||
owagner)
|
||||
- enable PatFilter for externremux, so VLC can be used as remuxer or client
|
||||
|
@ -113,7 +113,12 @@ class cHtmlChannelList: public cChannelList
|
||||
std::string ItemText();
|
||||
std::string PageBottom();
|
||||
public:
|
||||
virtual std::string HttpHeader() { return cChannelList::HttpHeader() + "Content-type: text/html\r\n\r\n"; }
|
||||
virtual std::string HttpHeader() {
|
||||
return cChannelList::HttpHeader()
|
||||
+ "Content-type: text/html; charset="
|
||||
+ I18nCharSets()[Setup.OSDLanguage]
|
||||
+ "\r\n";
|
||||
}
|
||||
virtual bool HasNext();
|
||||
virtual std::string Next();
|
||||
cHtmlChannelList(cChannelIterator *Iterator, eStreamType StreamType, const char *Self, const char *GroupTarget);
|
||||
@ -130,7 +135,16 @@ class cM3uChannelList: public cChannelList
|
||||
cCharSetConv m_IConv;
|
||||
#endif
|
||||
public:
|
||||
virtual std::string HttpHeader() { return cChannelList::HttpHeader() + "Content-type: audio/x-mpegurl\r\n"; };
|
||||
virtual std::string HttpHeader() {
|
||||
return cChannelList::HttpHeader()
|
||||
+ "Content-type: audio/x-mpegurl; charset="
|
||||
#if defined(APIVERSNUM) && APIVERSNUM >= 10503
|
||||
+ "UTF-8"
|
||||
#else
|
||||
+ I18nCharSets()[Setup.OSDLanguage]
|
||||
#endif
|
||||
+ "\r\n";
|
||||
}
|
||||
virtual bool HasNext();
|
||||
virtual std::string Next();
|
||||
cM3uChannelList(cChannelIterator *Iterator, const char* Base);
|
||||
|
Loading…
Reference in New Issue
Block a user