Browse Source

rename main class
set lower hook priority via pluginhost

Andrew Dolgov 4 months ago
parent
commit
0bc4e66a48
2 changed files with 3 additions and 3 deletions
  1. 1 1
      README.md
  2. 2 2
      init.php

+ 1 - 1
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

+ 2 - 2
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) {