Skip to content

Commit

Permalink
Fix #3150
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Sep 6, 2018
1 parent 29fab6d commit 3d03158
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions nikola/plugins/compile/rest/youtube.py
Expand Up @@ -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
}

Expand All @@ -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:
Expand Down

0 comments on commit 3d03158

Please sign in to comment.