mirror of https://github.com/Rudloff/alltube.git
Add link to best format at the top of the list
This commit is contained in:
parent
0757efc397
commit
187d382e2a
4
api.php
4
api.php
|
@ -51,6 +51,10 @@ if (isset($_GET["url"])) {
|
||||||
<p>(You might have to do a <i>Right click > Save as</i>)</p>
|
<p>(You might have to do a <i>Right click > Save as</i>)</p>
|
||||||
<ul id="format" class="format">
|
<ul id="format" class="format">
|
||||||
<?php
|
<?php
|
||||||
|
echo '<li class="best" itemprop="encoding" itemscope itemtype="http://schema.org/VideoObject">';
|
||||||
|
echo '<a itemprop="contentUrl" href="', $video->url ,'">';
|
||||||
|
echo '<b>Best</b> (<span itemprop="encodingFormat">', $video->ext, '</span>)';
|
||||||
|
echo '</a></li>';
|
||||||
foreach ($video->formats as $format) {
|
foreach ($video->formats as $format) {
|
||||||
echo '<li itemprop="encoding" itemscope itemtype="http://schema.org/VideoObject">';
|
echo '<li itemprop="encoding" itemscope itemtype="http://schema.org/VideoObject">';
|
||||||
echo '<a itemprop="contentUrl" href="', $format->url ,'">';
|
echo '<a itemprop="contentUrl" href="', $format->url ,'">';
|
||||||
|
|
Loading…
Reference in New Issue