mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
243b3401da
commit
c6f068770d
4 changed files with 9 additions and 0 deletions
|
@ -118,6 +118,9 @@ RUN a2enmod xsendfile rewrite expires headers ssl
|
|||
# Install and upgrade youtube-dl using pip
|
||||
RUN pip3 install youtube-dl --upgrade youtube-dl
|
||||
|
||||
# Video Transcription for the SubtitleSwitcher Plugin
|
||||
RUN pip3 vosk
|
||||
|
||||
# Copy configuration files
|
||||
COPY deploy/apache/avideo.conf /etc/apache2/sites-available/avideo.conf
|
||||
COPY deploy/apache/localhost.conf /etc/apache2/sites-available/localhost.conf
|
||||
|
|
|
@ -136,6 +136,8 @@ cd /var/www/html/AVideo/install && php updatedb.php
|
|||
echo "entrypoint -- Running reencodeAllVideos script..."
|
||||
cd /var/www/html/AVideo/Encoder/install && php reencodeAllVideos.php
|
||||
|
||||
echo '127.0.0.1 vlu.me' >> /etc/hosts
|
||||
|
||||
echo "entrypoint -- Starting cron service..."
|
||||
cron
|
||||
service cron start
|
||||
|
|
|
@ -806,6 +806,9 @@ function sendEmailToSiteOwner($subject, $message) {
|
|||
|
||||
function parseVideos($videoString = null, $autoplay = 0, $loop = 0, $mute = 0, $showinfo = 0, $controls = 1, $time = 0, $objectFit = "") {
|
||||
global $global;
|
||||
if(!empty($videoString)){
|
||||
$videoString = str_replace(array('&%3B'), array('&'), $videoString);
|
||||
}
|
||||
//_error_log("parseVideos: $videoString");
|
||||
if (strpos($videoString, 'youtube.com/embed') !== false) {
|
||||
return $videoString . (parse_url($videoString, PHP_URL_QUERY) ? '&' : '?') . 'modestbranding=1&showinfo='
|
||||
|
|
|
@ -409,6 +409,7 @@ if (User::hasBlockedUser($video['users_id'])) {
|
|||
} elseif ($video['type'] == "embed") {
|
||||
$isVideoTypeEmbed = 1;
|
||||
?>
|
||||
<!-- embed -->
|
||||
<video id="mainVideo" style="display: none; height: 0;width: 0;" ></video>
|
||||
<iframe style="width: 100%; height: 100%;" class="embed-responsive-item" src="<?php
|
||||
$url = parseVideos($video['videoLink']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue