Compare commits
14 Commits
fb28eb99ea
...
4ff8bef871
Author | SHA1 | Date |
---|---|---|
Felix Stupp | 4ff8bef871 | 12 months ago |
Felix Stupp | 3a1b2725bc | 12 months ago |
Felix Stupp | 9abf3ead12 | 12 months ago |
Felix Stupp | 86e9fb11fb | 12 months ago |
Felix Stupp | 2f132ee701 | 12 months ago |
Felix Stupp | dde3395d14 | 12 months ago |
Felix Stupp | 6f05900c71 | 12 months ago |
Felix Stupp | bcfa92dfb9 | 12 months ago |
Felix Stupp | 36f4bf9ec4 | 12 months ago |
Felix Stupp | a475a234fe | 12 months ago |
Felix Stupp | 9181f4b292 | 12 months ago |
Felix Stupp | 3ac9a87cbf | 12 months ago |
Felix Stupp | 4bbe0e3f87 | 12 months ago |
Felix Stupp | 9b24333346 | 12 months ago |
@ -1,10 +1,21 @@
|
|||||||
Flask[async]>=2.0.1
|
#Flask[async]>=2.0.1
|
||||||
|
git+https://github.com/Zocker1999NET/flask@config-prefixed-env#egg=Flask
|
||||||
|
mysqlclient>=2.1
|
||||||
pony>=0.7.14
|
pony>=0.7.14
|
||||||
|
pycountry>=20
|
||||||
|
python-magic>=0.4.25
|
||||||
pyyaml>=5.4.1
|
pyyaml>=5.4.1
|
||||||
|
requests>=2.26
|
||||||
rss-parser>=0.2.3
|
rss-parser>=0.2.3
|
||||||
youtube-dl>=2021.6.6
|
tmdbsimple>=2.9.1
|
||||||
youtube-search-python>=1.5.1
|
yt-dlp>=2022.6.29
|
||||||
|
git+https://git.banananet.work/zocker/python-jsoncache#egg=jsoncache
|
||||||
|
git+https://github.com/Zocker1999NET/youtube-search-python@my-version#egg=youtube-search-python
|
||||||
|
git+https://github.com/Zocker1999NET/tinytinypy#egg=tinytinypy
|
||||||
|
# replacement for jinja until https://github.com/pallets/jinja/pull/1712 is merged
|
||||||
|
git+https://github.com/Zocker1999NET/jinja@trailing-comma-3.1.2#egg=Jinja2
|
||||||
|
|
||||||
# custom, local requirements; TODO remove or change to persistent dependency
|
|
||||||
/home/zocker/Repositories/python-jsoncache
|
# types for development
|
||||||
/home/zocker/Repositories/tinytinypy
|
types-requests
|
||||||
|
types-PyYAML
|
||||||
|
@ -0,0 +1,57 @@
|
|||||||
|
{% import "macros.htm" as macros %}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
{% set title = tag.title %}
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<title>{{ title }} - Tag</title>
|
||||||
|
{{ macros.shared_style() }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{{ macros.body_header() }}
|
||||||
|
<h1>{{ title }}</h1>
|
||||||
|
<h2>Notes</h2>
|
||||||
|
<pre>{{ tag.notes or "" }}</pre>
|
||||||
|
<h2>Properties</h2>
|
||||||
|
<ul>
|
||||||
|
{% set api_uri = "/api/tag/" + tag.id|string %}
|
||||||
|
<li>
|
||||||
|
Use for preferences:
|
||||||
|
{{ tag.use_for_preferences | tenary("Yes", "no") }}
|
||||||
|
{{ macros.post_form(api_uri, "use_for_preferences", tag.use_for_preferences | tenary("false", "true"), "toggle") }}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Direct Counts:
|
||||||
|
{{ tag.collection_list | length }} Collections,
|
||||||
|
{{ tag.media_list | length }} Elements
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
{% if tag.super_tag_list | length > 0 %}
|
||||||
|
<h2>Super Tags</h2>
|
||||||
|
{{ macros.tag_table(tag.super_tag_list | sort(attribute="title")) }}
|
||||||
|
{% endif %}
|
||||||
|
{% if tag.sub_tag_list | length > 0 %}
|
||||||
|
<h2>Sub Tags</h2>
|
||||||
|
{{ macros.tag_table(tag.sub_tag_list | sort(attribute="title")) }}
|
||||||
|
{% endif %}
|
||||||
|
{% if tag.collection_list | length > 0 %}
|
||||||
|
<h2>Collections</h2>
|
||||||
|
<ul>
|
||||||
|
{% for collection in tag.collection_list|sort(attribute="title") %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ collection.info_link }}">{{ collection.title }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
{% if tag.media_list | length > 0 %}
|
||||||
|
<h2>Elements</h2>
|
||||||
|
{{ macros.media_thumbnail_list(
|
||||||
|
elements=tag_media_list,
|
||||||
|
check_considered=True,
|
||||||
|
link_collection=True,
|
||||||
|
) }}
|
||||||
|
{% endif %}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
{% import "macros.htm" as macros %}
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
{% set title = tag_list | length | string + " Tags listed" %}
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<title>{{ title }}</title>
|
||||||
|
{{ macros.shared_style() }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{{ macros.body_header() }}
|
||||||
|
<h1>{{ title }}</h1>
|
||||||
|
{{ macros.tag_table(tag_list) }}
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,55 +0,0 @@
|
|||||||
{% import "macros.htm" as macros %}
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
{% set title = tag_list | length | string + " Tags known" %}
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8"/>
|
|
||||||
<title>{{ title }}</title>
|
|
||||||
{{ macros.shared_style() }}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
{{ macros.body_header() }}
|
|
||||||
<h1>{{ title }}</h1>
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th>Id</th>
|
|
||||||
<th>Title</th>
|
|
||||||
<th>Use for Pref.</th>
|
|
||||||
<th>Super Tags</th>
|
|
||||||
<th>Sub Tags</th>
|
|
||||||
<th>Notes</th>
|
|
||||||
</tr>
|
|
||||||
{% macro format_tag(tag) %}
|
|
||||||
<a title="{{ tag.title }}">{{ tag.id }}</a>
|
|
||||||
{% endmacro %}
|
|
||||||
{% macro format_tag_list(tag_list) %}
|
|
||||||
{% for tag in tag_list|sort(attribute="id") %}
|
|
||||||
{{ format_tag(tag) }}
|
|
||||||
{{ " | " if not loop.last }}
|
|
||||||
{% endfor %}
|
|
||||||
{% endmacro %}
|
|
||||||
{% for tag in tag_list %}
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
{{ tag.id }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ tag.title }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ tag.use_for_preferences | tenary("Yes", "no") }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ format_tag_list(tag.super_tag_list) }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ format_tag_list(tag.sub_tag_list) }}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{ tag.notes or "" }}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue