mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
bouquets: m3u8 added
thx mohousch Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -118,6 +118,7 @@ int CWebChannelsSetup::exec(CMenuTarget *parent, const std::string &actionKey)
|
|||||||
fileFilter.addFilter("xml");
|
fileFilter.addFilter("xml");
|
||||||
fileFilter.addFilter("tv");
|
fileFilter.addFilter("tv");
|
||||||
fileFilter.addFilter("m3u");
|
fileFilter.addFilter("m3u");
|
||||||
|
fileFilter.addFilter("m3u8");
|
||||||
fileBrowser.Filter = &fileFilter;
|
fileBrowser.Filter = &fileFilter;
|
||||||
|
|
||||||
dirname = dirname.substr(0, dirname.rfind('/'));
|
dirname = dirname.substr(0, dirname.rfind('/'));
|
||||||
@@ -140,6 +141,7 @@ int CWebChannelsSetup::exec(CMenuTarget *parent, const std::string &actionKey)
|
|||||||
fileFilter.addFilter("xml");
|
fileFilter.addFilter("xml");
|
||||||
fileFilter.addFilter("tv");
|
fileFilter.addFilter("tv");
|
||||||
fileFilter.addFilter("m3u");
|
fileFilter.addFilter("m3u");
|
||||||
|
fileFilter.addFilter("m3u8");
|
||||||
fileBrowser.Filter = &fileFilter;
|
fileBrowser.Filter = &fileFilter;
|
||||||
if (fileBrowser.exec(webradio ? g_settings.last_webradio_dir.c_str() : g_settings.last_webtv_dir.c_str()) == true)
|
if (fileBrowser.exec(webradio ? g_settings.last_webradio_dir.c_str() : g_settings.last_webtv_dir.c_str()) == true)
|
||||||
{
|
{
|
||||||
|
@@ -894,7 +894,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
|
|
||||||
if (strcasecmp("xml", extension.c_str()) == 0)
|
if (strcasecmp("xml", extension.c_str()) == 0)
|
||||||
xml = true;
|
xml = true;
|
||||||
if (strcasecmp("m3u", extension.c_str()) == 0)
|
if ((strcasecmp("m3u", extension.c_str()) == 0) || (strcasecmp("m3u8", extension.c_str()) == 0))
|
||||||
m3u = true;
|
m3u = true;
|
||||||
if (strcasecmp("tv", extension.c_str()) == 0)
|
if (strcasecmp("tv", extension.c_str()) == 0)
|
||||||
e2tv = true;
|
e2tv = true;
|
||||||
@@ -1035,6 +1035,8 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
{
|
{
|
||||||
epg_url = "";
|
epg_url = "";
|
||||||
epg_url = ReadMarkerValue(strLine, M3U_START_EPG_MARKER);
|
epg_url = ReadMarkerValue(strLine, M3U_START_EPG_MARKER);
|
||||||
|
if (epg_url.empty())
|
||||||
|
epg_url = ReadMarkerValue(strLine, "x-tvg-url");
|
||||||
//printf("tvg-url: %s\n", epg_url.c_str());
|
//printf("tvg-url: %s\n", epg_url.c_str());
|
||||||
if (!epg_url.empty())
|
if (!epg_url.empty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user