Browse Source

Merge pull request #393 from Azd325/master

Liquid Tags plugin: update YouTube link syntax
Justin Mayer 10 years ago
parent
commit
9b66e9237f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      liquid_tags/youtube.py

+ 2 - 2
liquid_tags/youtube.py

@@ -14,7 +14,7 @@ Example
 
 Output
 ------
-<iframe width="640" height="480" src="http://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
+<iframe width="640" height="480" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
 
 [1] https://gist.github.com/jamieowen/2063748
 """
@@ -43,7 +43,7 @@ def youtube(preprocessor, tag, markup):
         youtube_out = """
             <div class="videobox">
                 <iframe width="{width}" height="{height}"
-                        src='http://www.youtube.com/v/{youtube_id}'
+                        src='https://www.youtube.com/embed/{youtube_id}'
                         frameborder='0'
                         webkitAllowFullScreen mozallowfullscreen allowFullScreen>
                 </iframe>