diff --git a/settings.py b/settings.py
index fdaebc7..9154055 100644
--- a/settings.py
+++ b/settings.py
@@ -502,6 +502,6 @@ def settings_page():
for func, old_value, value in to_call:
func(old_value, value)
- return flask.redirect(util.URL_ORIGIN + '/settings', 303)
+ return flask.redirect(util.URL_ORIGIN)
else:
flask.abort(400)
diff --git a/youtube/__init__.py b/youtube/__init__.py
index 3604b21..0a2d363 100644
--- a/youtube/__init__.py
+++ b/youtube/__init__.py
@@ -14,9 +14,6 @@ yt_app.url_map.strict_slashes = False
# yt_app.jinja_env.lstrip_blocks = True
-yt_app.add_url_rule('/settings', 'settings_page', settings.settings_page, methods=['POST', 'GET'])
-
-
@yt_app.route('/')
def homepage():
return flask.render_template('home.html', title="YT Local")
diff --git a/youtube/static/channel.css b/youtube/static/channel.css
index c8750da..b0f249e 100644
--- a/youtube/static/channel.css
+++ b/youtube/static/channel.css
@@ -264,11 +264,9 @@ hr {
.item-box {
display: grid;
- grid-template-columns: 1.9fr 0.1fr;
+ grid-template-columns: 1fr;
grid-template-rows: 1fr;
- grid-gap: 1px;
- grid-template-areas:
- "item-video item-checkbox";
+ grid-template-areas: "item-video";
}
.item-video {
diff --git a/youtube/static/local_playlist.css b/youtube/static/local_playlist.css
index 3b32f0b..e5554dc 100644
--- a/youtube/static/local_playlist.css
+++ b/youtube/static/local_playlist.css
@@ -240,11 +240,9 @@ hr {
.item-box {
display: grid;
- grid-template-columns: 1.9fr 0.1fr;
+ grid-template-columns: 1fr;
grid-template-rows: 1fr;
- grid-gap: 1px;
- grid-template-areas:
- "item-video item-checkbox";
+ grid-template-areas: "item-video";
}
.item-video {
diff --git a/youtube/static/playlist.css b/youtube/static/playlist.css
index 4bde3b5..e13b61b 100644
--- a/youtube/static/playlist.css
+++ b/youtube/static/playlist.css
@@ -250,11 +250,9 @@ hr {
.item-box {
display: grid;
- grid-template-columns: 1.9fr 0.1fr;
+ grid-template-columns: 1fr;
grid-template-rows: 1fr;
- grid-gap: 1px;
- grid-template-areas:
- "item-video item-checkbox";
+ grid-template-areas: "item-video";
}
.item-video {
diff --git a/youtube/static/search.css b/youtube/static/search.css
index da622fa..3f6aff5 100644
--- a/youtube/static/search.css
+++ b/youtube/static/search.css
@@ -268,11 +268,9 @@ hr {
.item-box {
display: grid;
- grid-template-columns: 1.9fr 0.1fr;
+ grid-template-columns: 1fr;
grid-template-rows: 1fr;
- grid-gap: 1px;
- grid-template-areas:
- "item-video item-checkbox";
+ grid-template-areas: "item-video";
}
.item-video {
diff --git a/youtube/static/subscription.css b/youtube/static/subscription.css
index c163d9e..d2b589c 100644
--- a/youtube/static/subscription.css
+++ b/youtube/static/subscription.css
@@ -244,11 +244,9 @@ hr {
.item-box {
display: grid;
- grid-template-columns: 1.9fr 0.1fr;
+ grid-template-columns: 1fr;
grid-template-rows: 1fr;
- grid-gap: 1px;
- grid-template-areas:
- "item-video item-checkbox";
+ grid-template-areas: "item-video";
}
.item-video {
diff --git a/youtube/static/watch.css b/youtube/static/watch.css
index 116dbae..6e4e645 100644
--- a/youtube/static/watch.css
+++ b/youtube/static/watch.css
@@ -407,11 +407,9 @@ label[for=options-toggle-cbox] {
.item-box {
display: grid;
- grid-template-columns: 1.9fr 0.1fr;
+ grid-template-columns: 1fr;
grid-template-rows: 1fr;
- grid-gap: 1px;
- grid-template-areas:
- "item-video item-checkbox";
+ grid-template-areas: "item-video";
}
.item-video {
diff --git a/youtube/templates/base.html b/youtube/templates/base.html
index 045d85d..d3c1bd6 100644
--- a/youtube/templates/base.html
+++ b/youtube/templates/base.html
@@ -126,22 +126,6 @@
- {% if header_playlist_names is defined %}
-
-
- {% endif %}
-
diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html
index 294f1df..a4361c3 100644
--- a/youtube/templates/channel.html
+++ b/youtube/templates/channel.html
@@ -21,14 +21,6 @@
-
-
-
diff --git a/youtube/templates/common_elements.html b/youtube/templates/common_elements.html
index 808a835..38266d0 100644
--- a/youtube/templates/common_elements.html
+++ b/youtube/templates/common_elements.html
@@ -59,9 +59,6 @@
{% endif %}
- {% if info['type'] == 'video' %}
-
- {% endif %}
{% endif %}
{% endmacro %}
diff --git a/youtube/templates/home.html b/youtube/templates/home.html
index ef1f029..b537cca 100644
--- a/youtube/templates/home.html
+++ b/youtube/templates/home.html
@@ -4,10 +4,4 @@
{% endblock style %}
{% block main %}
-
{% endblock main %}
diff --git a/youtube/templates/settings.html b/youtube/templates/settings.html
index 7a7ce9e..4749d4c 100644
--- a/youtube/templates/settings.html
+++ b/youtube/templates/settings.html
@@ -5,43 +5,5 @@
{% endblock style %}
{% block main %}
-
{% endblock main %}
diff --git a/youtube/templates/subscription_manager.html b/youtube/templates/subscription_manager.html
deleted file mode 100644
index 5e240b2..0000000
--- a/youtube/templates/subscription_manager.html
+++ /dev/null
@@ -1,77 +0,0 @@
-{% set page_title = 'Subscription Manager' %}
-{% extends "base.html" %}
-{% block style %}
-
-{% endblock style %}
-
-
-{% macro subscription_list(sub_list) %}
- {% for subscription in sub_list %}
-
-
- {{ subscription['channel_name'] }}
- {{ ', '.join(subscription['tags']) }}
-
- {% endfor %}
-{% endmacro %}
-
-{% block main %}
-
-
-
-
-
-
-
- {% if group_by_tags %}
-
- {% for tag_name, sub_list in tag_groups %}
- -
-
{{ tag_name }}
-
- {{ subscription_list(sub_list) }}
-
-
- {% endfor %}
-
- {% else %}
-
- {{ subscription_list(sub_list) }}
-
- {% endif %}
-
-{% endblock main %}
diff --git a/youtube/templates/subscriptions.html b/youtube/templates/subscriptions.html
index b528e5c..6302fcc 100644
--- a/youtube/templates/subscriptions.html
+++ b/youtube/templates/subscriptions.html
@@ -13,71 +13,5 @@
{% block main %}
-
-
- {% if current_tag %}
- {{ current_tag }}
- {% endif %}
-
-
- {% for video_info in videos %}
- {{ common_elements.item(video_info) }}
- {% endfor %}
-
-
-
-
{% endblock main %}