diff options
-rw-r--r-- | _plugins/linter.rb | 5 | ||||
l--------- | resources/screencasts/2020-12-24-sample-screencast.webm | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/_plugins/linter.rb b/_plugins/linter.rb index aa568bb..dd51e3b 100644 --- a/_plugins/linter.rb +++ b/_plugins/linter.rb @@ -154,6 +154,7 @@ module Jekyll slug = document.data['slug'] ext = MEDIA_EXTENSION[name] file = "resources/#{name}/#{date}-#{slug}.#{ext}" + feed_name = site.config['t'][name]['feed']['title'][document.data['lang']] if name == 'podcasts' stdout = `metaflac --export-tags-to=- #{file}`.strip.split("\n") expected = [ @@ -161,7 +162,7 @@ module Jekyll 'ARTIST=EuAndreh', "DATE=#{date}", "TITLE=#{document.data['title']}", - "ALBUM=#{site.config['t']['podcasts']['feed']['title'][document.data['lang']]}" + "ALBUM=#{feed_name}" ] expected.each do |metadata| unless stdout.include? metadata @@ -180,7 +181,7 @@ module Jekyll end elsif name == 'screencasts' then stdout = `mediainfo #{file} | awk -F: '/^Movie name/ { print $2 }'`.strip - expected = document.data['title'] + ' - EuAndreh' + expected = document.data['title'] + ' - ' + feed_name unless stdout == expected then escaped_title = expected.gsub(/'/, "'\"'\"'") add_metadata_cmd = "mkvpropedit '#{file}' -e info -s title='#{escaped_title}'" diff --git a/resources/screencasts/2020-12-24-sample-screencast.webm b/resources/screencasts/2020-12-24-sample-screencast.webm index e8eb466..7133954 120000 --- a/resources/screencasts/2020-12-24-sample-screencast.webm +++ b/resources/screencasts/2020-12-24-sample-screencast.webm @@ -1 +1 @@ -../../.git/annex/objects/Gk/G1/SHA256E-s2351466--15392ce9a779183c84ae0b1a2292adfa94db10aa8d47fa637adc7a63cdb5c25e.webm/SHA256E-s2351466--15392ce9a779183c84ae0b1a2292adfa94db10aa8d47fa637adc7a63cdb5c25e.webm
\ No newline at end of file +../../.git/annex/objects/10/8Q/SHA256E-s2351466--aaf21aabcb5e6b67e5214ed842970a1cf1bfa4c6f7f5cf7e2c5404cca8a03b53.webm/SHA256E-s2351466--aaf21aabcb5e6b67e5214ed842970a1cf1bfa4c6f7f5cf7e2c5404cca8a03b53.webm
\ No newline at end of file |