Feature #545 » connectionHTTP.c.diff
| vdr-plugin-streamdev-0.5.0+git20110128/server/connectionHTTP.c | ||
|---|---|---|
|
} else if (Filebase.compare("all") == 0 ||
|
||
|
(Filebase.empty() && Fileext.empty())) {
|
||
|
iterator = new cListAll();
|
||
|
} else if (Filebase.compare("rss") == 0 ||
|
||
|
(Filebase.empty() && Fileext.empty())) {
|
||
|
iterator = new cListAll();
|
||
|
}
|
||
|
if (iterator) {
|
||
| ... | ... | |
|
(const char*) itoa(StreamdevServerSetup.HTTPServerPort) + "/";
|
||
|
base += Path;
|
||
|
return new cM3uChannelList(iterator, base.c_str());
|
||
|
} else if (Fileext.compare(".xml") == 0) {
|
||
|
std::string base;
|
||
|
tStrStrMap::const_iterator it = Headers().find(HOST);
|
||
|
if (it != Headers().end())
|
||
|
base = "http://" + it->second + "/";
|
||
|
else
|
||
|
base = (std::string) "http://" + LocalIp() + ":" +
|
||
|
(const char*) itoa(StreamdevServerSetup.HTTPServerPort) + "/";
|
||
|
base += Path;
|
||
|
return new cRssList(iterator, base.c_str(), m_StreamType);
|
||
|
} else {
|
||
|
delete iterator;
|
||
|
}
|
||