view_playlist.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. {% extends 'base.html' %}
  2. {% load humanize %}
  3. {% load static %}
  4. {% block content %}
  5. <div id="view_playlist">
  6. {% if playlist.has_playlist_changed %}
  7. <div hx-get="{% url 'update_playlist' playlist.playlist_id 'auto' %}" hx-trigger="load" hx-swap="outerHTML">
  8. <div class="d-flex justify-content-center mt-4 mb-3" id="loading-sign">
  9. <img src="{% static 'svg-loaders/circles.svg' %}" width="40" height="40">
  10. <h5 class="mt-2 ms-2">Updating playlist '{{ playlist.name }}', please wait!</h5>
  11. </div>
  12. </div>
  13. {% else %}
  14. <div hx-get="{% url 'update_playlist' playlist.playlist_id 'checkforupdates' %}" hx-trigger="load" hx-swap="outerHTML" class="sticky-top" style="top: 0.5rem;" id="checkforupdates">
  15. </div>
  16. <div class="list-group-item list-group-item-action active">
  17. <div class="d-flex w-100 justify-content-between">
  18. <span>
  19. <h2 class="mb-1"><a href="https://www.youtube.com/playlist?list={{ playlist.playlist_id }}" target="_blank" style="color: white; text-decoration: none">{{ playlist.name }}</a> <small>{% if playlist.user_label %}<span class="h3" style="border-bottom: 3px #ffffff dashed;">a.k.a {{ playlist.user_label }}</span>{% endif %}</small>
  20. <small>
  21. <input class="form-control me-1 visually-hidden" id="pl-{{ playlist.playlist_id }}" value="{{ playlist.playlist_id }}">
  22. <button class="copy-btn btn btn-light mb-1" data-clipboard-target="#pl-{{ playlist.playlist_id }}">
  23. <i class="far fa-copy" aria-hidden="true"></i>
  24. </button>
  25. </small> </h2>
  26. <h6>by {{ playlist.channel_name }}</h6>
  27. </span>
  28. <h4>
  29. <span id="notice-div">
  30. {% if playlist.marked_as != "none" %}
  31. <span class="badge bg-success text-white" >{{ playlist.marked_as|title }}</span>
  32. {% endif %}
  33. </span>
  34. </h4>
  35. </div>
  36. <p class="mb-1">
  37. {% if playlist.description %}
  38. <h5>{{ playlist.description|truncatewords:"50" }}</h5>
  39. {% else %}
  40. <h5>No description</h5>
  41. {% endif %}
  42. </p>
  43. <h6 class="h6 text-uppercase">
  44. <span class="badge bg-light text-black-50">{% if playlist.is_user_owned %}OWNED{% else %}IMPORTED{% endif %}</span>
  45. <span class="badge bg-light text-black-50">{{ playlist.video_count }} VIDEOS</span>
  46. <span class="badge bg-light text-black-50">{{ playlist.playlist_duration }} </span>
  47. <span class="badge bg-light text-black-50">{% if playlist.is_private_on_yt %}PRIVATE{% else %}PUBLIC{% endif %}</span>
  48. {% if playlist.has_unavailable_videos %}
  49. <span class="badge bg-light text-black-50">SOME VIDEOS ARE UNAVAILABLE</span>
  50. {% endif %}
  51. {% if playlist.has_duplicate_videos %}
  52. <span class="badge bg-light text-black-50">DUPLICATE VIDEOS</span>
  53. {% endif %}
  54. </h6>
  55. <h6 class="h6 pt-1">
  56. Tags:
  57. <span class="text-uppercase">
  58. <span id="playlist-tags">
  59. {% for tag in playlist_tags %}
  60. <span id="tag-{{ tag.name|slugify }}">
  61. <span class="badge rounded-pill bg-info mb-lg-1">
  62. <a href="{% url 'tagged_playlists' tag.name %}" style="text-decoration: none; color: white">{{ tag.name }} </a>
  63. <a class="ms-1" hx-post="{% url 'remove_playlist_tag' playlist.playlist_id tag.name %}" hx-trigger="click" hx-target="#tag-{{ tag.name|slugify }}"><i class="fas fa-times-circle"></i></a></span>
  64. </span>
  65. {% endfor %}
  66. </span>
  67. <a data-bs-toggle="collapse" href="#addTagsCollapse" role="button" aria-expanded="false" aria-controls="addTagsCollapse">
  68. <span class="badge rounded-pill bg-warning mb-lg-2"><i class="fas fa-plus"></i>{% if playlist_tags.count == 0 %} add a tag{% endif %}</span>
  69. </a>
  70. </span>
  71. <div class="collapse" id="addTagsCollapse">
  72. <div class="card card-body bg-dark text-white">
  73. <h5>Add a tag to this playlist</h5>
  74. {% if unused_tags %}
  75. <div class="d-flex justify-content-start mt-2">
  76. <select class="form-select w-50 bg-dark text-white border border-secondary" name="playlistTag" hx-get="{% url 'get_unused_playlist_tags' playlist.playlist_id %}" hx-trigger="click" hx-target="#unused-playlist-tags">
  77. <option selected>Pick from existing unused tags</option>
  78. <span id="unused-playlist-tags">
  79. {% for tag in unused_tags %}
  80. <option value="{{ tag.name }}">{{ tag.name }}</option>
  81. {% endfor %}
  82. </span>
  83. </select>
  84. <div class="btn-group ms-2">
  85. <button type="button" class="btn btn-warning" hx-post="{% url 'add_playlist_tag' playlist.playlist_id %}" hx-trigger="click" hx-include="[name='playlistTag']" hx-target="this">Add Tag</button>
  86. </div>
  87. </div>
  88. <div class="d-flex justify-content-start mt-3 mb-2">
  89. - OR -
  90. </div>
  91. {% endif %}
  92. <div class="d-flex justify-content-start mt-2">
  93. <input class="form-control w-50 bg-dark text-white border border-secondary" placeholder="Enter a new tag name here" name="createTagField">
  94. <div class="btn-group ms-2">
  95. <button type="button" class="btn btn-warning" hx-post="{% url 'create_playlist_tag' playlist.playlist_id %}" hx-trigger="click" hx-include="[name='createTagField']" hx-target="this">Create & Add Tag</button>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </h6>
  101. </div>
  102. <br>
  103. <div id="row1">
  104. <div class="d-flex bd-highlight mb-1">
  105. <div class="me-auto bd-highlight">
  106. <div class="btn-toolbar mb-2 mb-md-0">
  107. <!--
  108. <div class="btn-group me-2">
  109. <button type="button" class="btn {% if playlist.view_in_grid_mode %}btn-info {% else %}btn-outline-info{% endif %}">Grid</button>
  110. <button type="button" class="btn {% if not playlist.view_in_grid_mode %}btn-info {% else %}btn-outline-info{% endif %}">List</button>
  111. </div>
  112. -->
  113. {% if videos.count != 0 %}
  114. <div class="btn-group me-2">
  115. <button type="button" class="btn btn-success dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
  116. Sort By
  117. </button>
  118. <ul class="dropdown-menu">
  119. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'all' %}" hx-trigger="click" hx-target="#videos-div">All</button></li>
  120. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'favorites' %}" hx-trigger="click" hx-target="#videos-div">Favorites</button></li>
  121. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'popularity' %}" hx-trigger="click" hx-target="#videos-div">Popularity</button></li>
  122. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'date-published' %}" hx-trigger="click" hx-target="#videos-div">Date Published</button></li>
  123. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'views' %}" hx-trigger="click" hx-target="#videos-div">Views</button></li>
  124. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'has-cc' %}" hx-trigger="click" hx-target="#videos-div">Has CC</button></li>
  125. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'duration' %}" hx-trigger="click" hx-target="#videos-div">Duration</button></li>
  126. <li><hr class="dropdown-divider"></li>
  127. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'new-updates' %}" hx-trigger="click" hx-target="#videos-div">Updates</button></li>
  128. <li><button class="dropdown-item" hx-get="{% url 'order_playlist_by' playlist.playlist_id 'unavailable-videos' %}" hx-trigger="click" hx-target="#videos-div">Unavailable</button></li>
  129. </ul>
  130. </div>
  131. {% endif %}
  132. <div class="btn-group me-2">
  133. <button type="button" class="btn btn-warning dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
  134. Mark As
  135. </button>
  136. <ul class="dropdown-menu">
  137. <li><button class="dropdown-item" hx-get="{% url 'mark_playlist_as' playlist.playlist_id 'none' %}" hx-trigger="click" hx-target="#notice-div">None</button></li>
  138. <li><button class="dropdown-item" hx-get="{% url 'mark_playlist_as' playlist.playlist_id 'watching' %}" hx-trigger="click" hx-target="#notice-div">Watching</button></li>
  139. <li><button class="dropdown-item" hx-get="{% url 'mark_playlist_as' playlist.playlist_id 'plan-to-watch' %}" hx-trigger="click" hx-target="#notice-div">Plan to Watch</button></li>
  140. </ul>
  141. </div>
  142. </div>
  143. </div>
  144. <div class="bd-highlight">
  145. <div class="btn-toolbar mb-2 mb-md-0">
  146. <div class="btn-group me-2">
  147. <a hx-get="{% url 'update_playlist' playlist.playlist_id 'manual' %}" hx-target="#view_playlist" class="btn btn-secondary">
  148. <i class="fas fa-sync"></i>
  149. </a>
  150. </div>
  151. <div class="btn-group me-2">
  152. <button class="btn btn-warning" type="button" hx-get="{% url 'mark_playlist_as' playlist.playlist_id 'favorite' %}" hx-target="#playlist-fav">
  153. <div id="playlist-fav">
  154. {% if playlist.is_favorite %}
  155. <i class="fas fa-star"></i>
  156. {% else %}
  157. <i class="far fa-star"></i>
  158. {% endif %}
  159. </div>
  160. </button>
  161. </div>
  162. <div class="btn-group me-2">
  163. <a href="{% url 'view_playlist_settings' playlist.playlist_id %}" class="btn btn-primary">
  164. <i class="fas fa-cog"></i>
  165. </a>
  166. </div>
  167. {% if videos.count != 0 %}
  168. <div class="btn-group me-2">
  169. <button type="button" class="btn btn-light" onclick="row1_hide()">Manage</button>
  170. </div>
  171. {% endif %}
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <div id="row2" style="display: none">
  177. <div class="d-flex bd-highlight mb-1">
  178. <div class="me-auto bd-highlight">
  179. <div class="btn-toolbar mb-2 mb-md-0">
  180. <div id="select-all-btn">
  181. <div class="btn-group me-2">
  182. <button type="button" class="btn btn-info" id="select-all-btn">Select All</button>
  183. </div>
  184. </div>
  185. <div id="deselect-all-btn" style="display: none">
  186. <div class="btn-group me-2">
  187. <button type="button" class="btn btn-info" id="select-all-btn">De-select All</button>
  188. </div>
  189. </div>
  190. <div class="btn-group me-2">
  191. <!-- <button type="submit" form="my-form" class="btn btn-outline-success" data-bs-toggle="dropdown" aria-expanded="false">
  192. Move
  193. </button> -->
  194. <button class="btn btn-success" id="move-copy-vids-btn" type="button" data-bs-toggle="collapse" data-bs-target="#moveItemsToCollapse" aria-expanded="false" aria-controls="moveItemsToCollapse">
  195. {% if playlist.is_user_owned %}Move/{% endif %}Copy Videos
  196. </button>
  197. </div>
  198. <!--
  199. <div class="btn-group me-2">
  200. <button type="button" class="btn btn-outline-warning" data-bs-toggle="dropdown" aria-expanded="false">
  201. Mark/Unmark Favorite
  202. </button>
  203. </div>
  204. -->
  205. {% if playlist.is_user_owned %}
  206. <div class="btn-group me-2">
  207. <button hx-post="{% url 'delete_videos' playlist.playlist_id 'confirm' %}" hx-include="[id='video-checkboxes']" hx-target="#delete-videos-confirm-box" type="button" id="delete-vids-btn" class="btn btn-danger" data-bs-toggle="collapse" data-bs-target="#deleteItemsCollapse" aria-expanded="false" aria-controls="deleteItemsCollapse">
  208. Delete Selected Videos
  209. </button>
  210. </div>
  211. {% endif %}
  212. </div>
  213. </div>
  214. <div class="bd-highlight">
  215. <div class="btn-toolbar mb-2 mb-md-0">
  216. <div class="btn-group me-2">
  217. <button type="button" class="btn btn-light" onclick="row1_show()" id="manageBtn">Manage</button>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. <div id="row3" style="background-color: #0f5132">
  224. <div class="collapse border-danger" id="moveItemsToCollapse">
  225. <div class="card card-body bg-dark text-white-50">
  226. <h5>{% if playlist.is_user_owned %}Move or {% endif %}Copy videos to another playlist!</h5>
  227. <div class="d-flex justify-content-start">
  228. <div class="col-md-6 text-dark">
  229. <select class="visually-hidden" onchange="triggerSubmit()"
  230. id="choices-multiple-remove-button" name="playlist-tags" placeholder="Select Playlists" multiple>
  231. {% for pl in user_owned_playlists %}
  232. {% if pl.playlist_id != playlist.playlist_id %}
  233. <option value="{{ pl.playlist_id }}" class="text-dark">{{ pl.name }}</option>
  234. {% endif %}
  235. {% endfor %}
  236. </select>
  237. </div>
  238. </div>
  239. <div class="d-flex justify-content-start mt-2">
  240. <!--
  241. <div class="btn-group">
  242. <a href="{% url 'all_playlists' 'all' %}" target="_blank" class="btn btn-sm btn-success" id="select-all-btn">Search for Playlists <i class="fas fa-external-link-alt" aria-hidden="true"></i></a>
  243. </div>
  244. -->
  245. {% if playlist.is_user_owned %}
  246. <div class="btn-group me-2">
  247. <button type="button" class="btn btn-info" id="select-all-btn">Move!</button>
  248. </div>
  249. {% endif %}
  250. <div class="btn-group">
  251. <button type="button" class="btn btn-info" id="select-all-btn">Copy!</button>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. <div id="row4" style="background-color: #0f5132">
  258. <div class="collapse border-danger" id="deleteItemsCollapse">
  259. <div class="card card-body bg-dark text-white-50">
  260. <div id="delete-videos-confirm-box">
  261. <h5>Are you sure you want to delete these 40 items from your YouTube playlist? This cannot be undone.</h5>
  262. </div>
  263. <div class="d-flex justify-content-start">
  264. <div class="btn-group ms-2">
  265. <button hx-post="{% url 'delete_videos' playlist.playlist_id 'confirmed' %}" hx-include="[id='video-checkboxes']" type="button" class="btn btn-danger" id="select-all-btn">Yes!</button>
  266. </div>
  267. <div class="btn-group ms-2">
  268. <button type="button" class="btn btn-secondary" id="select-all-btn">Nvm</button>
  269. </div>
  270. <div class="btn-group ms-2">
  271. <button hx-post="{% url 'delete_videos' playlist.playlist_id 'confirm' %}" hx-include="[id='video-checkboxes']" hx-target="#delete-videos-confirm-box" type="button" class="btn btn-primary">
  272. <i class="fas fa-sync"></i>
  273. </button>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <div class="table-responsive" id="videos-div">
  280. <br>
  281. {% if videos %}
  282. <div class="list-group" id="video-checkboxes">
  283. {% for video in videos|slice:"0:50" %}
  284. <li {% if forloop.last and videos.count > 50 %}hx-get="{% url 'load_more_videos' playlist.playlist_id page|default:"1" %}"
  285. hx-trigger="revealed"
  286. hx-swap="afterend" hx-indicator="#load-more-videos-spinner" {% endif %} class="list-group-item d-flex justify-content-between align-items-center bg-transparent" style="background-color: #40B3A2">
  287. {% if video.is_unavailable_on_yt and not video.was_deleted_on_yt %}
  288. <div class="d-flex justify-content-between align-items-center">
  289. <div>
  290. <input class="video-checkboxes" style="display: none" type="checkbox" value="{{ video.playlist_item_id }}" name="video-id">
  291. </div>
  292. <div class="ms-4" style="max-width: 115px; max-height: 100px;">
  293. <img src="https://i.ytimg.com/vi/9219YrnwDXE/maxresdefault.jpg" class="img-fluid" alt="">
  294. </div>
  295. <div class="ms-4">
  296. <a class="link-dark" href="https://www.youtube.com/watch?v={{ video.video_id }}&list={{ video.playlist.playlist_id }}" target="_blank">
  297. {{ video.video_position }}. {{ video.name }}
  298. </a>
  299. <br><br>
  300. </div>
  301. </div>
  302. {% else %}
  303. <div class="d-flex justify-content-between align-items-center" >
  304. <div>
  305. <input class="video-checkboxes" style="display: none" type="checkbox" value="{{ video.playlist_item_id }}" name="video-id">
  306. </div>
  307. <div class="ms-4" style="max-width: 115px; max-height: 100px;">
  308. <img src="{% if video.thumbnail_url %}{{ video.thumbnail_url }}{% else %}https://i.ytimg.com/vi/9219YrnwDXE/maxresdefault.jpg{% endif %}" class="img-fluid" alt="">
  309. </div>
  310. <div class="ms-4">
  311. {% if video.is_unavailable_on_yt and video.was_deleted_on_yt %}
  312. {{ video.video_position }}.
  313. <a class="link-dark" href="https://www.youtube.com/watch?v={{ video.video_id }}&list={{ video.playlist.playlist_id }}" target="_blank">
  314. {{ video.name|truncatewords:"16" }}
  315. </a>
  316. <br>
  317. <span class="badge bg-dark">VIDEO UNAVAILABLE</span>
  318. {% if video.video_details_modified %}<span class="badge bg-danger">WENT PRIVATE/DELETED {{ video.updated_at|naturaltime|upper }}</span>{% endif %}
  319. <br><br>
  320. {% else %}
  321. {{ video.video_position }}.
  322. <a class="link-dark" href="https://www.youtube.com/watch?v={{ video.video_id }}&list={{ video.playlist.playlist_id }}" target="_blank">
  323. {{ video.name|truncatewords:"16" }}
  324. </a> by {{ video.channel_name }} <br>
  325. <span class="badge bg-secondary">{{ video.duration }}</span>
  326. {% if video.has_cc %}<span class="badge bg-secondary">CC</span>{% endif %}
  327. {% if video.published_at %}<span class="badge bg-secondary">{{ video.published_at }}</span>{% endif %}
  328. {% if video.view_count %}<span class="badge bg-info">{{ video.view_count|intword|intcomma }} views</span>{% endif %}
  329. {% if video.is_duplicate %}<span class="badge bg-primary">duplicate</span>{% endif %}
  330. {% if video.video_details_modified %}<span class="badge bg-danger">{% if video.was_deleted_on_yt %}WENT PRIVATE/DELETED{% else %}ADDED{% endif %} {{ video.created_at|naturaltime|upper }}</span>{% endif %}<br>
  331. <br>
  332. {% endif %}
  333. </div>
  334. </div>
  335. <div class="ms-5">
  336. {% if video.is_unavailable_on_yt and video.was_deleted_on_yt %}
  337. <button class="btn btn-sm btn-warning mb-1" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasForVideoNotes" aria-controls="offcanvasBottom" hx-get="{% url 'video_notes' playlist.playlist_id video.video_id %}" hx-trigger="click" hx-target="#video-notes">Notes</button>
  338. <button class="btn btn-sm btn-dark mb-1" type="button" hx-get="{% url 'mark_video_favorite' playlist.playlist_id video.video_id %}" hx-target="#video-{{ forloop.counter }}-fav">
  339. <div id="video-{{ forloop.counter }}-fav">
  340. {% if video.is_favorite %}
  341. <i class="fas fa-heart"></i>
  342. {% else %}
  343. <i class="far fa-heart"></i>
  344. {% endif %}
  345. </div>
  346. </button>
  347. {% else %}
  348. <a class="btn btn-sm btn-info mb-1" type="button" href="https://www.youtube.com/watch?v={{ video.video_id }}" class="btn btn-info me-1" target="_blank"><i class="fas fa-external-link-alt" aria-hidden="true"></i></a>
  349. <input class="form-control me-1 visually-hidden" id="video-{{ video.video_id }}" value="https://www.youtube.com/watch?v={{ video.video_id }}">
  350. <button class="copy-btn btn btn-sm btn-success mb-1" data-clipboard-target="#video-{{ video.video_id }}">
  351. <i class="far fa-copy" aria-hidden="true"></i>
  352. </button>
  353. <button class="btn btn-sm btn-primary mb-1" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBackdrop" aria-controls="offcanvasBottom" hx-get="{% url 'video_details' playlist.playlist_id video.video_id %}" hx-trigger="click" hx-target="#video-details"><i class="fas fa-info"></i></button>
  354. <button class="btn btn-sm btn-warning mb-1" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasForVideoNotes" aria-controls="offcanvasBottom" hx-get="{% url 'video_notes' playlist.playlist_id video.video_id %}" hx-trigger="click" hx-target="#video-notes">Notes</button>
  355. <button class="btn btn-sm btn-dark mb-1" type="button" hx-get="{% url 'mark_video_favorite' playlist.playlist_id video.video_id %}" hx-target="#video-{{ forloop.counter }}-fav">
  356. <div id="video-{{ forloop.counter }}-fav">
  357. {% if video.is_favorite %}
  358. <i class="fas fa-heart"></i>
  359. {% else %}
  360. <i class="far fa-heart"></i>
  361. {% endif %}
  362. </div>
  363. </button>
  364. {% if playlist.marked_as == "watching" %}
  365. <button class="btn btn-sm btn-light mb-1" type="button">
  366. <i class="far fa-check-circle"></i>
  367. </button>
  368. {% endif %}
  369. {% endif %}
  370. </div>
  371. {% endif %}
  372. </li>
  373. {% endfor %}
  374. </div>
  375. {% else %}
  376. <div class="card bg-dark text-white mb-3">
  377. <div class="card-body">
  378. <div class="d-flex justify-content-center align-content-center">
  379. Playlist is empty ;-;
  380. </div>
  381. <div class="d-flex justify-content-center align-content-center">
  382. Consider moving/copying videos from other playlists into this playlist by copying and using this playlist's ID.
  383. </div>
  384. </div>
  385. </div>
  386. {% endif %}
  387. </div>
  388. {% endif %}
  389. <div class="d-flex justify-content-center">
  390. <img id="load-more-videos-spinner" class="htmx-indicator mt-4" src="{% static 'svg-loaders/spinning-circles.svg' %}" width="40" height="40">
  391. </div>
  392. </div>
  393. <!--
  394. <script src="{% static 'youtube-audio-player/iframe-api.js' %}"></script>
  395. <script src="{% static 'youtube-audio-player/yt.min.js' %}"></script>
  396. -->
  397. {% endblock %}