diff options
author | EuAndreh <eu@euandre.org> | 2020-12-28 19:02:07 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-12-28 19:03:53 -0300 |
commit | 668dd6c9b72f962838e59cb7419b00690112b854 (patch) | |
tree | 90e3a77a03f254729c37f9d30493f80387179875 /_plugins | |
parent | Revert "Use proper test screencast file" (diff) | |
download | euandre.org-668dd6c9b72f962838e59cb7419b00690112b854.tar.gz euandre.org-668dd6c9b72f962838e59cb7419b00690112b854.tar.xz |
Move (again) to WebM for being more web friendly
Diffstat (limited to '_plugins')
-rw-r--r-- | _plugins/generate-media-permalink.rb | 2 | ||||
-rw-r--r-- | _plugins/generate-torrent.rb | 2 | ||||
-rw-r--r-- | _plugins/linter.rb | 10 |
3 files changed, 6 insertions, 8 deletions
diff --git a/_plugins/generate-media-permalink.rb b/_plugins/generate-media-permalink.rb index db49286..ae635bd 100644 --- a/_plugins/generate-media-permalink.rb +++ b/_plugins/generate-media-permalink.rb @@ -4,7 +4,7 @@ module Jekyll MEDIA_EXTENSION = { 'podcasts' => 'ogg', - 'screencasts' => 'mkv' + 'screencasts' => 'webm' } def generate(site) diff --git a/_plugins/generate-torrent.rb b/_plugins/generate-torrent.rb index 1de9870..fd38d85 100644 --- a/_plugins/generate-torrent.rb +++ b/_plugins/generate-torrent.rb @@ -6,7 +6,7 @@ module Jekyll MEDIA_EXTENSION = { 'podcasts' => 'ogg', - 'screencasts' => 'mkv' + 'screencasts' => 'webm' } def generate(site) diff --git a/_plugins/linter.rb b/_plugins/linter.rb index f986191..aa568bb 100644 --- a/_plugins/linter.rb +++ b/_plugins/linter.rb @@ -107,9 +107,9 @@ module Jekyll end if name == 'screencasts' then - mkv = "resources/screencasts/#{date}-#{slug}.mkv" - unless File.exist? mkv then - raise "Missing MKV file '#{mkv}'" + webm = "resources/screencasts/#{date}-#{slug}.webm" + unless File.exist? webm then + raise "Missing WebM file '#{webm}'" end end end @@ -143,7 +143,7 @@ module Jekyll MEDIA_EXTENSION = { 'podcasts' => 'flac', - 'screencasts' => 'mkv' + 'screencasts' => 'webm' } def assert_media_metadata(site) @@ -187,8 +187,6 @@ module Jekyll check_metadata_cmd = "mediainfo '#{file}' | grep 'Movie name'" raise "Missing metadata entry 'title' in '#{file}'.\nAdd it with:\n\n#{add_metadata_cmd}\n\nCheck with:\n #{check_metadata_cmd}" end - # mkvpropedit dbg.mkv -e info -s album="The album" - # p document end end end |