summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com>2021-04-05 14:44:16 +0000
committerGitHub <noreply@github.com>2021-04-05 14:44:16 +0000
commitf20d420aa74a55ae80f91bba00aa9d472bd74f1e (patch)
treeac8b5d661ab222877568c47853d39e3eb543f6c2 /src
parentc0997f951c9af58a844d6098398ce0a39e43d052 (diff)
parent428747ab694cd77658fb8afff85c771501f1e07e (diff)
downloadinvidious-f20d420aa74a55ae80f91bba00aa9d472bd74f1e.tar.gz
invidious-f20d420aa74a55ae80f91bba00aa9d472bd74f1e.tar.bz2
invidious-f20d420aa74a55ae80f91bba00aa9d472bd74f1e.zip
Merge pull request #1980 from syeopite/fix1625
Allow default_home config to be an empty string
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/helpers.cr2
-rw-r--r--src/invidious/users.cr2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr
index 5d127e1a..f6b6acd1 100644
--- a/src/invidious/helpers/helpers.cr
+++ b/src/invidious/helpers/helpers.cr
@@ -42,7 +42,7 @@ struct ConfigPreferences
property player_style : String = "invidious"
property quality : String = "hd720"
property quality_dash : String = "auto"
- property default_home : String = "Popular"
+ property default_home : String? = "Popular"
property feed_menu : Array(String) = ["Popular", "Trending", "Subscriptions", "Playlists"]
property related_videos : Bool = true
property sort : String = "published"
diff --git a/src/invidious/users.cr b/src/invidious/users.cr
index 7a948b76..8fef64a0 100644
--- a/src/invidious/users.cr
+++ b/src/invidious/users.cr
@@ -68,7 +68,7 @@ struct Preferences
property quality : String = CONFIG.default_user_preferences.quality
@[JSON::Field(converter: Preferences::ProcessString)]
property quality_dash : String = CONFIG.default_user_preferences.quality_dash
- property default_home : String = CONFIG.default_user_preferences.default_home
+ property default_home : String? = CONFIG.default_user_preferences.default_home
property feed_menu : Array(String) = CONFIG.default_user_preferences.feed_menu
property related_videos : Bool = CONFIG.default_user_preferences.related_videos