summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-08-15 16:08:16 +0300
committerAndrew Dolgov <[email protected]>2019-08-15 16:08:16 +0300
commit0bc4e66a48a0bd9cbe02f2fa3f48db41a513c1fe (patch)
tree9df3babb88ac04b73c03f1f5fcbb3ee0c81c086c
parent5b9467ca92850a7d25074859ec4c4c6777d1530e (diff)
rename main class
set lower hook priority via pluginhost
-rw-r--r--README.md2
-rw-r--r--init.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 0f5a992..20479eb 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ As a side effect, both video stream and generated poster are cached locally.
## Installation
-1. git clone to ``plugins.local/af_z_video_fill_poster``
+1. git clone to ``plugins.local/af_video_fill_poster``
2. Enable plugin
## License
diff --git a/init.php b/init.php
index 6d713b7..9126dd1 100644
--- a/init.php
+++ b/init.php
@@ -1,5 +1,5 @@
<?php
-class Af_Z_Video_Fill_Poster extends Plugin {
+class Af_Video_Fill_Poster extends Plugin {
/* @var PluginHost $host */
private $host;
@@ -17,7 +17,7 @@ class Af_Z_Video_Fill_Poster extends Plugin {
$this->host = $host;
$this->cache = new DiskCache("images");
- $host->add_hook($host::HOOK_ARTICLE_FILTER, $this);
+ $host->add_hook($host::HOOK_ARTICLE_FILTER, $this, 100);
}
private function ffmpeg_thumbnail($input_filename, $output_filename) {