mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Fix feed source
This commit is contained in:
parent
4b85ec161a
commit
55e8547903
1 changed files with 6 additions and 6 deletions
|
@ -16,14 +16,14 @@ if (empty($feed)) {
|
||||||
xmlns:atom="http://www.w3.org/2005/Atom" >
|
xmlns:atom="http://www.w3.org/2005/Atom" >
|
||||||
<channel>
|
<channel>
|
||||||
<atom:link href="<?php echo $global['webSiteRootURL'] . ltrim($_SERVER["REQUEST_URI"], "/"); ?>" rel="self" type="application/rss+xml" />
|
<atom:link href="<?php echo $global['webSiteRootURL'] . ltrim($_SERVER["REQUEST_URI"], "/"); ?>" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
<title><?php echo feedText($title); ?></title>
|
<title><?php echo feedText($title); ?></title>
|
||||||
<description><?php echo feedText($description); ?></description>
|
<description><?php echo feedText($description); ?></description>
|
||||||
<link><?php echo $global['webSiteRootURL']; ?></link>
|
<link><?php echo $global['webSiteRootURL']; ?></link>
|
||||||
|
|
||||||
<language>en-us</language>
|
<language>en-us</language>
|
||||||
<itunes:image href="<?php echo $logo; ?>" />
|
<itunes:image href="<?php echo $logo; ?>" />
|
||||||
<itunes:explicit>no</itunes:explicit>
|
<itunes:explicit>no</itunes:explicit>
|
||||||
|
|
||||||
<itunes:category text="Technology" />
|
<itunes:category text="Technology" />
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ if (empty($feed)) {
|
||||||
$video = Video::getVideoFromFileName($row['filename']);
|
$video = Video::getVideoFromFileName($row['filename']);
|
||||||
$files = getVideosURL($row['filename']);
|
$files = getVideosURL($row['filename']);
|
||||||
$enclosure = '';
|
$enclosure = '';
|
||||||
$videoSource = Video::getSourceFileURL($row['filename']);
|
$videoSource = Video::getSourceFileURL($row['filename'], true);
|
||||||
if (empty($videoSource)) {
|
if (empty($videoSource)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue