reformattings
no redirect on tagclick on homepage no multiple add of same tag possible
This commit is contained in:
		@@ -212,6 +212,28 @@ class VideoParser {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * get all videoinfos of a video file
 | 
			
		||||
     *
 | 
			
		||||
     * @param $video string name including extension
 | 
			
		||||
     * @return object all infos as object
 | 
			
		||||
     */
 | 
			
		||||
    private function _get_video_attributes(string $video) {
 | 
			
		||||
        $command = "mediainfo \"../$this->videopath$video\" --Output=JSON";
 | 
			
		||||
        $output = shell_exec($command);
 | 
			
		||||
        return json_decode($output);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * write a line to the output log file
 | 
			
		||||
     *
 | 
			
		||||
     * @param string $message message to write
 | 
			
		||||
     */
 | 
			
		||||
    public function writeLog(string $message) {
 | 
			
		||||
        file_put_contents("/tmp/output.log", $message, FILE_APPEND);
 | 
			
		||||
        flush();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * insert the corresponding videosize tag to a specific videoid
 | 
			
		||||
     * @param $width int video width
 | 
			
		||||
@@ -246,28 +268,6 @@ class VideoParser {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * get all videoinfos of a video file
 | 
			
		||||
     *
 | 
			
		||||
     * @param $video string name including extension
 | 
			
		||||
     * @return object all infos as object
 | 
			
		||||
     */
 | 
			
		||||
    private function _get_video_attributes(string $video) {
 | 
			
		||||
        $command = "mediainfo \"../$this->videopath$video\" --Output=JSON";
 | 
			
		||||
        $output = shell_exec($command);
 | 
			
		||||
        return json_decode($output);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * write a line to the output log file
 | 
			
		||||
     *
 | 
			
		||||
     * @param string $message message to write
 | 
			
		||||
     */
 | 
			
		||||
    public function writeLog(string $message) {
 | 
			
		||||
        file_put_contents("/tmp/output.log", $message, FILE_APPEND);
 | 
			
		||||
        flush();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * ckecks if tag exists -- if not creates it
 | 
			
		||||
     * @param string $tagname the name of the tag
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user