Просмотр исходного кода

Updated html snippet of youtube

Updated the youtube url to get the embedded player to work again
Tim Kleinschmidt лет назад: 10
Родитель
Сommit
e80c236275
1 измененных файлов с 2 добавлено и 2 удалено
  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>