Skip to content
Permalink
Browse files
Fix #3150
  • Loading branch information
ralsina committed Sep 6, 2018
1 parent 29fab6d commit 3d03158d10dcb7fec6558d6cc8dc5d6f24e6b6b9
Showing with 4 additions and 3 deletions.
  1. +1 −0 CHANGES.txt
  2. +3 −3 nikola/plugins/compile/rest/youtube.py
@@ -57,6 +57,7 @@ Features
Bugfixes
--------

* Pass arguments to youtube directive unchanged (Issue #3150)
* Fix listing installed themes if theme directory is missing.
* Watch correct output folder in ``nikola auto`` (Issue #3119)
* Fix post fragment dependencies when posts are only available in a
@@ -67,8 +67,8 @@ class Youtube(Directive):
has_content = True
required_arguments = 1
option_spec = {
"width": directives.positive_int,
"height": directives.positive_int,
"width": directives.unchanged,
"height": directives.unchanged,
"align": _align_choice
}

@@ -80,7 +80,7 @@ def run(self):
'width': 560,
'height': 315,
}
options.update(self.options)
options.update({k: v for k, v in self.options.items() if v})
if self.options.get('align') in _align_options_base:
options['align'] = ' align-' + self.options['align']
else:

0 comments on commit 3d03158

Please sign in to comment.