Valid HTML
This commit is contained in:
parent
b01464abad
commit
e5ae99f256
1 changed files with 5 additions and 3 deletions
8
api.php
8
api.php
|
@ -36,7 +36,7 @@ if (isset($_GET["url"])) {
|
||||||
<p>You are going to download<i itemprop="name">
|
<p>You are going to download<i itemprop="name">
|
||||||
<a itemprop="url" id="video_link"
|
<a itemprop="url" id="video_link"
|
||||||
data-ext="<?php echo $video->ext; ?>"
|
data-ext="<?php echo $video->ext; ?>"
|
||||||
data-video="<?php echo $video->url; ?>"
|
data-video="<?php echo htmlentities($video->url); ?>"
|
||||||
href="<?php echo $video->webpage_url; ?>">
|
href="<?php echo $video->webpage_url; ?>">
|
||||||
<?php
|
<?php
|
||||||
echo $video->title;
|
echo $video->title;
|
||||||
|
@ -67,14 +67,16 @@ if (isset($_GET["url"])) {
|
||||||
<?php
|
<?php
|
||||||
echo '<li class="best" itemprop="encoding" itemscope
|
echo '<li class="best" itemprop="encoding" itemscope
|
||||||
itemtype="http://schema.org/VideoObject">';
|
itemtype="http://schema.org/VideoObject">';
|
||||||
echo '<a itemprop="contentUrl" href="', $video->url ,'">';
|
echo '<a itemprop="contentUrl"
|
||||||
|
href="', htmlentities($video->url) ,'">';
|
||||||
echo '<b>Best</b> (<span itemprop="encodingFormat">',
|
echo '<b>Best</b> (<span itemprop="encodingFormat">',
|
||||||
$video->ext, '</span>)';
|
$video->ext, '</span>)';
|
||||||
echo '</a></li>';
|
echo '</a></li>';
|
||||||
foreach ($video->formats as $format) {
|
foreach ($video->formats as $format) {
|
||||||
echo '<li itemprop="encoding"
|
echo '<li itemprop="encoding"
|
||||||
itemscope itemtype="http://schema.org/VideoObject">';
|
itemscope itemtype="http://schema.org/VideoObject">';
|
||||||
echo '<a itemprop="contentUrl" href="', $format->url ,'">';
|
echo '<a itemprop="contentUrl"
|
||||||
|
href="', htmlentities($format->url) ,'">';
|
||||||
echo '<span itemprop="videoQuality">', $format->format,
|
echo '<span itemprop="videoQuality">', $format->format,
|
||||||
'</span> (<span itemprop="encodingFormat">',
|
'</span> (<span itemprop="encodingFormat">',
|
||||||
$format->ext, '</span>)';
|
$format->ext, '</span>)';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue