mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
c6f068770d
commit
4031da07d2
3 changed files with 7 additions and 3 deletions
|
@ -119,7 +119,7 @@ RUN a2enmod xsendfile rewrite expires headers ssl
|
||||||
RUN pip3 install youtube-dl --upgrade youtube-dl
|
RUN pip3 install youtube-dl --upgrade youtube-dl
|
||||||
|
|
||||||
# Video Transcription for the SubtitleSwitcher Plugin
|
# Video Transcription for the SubtitleSwitcher Plugin
|
||||||
RUN pip3 vosk
|
RUN pip3 install vosk
|
||||||
|
|
||||||
# Copy configuration files
|
# Copy configuration files
|
||||||
COPY deploy/apache/avideo.conf /etc/apache2/sites-available/avideo.conf
|
COPY deploy/apache/avideo.conf /etc/apache2/sites-available/avideo.conf
|
||||||
|
|
|
@ -804,10 +804,14 @@ function sendEmailToSiteOwner($subject, $message) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fixURL($url){
|
||||||
|
return str_replace(array('&%3B', '&'), array('&', '&'), $url);
|
||||||
|
}
|
||||||
|
|
||||||
function parseVideos($videoString = null, $autoplay = 0, $loop = 0, $mute = 0, $showinfo = 0, $controls = 1, $time = 0, $objectFit = "") {
|
function parseVideos($videoString = null, $autoplay = 0, $loop = 0, $mute = 0, $showinfo = 0, $controls = 1, $time = 0, $objectFit = "") {
|
||||||
global $global;
|
global $global;
|
||||||
if(!empty($videoString)){
|
if(!empty($videoString)){
|
||||||
$videoString = str_replace(array('&%3B'), array('&'), $videoString);
|
$videoString = fixURL($videoString);
|
||||||
}
|
}
|
||||||
//_error_log("parseVideos: $videoString");
|
//_error_log("parseVideos: $videoString");
|
||||||
if (strpos($videoString, 'youtube.com/embed') !== false) {
|
if (strpos($videoString, 'youtube.com/embed') !== false) {
|
||||||
|
|
|
@ -3716,7 +3716,7 @@ if (!class_exists('Video')) {
|
||||||
public function setVideoLink($videoLink)
|
public function setVideoLink($videoLink)
|
||||||
{
|
{
|
||||||
AVideoPlugin::onVideoSetVideoLink($this->id, $this->videoLink, $videoLink);
|
AVideoPlugin::onVideoSetVideoLink($this->id, $this->videoLink, $videoLink);
|
||||||
$this->videoLink = $videoLink;
|
$this->videoLink = fixURL($videoLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCan_download()
|
public function getCan_download()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue