Added 'imdb_api_access' app

removed 'new_episodes' page
changed series_count algorithm
This commit is contained in:
ayxan
2022-12-16 11:27:51 +04:00
parent 939f8ad578
commit 8ec01acc4c
20 changed files with 318 additions and 256 deletions

View File

@@ -12,7 +12,9 @@
<thead>
<tr>
<th scope="col">Title ({{series.paginator.count}})</th>
<th scope="col">Season - Episode</th>
<th scope="col">Watched</th>
<th scope="col">Last</th>
<th scope="col">Unwatched</th>
<th scope="col">Show</th>
</tr>
</thead>
@@ -31,11 +33,19 @@
<img class="trash-icon" src="{% static 'icons/trash.png' %}" width="24px" height="24px">
</a>
</th>
<td>
<a href="https://www.imdb.com/title/{{s.imdb_id}}/episodes?season={{s.last_season}}" style="text-decoration: none;" target="_blank">
{{s.watched_season}} - {{s.watched_episode}}
</a>
</td>
<td>
<a href="https://www.imdb.com/title/{{s.imdb_id}}/episodes?season={{s.last_season}}" style="text-decoration: none;" target="_blank">
{{s.last_season}} - {{s.last_episode}}
</a>
</td>
<td>
{{s.new_episodes_count}}
</td>
<td>
{% if s.show %}
<img src="{% static 'icons/true-check-button.png' %}" width="22px" height="22px">
@@ -51,7 +61,13 @@
<div style="margin-bottom: 8.5rem;">
<div class="btn-new-episode">
<button type="button" class="btn btn-outline-primary">
<a href="/series/new-episodes/" style="text-decoration: none; color: inherit;">New Episodes</a>
<a href="/" style="text-decoration: none; color: inherit;">All</a>
</button>
<button type="button" class="btn btn-outline-primary" style="margin-left: 4px;">
<a href="?new=true" style="text-decoration: none; color: inherit;">Unwatched</a>
</button> <br>
<button type="button" class="btn btn-outline-primary" style="margin-top: 4.7%; margin-bottom: 77%;">
<a href="/series/new-episodes/" style="text-decoration: none; color: inherit;">Update</a>
</button>
</div>