diff --git a/pynyaata/__init__.py b/pynyaata/__init__.py index 6d80a65..2308011 100644 --- a/pynyaata/__init__.py +++ b/pynyaata/__init__.py @@ -1,3 +1,4 @@ +from datetime import datetime from secrets import token_hex from flask import Flask, render_template @@ -11,6 +12,11 @@ app.config["SECRET_KEY"] = token_hex() @app.context_processor def utility_processor(): + current_date = datetime.now() + next_year = current_date.year + 5 - (current_date.year % 5) + + print(next_year) + return dict(_=i18n, current_lang=current_lang(), search_form=SearchForm()) diff --git a/pynyaata/bridge/__init__.py b/pynyaata/bridge/__init__.py new file mode 100644 index 0000000..0cb5850 --- /dev/null +++ b/pynyaata/bridge/__init__.py @@ -0,0 +1,6 @@ +from pynyaata.bridge.animeultime import AnimeUltime +from pynyaata.bridge.nyaa import EraiRaws, Nyaa +from pynyaata.bridge.yggtorrent import YggAnimation, YggTorrent + + +BRIDGES = [Nyaa(), EraiRaws(), YggTorrent(), YggAnimation(), AnimeUltime()] diff --git a/pynyaata/static/css/styles.css b/pynyaata/static/css/styles.css index 31b7491..e69de29 100644 --- a/pynyaata/static/css/styles.css +++ b/pynyaata/static/css/styles.css @@ -1,3 +0,0 @@ -.has-addons .button { - border-left: 0 -} diff --git a/pynyaata/templates/index.html.j2 b/pynyaata/templates/index.html.j2 index 406d382..8808ef4 100644 --- a/pynyaata/templates/index.html.j2 +++ b/pynyaata/templates/index.html.j2 @@ -1,5 +1,8 @@ {% extends "layout.html.j2" %} - {% block body %} - +
{% endblock body %} diff --git a/pynyaata/templates/layout.html.j2 b/pynyaata/templates/layout.html.j2 index ac2e81d..b389add 100644 --- a/pynyaata/templates/layout.html.j2 +++ b/pynyaata/templates/layout.html.j2 @@ -23,28 +23,29 @@