aboutsummaryrefslogtreecommitdiffstats
path: root/templates/embed.tpl
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-25 18:43:54 -0500
committerJesús <heckyel@hyperbola.info>2019-05-25 18:43:54 -0500
commit6e4cf8ee683313f3264d0e0d162816f7c0b71be2 (patch)
treebbdf323dcb46cebedf6c8c2562664d0e8e7b9b25 /templates/embed.tpl
parente07065d2a123fcb419db1be06510e05cf15836c7 (diff)
downloadytlibre-6e4cf8ee683313f3264d0e0d162816f7c0b71be2.tar.lz
ytlibre-6e4cf8ee683313f3264d0e0d162816f7c0b71be2.tar.xz
ytlibre-6e4cf8ee683313f3264d0e0d162816f7c0b71be2.zip
BugFix: not extract video DRM into embed
Diffstat (limited to 'templates/embed.tpl')
-rw-r--r--templates/embed.tpl11
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/embed.tpl b/templates/embed.tpl
index 72f85bd..e265a90 100644
--- a/templates/embed.tpl
+++ b/templates/embed.tpl
@@ -42,10 +42,13 @@
</head>
<body>
<video id="player" controls poster="{$librethumb}" data-setup="{}">
- {$breaklink}
- {foreach $streamFormats as $stream}
- <source data-res="{trim($stream->resolution, 'p')}" src="{$stream->url}" type='{$stream->type}'/>
- {/foreach}
+ {if $breaklink === TRUE}
+ <source data-res="{$breakquality}" src="{$breakurl}" type='{$formatdrm}'/>
+ {else}
+ {foreach $streamFormats as $stream}
+ <source data-res="{trim($stream->resolution, 'p')}" src="{$stream->url}" type='{$stream->type}'/>
+ {/foreach}
+ {/if}
<p>Lo siento, este navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p>
</video>
<!--Plyr-->