~nickbp/force-rss

0209e0a9145183abe0467bfe208143d8740dac19 — Nick Parker 8 months ago 972a4db
Disable autoplay and mute in embedded twitch videos
1 files changed, 1 insertions(+), 1 deletions(-)

M src/rss.rs
M src/rss.rs => src/rss.rs +1 -1
@@ 64,7 64,7 @@ fn twitch_content_html(
        // We use the iframe method, since RSS readers dislike the javascript method.
        // The downside is that the iframe method requires that we pass the authority/hostname.
        format!(
            "<iframe width=\"{width}\" height=\"{height}\" frameborder=\"0\" src=\"https://player.twitch.tv/?video=v{id}&parent={embed_host}\" allowfullscreen=\"\" loading=\"lazy\"></iframe>",
            "<iframe width=\"{width}\" height=\"{height}\" frameborder=\"0\" src=\"https://player.twitch.tv/?video=v{id}&parent={embed_host}&autoplay=false&muted=false\" allowfullscreen=\"\" loading=\"lazy\"></iframe>",
            id=video.id, width=config.thumbnail_width, height=config.thumbnail_height, embed_host=embed_host
        )
    } else if video.thumbnail_url.contains("/_404") {