diff --git a/src/invidious/frontend/watch_page.cr b/src/invidious/frontend/watch_page.cr index c8cb7110..aed00c0b 100644 --- a/src/invidious/frontend/watch_page.cr +++ b/src/invidious/frontend/watch_page.cr @@ -19,6 +19,10 @@ module Invidious::Frontend::WatchPage end def download_widget(locale : String, video : Video, video_assets : VideoAssets) : String + if CONFIG.alltube_url + return "#{translate(locale, "Download with AllTube")}" + end + if CONFIG.disabled?("downloads") return "

#{translate(locale, "Download is disabled")}

" end