diff options
Diffstat (limited to 'templates/article.html')
| -rw-r--r-- | templates/article.html | 12 | 
1 files changed, 2 insertions, 10 deletions
diff --git a/templates/article.html b/templates/article.html index 3de52e4..2aa24f2 100644 --- a/templates/article.html +++ b/templates/article.html @@ -3,15 +3,7 @@    <div class="thumbnail" style="height: 30vh;">$thumbnail$</div>    $endif$    $if(torrent)$ -  <video controls class="thumbnail" id="media-$id$" style="height: 30vh;"></video> -  <script type='module'> -    const torrentId = '$torrent$'; -    const player = document.querySelector('#media-$id$'); -    window.torrentClient.add(torrentId, torrent => { -      const file = torrent.files.find(file => file.name.endsWith('.mp4')); -      file.streamTo(player); -    }); -  </script> +  $partial("templates/video-player.html")$    $endif$    <div class="panel">      <section class="header"> @@ -39,4 +31,4 @@        $body$      </section>    </div> -</article> +</article>
\ No newline at end of file  | 
