mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2025-07-03 20:31:38 +00:00
update glance home page
This commit is contained in:
@ -82,69 +82,6 @@
|
||||
- url: https://selfh.st/rss/
|
||||
title: selfh.st
|
||||
|
||||
- type: custom-api
|
||||
title: Seradar
|
||||
cache: 1m
|
||||
url: https://seradar.net/api/collections/series/records?page=1&perPage=1000&sort=-new_episodes
|
||||
headers:
|
||||
Accept: application/json
|
||||
Authorization: ${SERADAR_TOKEN}
|
||||
template: |
|
||||
{{ if eq .Response.StatusCode 200 }}
|
||||
<div class="widget widget-type-rss">
|
||||
<div
|
||||
class="widget-content widget-content-frameless"
|
||||
>
|
||||
<div
|
||||
class="carousel-container show-right-cutoff"
|
||||
>
|
||||
<div
|
||||
class="cards-horizontal carousel-items-container"
|
||||
>
|
||||
{{ range .JSON.Array "items" }}
|
||||
<a
|
||||
href="https://www.themoviedb.org/tv/{{ .String "series_id" }}"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
title="{{ .String "english_name" }}"
|
||||
>
|
||||
<div
|
||||
class="card rss-card-2 widget-content-frame thumbnail-parent"
|
||||
>
|
||||
<img
|
||||
class="rss-card-2-image thumbnail cached finished-transition"
|
||||
loading="lazy"
|
||||
src="{{ .String "poster_path" }}"
|
||||
alt="{{ .String "poster_path" }}"
|
||||
/>
|
||||
|
||||
<div
|
||||
class="rss-card-2-content padding-inline-widget"
|
||||
>
|
||||
<a
|
||||
href="https://www.themoviedb.org/tv/{{ .String "series_id" }}"
|
||||
class="text-truncate-3-lines color-positive margin-top-10 size-h4"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
title="{{ .String "english_name" }}"
|
||||
>{{ .String "english_name" }}</a>
|
||||
{{ if gt (.Int "new_episodes") 0 }}
|
||||
<p class="color-highlight">+{{ .Int "new_episodes" }} new episodes</p>
|
||||
{{ else }}
|
||||
<p>no new episodes</p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<p class="color-negative">Failed to fetch seradar.net data</p>
|
||||
{{ end }}
|
||||
|
||||
- size: small
|
||||
widgets:
|
||||
- type: calendar
|
||||
|
Reference in New Issue
Block a user