diff --git a/feed/index.php b/feed/index.php
index a28ae5bed..ebd8ab6b1 100644
--- a/feed/index.php
+++ b/feed/index.php
@@ -1,46 +1,51 @@
getWebSiteTitle();
$link = $global['webSiteRootURL'];
$logo = "{$global['webSiteRootURL']}videos/userPhoto/logo.png";
$description = "";
$extraPluginFile = $global['systemRootPath'] . 'plugin/Customize/Objects/ExtraConfig.php';
if (file_exists($extraPluginFile) && AVideoPlugin::isEnabledByName("Customize")) {
require_once $extraPluginFile;
$ec = new ExtraConfig();
$description = $ec->getDescription();
}
if(!empty($_GET['channelName'])){
$user = User::getChannelOwner($_GET['channelName']);
$showOnlyLoggedUserVideos = $user['id'];
$title = User::getNameIdentificationById($user['id']);
$link = User::getChannelLink($user['id']);
$logo = User::getPhoto($user['id']);
}
// send $_GET['catName'] to be able to filter by category
$rows = Video::getAllVideos("viewable", $showOnlyLoggedUserVideos);
if(!empty($_REQUEST['roku'])){
header('Content-Type: application/json');
include $global['systemRootPath'] . 'feed/roku.json.php';
}else if(empty($_REQUEST['mrss'])){
header('Content-Type: text/xml; charset=UTF8');
include $global['systemRootPath'] . 'feed/rss.php';
}else{
header('Content-Type: text/xml; charset=UTF8');
include $global['systemRootPath'] . 'feed/mrss.php';
}
+
+function feedText($text){
+ return str_replace(array(' '), array(''), htmlentities(strip_tags(br2nl($text))));
+}
+
?>
\ No newline at end of file
diff --git a/feed/mrss.php b/feed/mrss.php
index b317e5db6..391e7b8d5 100644
--- a/feed/mrss.php
+++ b/feed/mrss.php
@@ -1,63 +1,63 @@
';
?>
-
-
+
+
-
+
144
40
AVideo version rss
';
break;
}
}
?>
-
-
-
+
+
" fileSize="" bitrate="128"
type="" expression="full"
duration="">
]]>
diff --git a/feed/rss.php b/feed/rss.php
index f637add7c..8ef334239 100644
--- a/feed/rss.php
+++ b/feed/rss.php
@@ -1,55 +1,55 @@
'
?>
" rel="self" type="application/rss+xml" />
-
-
+
+
hourly
1
-
+
144
40
AVideo version rss
';
break;
}
}
?>
-
-
-
+
+