Files
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

36 lines
886 B
PHP

<?php
/*
Plugin Name: Embedded GoogleVideo videos
Description: Parse embedded videos from GoogleVideo
Version: 1.0
Author: Janis Elsts
ModuleCategory: parser
ModuleClassName: blcGoogleVideoEmbed
ModuleContext: on-demand
ModuleLazyInit: true
ModulePriority: 110
*/
if ( !class_exists('blcEmbedParserBase') ){
require 'embed-parser-base.php';
}
class blcGoogleVideoEmbed extends blcEmbedParserBase {
function init(){
parent::init();
$this->short_title = __('GoogleVideo Video', 'broken-link-checker');
$this->long_title = __('Embedded GoogleVideo video', 'broken-link-checker');
$this->url_search_string = 'video.google.com/';
}
function link_url_from_src($src){
parse_str(parse_url($src, PHP_URL_QUERY), $query);
$url = 'http://video.google.com/videoplay?' . build_query(array('docid' => $query['docid']));
return $url;
}
}