Changed:
- improved more flexible sb timestamps indexing
- fixed per channel sb activate/deactivate
- improved Dockerfile with multi stage build
- added playlist API list view
{% if video.channel.channel_overwrites.integrate_sponsorblock %}
{% if video.sponsorblock.is_enabled %}
{% if video.channel.channel_overwrites.integrate_sponsorblock == True %}
{% if video.sponsorblock.segments|length == 0 %}
{% if not video.sponsorblock %}
<h4>This video doesn't have any sponsor segments added. To add a segment go to <u><ahref="https://www.youtube.com/watch?v={{ video.youtube_id }}">this video on YouTube</a></u> and add a segment using the <u><ahref="https://sponsor.ajay.app/">SponsorBlock</a></u> extension.</h4>
{% endif %}
{% if video.sponsorblock %}
{% for segment in video.sponsorblock %}
{% if segment.locked != 1 %}
<h4>This video has unlocked sponsor segments. Go to <u><ahref="https://www.youtube.com/watch?v={{ video.youtube_id }}">this video on YouTube</a></u> and vote on the segments using the <u><ahref="https://sponsor.ajay.app/">SponsorBlock</a></u> extension.</h4>
<h4>This video doesn't have any sponsor segments added. To add a segment go to <u><ahref="https://www.youtube.com/watch?v={{ video.youtube_id }}">this video on YouTube</a></u> and add a segment using the <u><ahref="https://sponsor.ajay.app/">SponsorBlock</a></u> extension.</h4>
<h4>This video doesn't have any sponsor segments added. To add a segment go to <u><ahref="https://www.youtube.com/watch?v={{ video.youtube_id }}">this video on YouTube</a></u> and add a segment using the <u><ahref="https://sponsor.ajay.app/">SponsorBlock</a></u> extension.</h4>
{% endif %}
{% elif video.sponsorblock.has_unlocked %}
{% if video.sponsorblock %}
<h4>This video has unlocked sponsor segments. Go to <u><ahref="https://www.youtube.com/watch?v={{ video.youtube_id }}">this video on YouTube</a></u> and vote on the segments using the <u><ahref="https://sponsor.ajay.app/">SponsorBlock</a></u> extension.</h4>
{% for segment in video.sponsorblock %}
{% if segment.locked != 1 %}
<h4>This video has unlocked sponsor segments. Go to <u><ahref="https://www.youtube.com/watch?v={{ video.youtube_id }}">this video on YouTube</a></u> and vote on the segments using the <u><ahref="https://sponsor.ajay.app/">SponsorBlock</a></u> extension.</h4>
notificationsElement.innerHTML+=`<h3 id="notification-${sponsorBlock[i].UUID}">Skipped sponsor segment from ${formatTime(sponsorBlock[i].segment[0])} to ${formatTime(sponsorBlock[i].segment[1])}.</h3>`;
notificationsElement.innerHTML+=`<h3 id="notification-${sponsorBlock.segments[i].UUID}">Skipped sponsor segment from ${formatTime(sponsorBlock.segments[i].segment[0])} to ${formatTime(sponsorBlock.segments[i].segment[1])}.</h3>`;