diff --git a/src/invidious/frontend/comments_reddit.cr b/src/invidious/frontend/comments_reddit.cr index 08ce2f344..7ee357adc 100644 --- a/src/invidious/frontend/comments_reddit.cr +++ b/src/invidious/frontend/comments_reddit.cr @@ -15,20 +15,20 @@ module Invidious::Frontend::Comments end if child.depth > 0 - html << <<-END_HTML + html << <<-HTML
- END_HTML + HTML else - html << <<-END_HTML + html << <<-HTML
- END_HTML + HTML end - html << <<-END_HTML + html << <<-HTML

[ − ] #{child.author} @@ -42,7 +42,7 @@ module Invidious::Frontend::Comments

- END_HTML + HTML end end end diff --git a/src/invidious/frontend/comments_youtube.cr b/src/invidious/frontend/comments_youtube.cr index 4638395a9..46012adf4 100644 --- a/src/invidious/frontend/comments_youtube.cr +++ b/src/invidious/frontend/comments_youtube.cr @@ -12,7 +12,7 @@ module Invidious::Frontend::Comments NumberFormatting::Separator ) - replies_html = <<-END_HTML + replies_html = <<-HTML
@@ -22,7 +22,7 @@ module Invidious::Frontend::Comments

- END_HTML + HTML elsif comments["authorId"]? && !comments["singlePost"]? # for posts we should display a link to the post replies_count_text = translate_count(locale, @@ -31,7 +31,7 @@ module Invidious::Frontend::Comments NumberFormatting::Separator ) - replies_html = <<-END_HTML + replies_html = <<-HTML
@@ -40,7 +40,7 @@ module Invidious::Frontend::Comments

- END_HTML + HTML end if !thin_mode @@ -65,7 +65,7 @@ module Invidious::Frontend::Comments str << %(width="16" height="16" />) end end - html << <<-END_HTML + html << <<-HTML
@@ -77,7 +77,7 @@ module Invidious::Frontend::Comments #{sponsor_icon}

#{child["contentHtml"]}

- END_HTML + HTML if child["attachment"]? attachment = child["attachment"] @@ -86,81 +86,81 @@ module Invidious::Frontend::Comments when "image" attachment = attachment["imageThumbnails"][1] - html << <<-END_HTML + html << <<-HTML
- END_HTML + HTML when "video" if attachment["error"]? - html << <<-END_HTML + html << <<-HTML

#{attachment["error"]}

- END_HTML + HTML else - html << <<-END_HTML + html << <<-HTML
- END_HTML + HTML end when "multiImage" - html << <<-END_HTML + html << <<-HTML - END_HTML + HTML end end - html << <<-END_HTML + html << <<-HTML

#{translate(locale, "`x` ago", recode_date(Time.unix(child["published"].as_i64), locale))} #{child["isEdited"] == true ? translate(locale, "(edited)") : ""} | - END_HTML + HTML if comments["videoId"]? - html << <<-END_HTML + html << <<-HTML [YT] | - END_HTML + HTML elsif comments["authorId"]? - html << <<-END_HTML + html << <<-HTML [YT] | - END_HTML + HTML end - html << <<-END_HTML + html << <<-HTML #{number_with_separator(child["likeCount"])} - END_HTML + HTML if child["creatorHeart"]? if !thin_mode @@ -169,7 +169,7 @@ module Invidious::Frontend::Comments creator_thumbnail = "" end - html << <<-END_HTML + html << <<-HTML   @@ -179,19 +179,19 @@ module Invidious::Frontend::Comments - END_HTML + HTML end - html << <<-END_HTML + html << <<-HTML

#{replies_html}
- END_HTML + HTML end if comments["continuation"]? - html << <<-END_HTML + html << <<-HTML

@@ -200,7 +200,7 @@ module Invidious::Frontend::Comments

- END_HTML + HTML end end end diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr index 0add31bcd..70b591265 100644 --- a/src/invidious/helpers/errors.cr +++ b/src/invidious/helpers/errors.cr @@ -61,7 +61,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce url_new_issue += "?labels=bug&template=bug_report.md&title=" url_new_issue += URI.encode_www_form("[Bug] " + issue_title) - error_message = <<-END_HTML + error_message = <<-HTML

#{translate(locale, "crash_page_you_found_a_bug")}



@@ -80,7 +80,7 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce
#{issue_template}
- END_HTML + HTML # Don't show the usual "next steps" widget. The same options are # proposed above the error message, just worded differently. @@ -191,7 +191,7 @@ def error_redirect_helper(env : HTTP::Server::Context) go_to_youtube = translate(locale, "next_steps_error_message_go_to_youtube") switch_instance = translate(locale, "Switch Invidious Instance") - return <<-END_HTML + return <<-HTML

#{next_steps_text}

- END_HTML + HTML else return "" end diff --git a/src/invidious/mixes.cr b/src/invidious/mixes.cr index b522c78cb..31f53e8dd 100644 --- a/src/invidious/mixes.cr +++ b/src/invidious/mixes.cr @@ -82,7 +82,7 @@ def fetch_mix(rdid, video_id, cookies = nil, locale = nil) end def template_mix(mix, listen) - html = <<-END_HTML + html = <<-HTML

#{mix["title"]} @@ -90,10 +90,10 @@ def template_mix(mix, listen)

    - END_HTML + HTML mix["videos"].as_a.each do |video| - html += <<-END_HTML + html += <<-HTML
  1. - END_HTML + HTML end - html += <<-END_HTML + html += <<-HTML

- END_HTML + HTML html end diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index ff77533d0..4f1f09d01 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -508,7 +508,7 @@ def extract_playlist_videos(initial_data : Hash(String, JSON::Any)) end def template_playlist(playlist, listen) - html = <<-END_HTML + html = <<-HTML

#{playlist["title"]} @@ -516,10 +516,10 @@ def template_playlist(playlist, listen)

    - END_HTML + HTML playlist["videos"].as_a.each do |video| - html += <<-END_HTML + html += <<-HTML
  1. - END_HTML + HTML end - html += <<-END_HTML + html += <<-HTML

- END_HTML + HTML html end diff --git a/src/invidious/user/captcha.cr b/src/invidious/user/captcha.cr index e46105e03..79cfcbfab 100644 --- a/src/invidious/user/captcha.cr +++ b/src/invidious/user/captcha.cr @@ -19,7 +19,7 @@ struct Invidious::User hour = 12 end - clock_svg = <<-END_SVG + clock_svg = <<-SVG @@ -41,7 +41,7 @@ struct Invidious::User - END_SVG + SVG image = "data:image/png;base64," image += Process.run(%(rsvg-convert -w 400 -h 400 -b none -f png), shell: true,