diff options
author | Andrew Dolgov <[email protected]> | 2019-08-15 16:08:16 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-08-15 16:08:16 +0300 |
commit | 0bc4e66a48a0bd9cbe02f2fa3f48db41a513c1fe (patch) | |
tree | 9df3babb88ac04b73c03f1f5fcbb3ee0c81c086c | |
parent | 5b9467ca92850a7d25074859ec4c4c6777d1530e (diff) |
rename main class
set lower hook priority via pluginhost
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | init.php | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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) { |