1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2023-05-03 10:28:53 -03:00
parent c6f068770d
commit 4031da07d2
3 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -804,10 +804,14 @@ function sendEmailToSiteOwner($subject, $message) {
} }
} }
function fixURL($url){
return str_replace(array('&amp%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('&amp%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) {

View file

@ -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()