Began work on the speech upload
This commit is contained in:
parent
2f3110bf4c
commit
cfd4eb5361
2 changed files with 14 additions and 1 deletions
|
@ -36,7 +36,7 @@ class LBRY_Speech
|
||||||
/**
|
/**
|
||||||
* Uploads assets to the speech server
|
* Uploads assets to the speech server
|
||||||
*/
|
*/
|
||||||
public function upload_assets()
|
public function upload_assets($post_id)
|
||||||
{
|
{
|
||||||
$speech_url = get_option(LBRY_SETTINGS)[LBRY_SPEECH];
|
$speech_url = get_option(LBRY_SETTINGS)[LBRY_SPEECH];
|
||||||
|
|
||||||
|
@ -45,6 +45,8 @@ class LBRY_Speech
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// TODO: Find assets, upload them to the Spee.ch Server
|
// TODO: Find assets, upload them to the Spee.ch Server
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,17 @@
|
||||||
|
|
||||||
class LBRY_Speech_Parser
|
class LBRY_Speech_Parser
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Relative url
|
||||||
|
* @param string $url a full url
|
||||||
|
* @return string protocol relative url
|
||||||
|
*/
|
||||||
|
protected function relative_url($url)
|
||||||
|
{
|
||||||
|
return substr($url, strpos($url, '//'));
|
||||||
|
}
|
||||||
|
|
||||||
public function rewrite($html)
|
public function rewrite($html)
|
||||||
{
|
{
|
||||||
// TODO: Completely fix this, as its super slow. Looking at cdn_enabler for ideas
|
// TODO: Completely fix this, as its super slow. Looking at cdn_enabler for ideas
|
||||||
|
|
Loading…
Reference in a new issue