aboutsummaryrefslogtreecommitdiff
path: root/_plugins
diff options
context:
space:
mode:
Diffstat (limited to '_plugins')
-rw-r--r--_plugins/linter.rb5
1 files changed, 3 insertions, 2 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}'"