Implement MovieManager connection

This commit is contained in:
daru
2022-06-29 00:43:55 +02:00
parent 2b12e63637
commit 022ff8d0f9
12 changed files with 253 additions and 56 deletions

View File

@@ -1,5 +1,5 @@
{% package main %}
{% func Index(animes []Anime, log string) %}
{% func Index(animes []Anime, oracles []MmOracle, log string) %}
{% collapsespace %}
<!DOCTYPE html>
<html lang="en">
@@ -19,6 +19,8 @@ body { background-color: #1a1a1a; color: #fff; }
</head>
<body>
<h1>HUSO - Hanami universeller Serien Organizer</h1>
<h2>Log</h2>
<pre>{%s log %}</pre>
<h2>Anime</h2>
<table>
<tr>
@@ -30,16 +32,24 @@ body { background-color: #1a1a1a; color: #fff; }
<table>
{% for _, anime := range animes %}
<tr>
<td><a href="{%s anime.URL %}" target="_blank" rel="noopener noreferrer">{%dl anime.Anime %}</a></td>
<td><strong>{%s anime.Title %}</strong></td>
<td>{%dl anime.Anime %}</td>
<td>{%d anime.Episodes %}</td>
<td>{%f anime.Score %}</td>
</tr>
{% endfor %}
</table>
<h2>MovieManager Oracle</h2>
<table>
{% for _, oracle := range oracles %}
<tr>
<td><a href="https://movies.hanami.family/movie/{%d oracle.Id %}" target="_blank" rel="noopener noreferrer">{%d oracle.Id %}</a></td>
<td>{%d oracle.AvgScore %}</td>
<td><strong>{%s oracle.Title %}</strong></td>
<td>{%dl oracle.Anime %}</td>
</tr>
{% endfor %}
</table>
<h2>Log</h2>
<pre>
{%s log %}
</pre>
</body>
</html>
{% endcollapsespace %}