diff --git a/locales/ar.json b/locales/ar.json index 73957adb..1a67b0c5 100644 --- a/locales/ar.json +++ b/locales/ar.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/de.json b/locales/de.json index 3fe87263..50af3d9e 100644 --- a/locales/de.json +++ b/locales/de.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/el.json b/locales/el.json index f7c14f8f..bd02a76c 100644 --- a/locales/el.json +++ b/locales/el.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/en-US.json b/locales/en-US.json index 409acf8b..f1916fbb 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -448,5 +448,6 @@ "Licenses": "Licences", "Privacy": "Privacy", "short": "Short (< 4 minutes)", - "long": "Long (> 20 minutes)" + "long": "Long (> 20 minutes)", + "This channel doesn't have any content.": "This channel doesn't have any content." } diff --git a/locales/eo.json b/locales/eo.json index 924b89fe..9252881b 100644 --- a/locales/eo.json +++ b/locales/eo.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/es.json b/locales/es.json index b45be305..e4d2a8f6 100644 --- a/locales/es.json +++ b/locales/es.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/fa.json b/locales/fa.json index 5330d1ae..7f7f0a48 100644 --- a/locales/fa.json +++ b/locales/fa.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/fi.json b/locales/fi.json index a843caa6..4323bda2 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/fr.json b/locales/fr.json index 8c704ec8..498de3da 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/he.json b/locales/he.json index 0d922d12..5e69f718 100644 --- a/locales/he.json +++ b/locales/he.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/hr.json b/locales/hr.json index 68cd9d71..24c12858 100644 --- a/locales/hr.json +++ b/locales/hr.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/id.json b/locales/id.json index 2ecdc3bc..138c494e 100644 --- a/locales/id.json +++ b/locales/id.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/is.json b/locales/is.json index 111a8951..3ee08478 100644 --- a/locales/is.json +++ b/locales/is.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/it.json b/locales/it.json index bfa4ca6c..b7434068 100644 --- a/locales/it.json +++ b/locales/it.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/ja.json b/locales/ja.json index 5b7cdc9d..787c77fe 100644 --- a/locales/ja.json +++ b/locales/ja.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/nb-NO.json b/locales/nb-NO.json index ffd7e457..d801bbd7 100644 --- a/locales/nb-NO.json +++ b/locales/nb-NO.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/nl.json b/locales/nl.json index a9fee85f..fe9f2599 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/pl.json b/locales/pl.json index 122bfc44..db3a64db 100644 --- a/locales/pl.json +++ b/locales/pl.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/pt-BR.json b/locales/pt-BR.json index ad57b991..af377b25 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/pt-PT.json b/locales/pt-PT.json index be4b006b..75aabb86 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/ro.json b/locales/ro.json index edef57d9..d577b8b2 100644 --- a/locales/ro.json +++ b/locales/ro.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/ru.json b/locales/ru.json index 8ec8c362..db7136b8 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/sv-SE.json b/locales/sv-SE.json index c9bc5948..689241be 100644 --- a/locales/sv-SE.json +++ b/locales/sv-SE.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/tr.json b/locales/tr.json index 9ce76667..87a9bc5f 100644 --- a/locales/tr.json +++ b/locales/tr.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/uk.json b/locales/uk.json index a37b98a3..41dd6382 100644 --- a/locales/uk.json +++ b/locales/uk.json @@ -449,5 +449,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 48bf29e5..0659952b 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/locales/zh-TW.json b/locales/zh-TW.json index 25272530..b78ccf2c 100644 --- a/locales/zh-TW.json +++ b/locales/zh-TW.json @@ -448,5 +448,6 @@ "Licenses": "", "Privacy": "", "short": "", - "long": "" + "long": "", + "This channel doesn't have any content.": "" } diff --git a/src/invidious/routes/channels.cr b/src/invidious/routes/channels.cr index d612cfd5..4ce7ede0 100644 --- a/src/invidious/routes/channels.cr +++ b/src/invidious/routes/channels.cr @@ -10,7 +10,7 @@ module Invidious::Routes::Channels items = fetch_channel_home(ucid, channel) has_trailer = false - if items[0].is_a? Video + if !items.empty? && items[0].is_a? Video has_trailer = true end diff --git a/src/invidious/views/channel/home.ecr b/src/invidious/views/channel/home.ecr index de4a8764..70c41a00 100644 --- a/src/invidious/views/channel/home.ecr +++ b/src/invidious/views/channel/home.ecr @@ -57,4 +57,10 @@ <% end %> <% end %> + + <% if items.size == 0 %> +