[Streams] YouTube Alert Suggestion/Option #3685
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#3685
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since this alert is very bland and link to the livestream is already used in the preview, why not have the bot just post the link to the stream instead of the bot's own preview. Then you get a large image (like Twitch or just posting a video) which is better visually, plus a lot of info that is added in the description of the stream is also visible in the preview. And you can also press play to start the stream directly in Discord if you want to take a peek without going to YouTube.
This is a lot better than what is used now IMO.
Would be awesome to at least have this as an option to use if it's not changed completely.
The info from stream's description is apparently only on mobile. But better nonetheless.
Just for reference.

Desktop:
Mobile:

I can't say right now if we want stream description to be included in the embed (possibly configurable?) but stream desription is included in the API response that we get already so it's not hard to add and it won't cost us any additional quota.
I doubt we will use the embed that is generated by discord though so preview would still be a thumbnail, not a video - same as for stream alerts for Twitch.
The stream's description is automatically added by Discord on mobile devices. I was just showing the difference. I also mentioned it above, that the description is only shown on mobile.
Forgot to add. The link post is just better than bot creating a preview. Why would it not be okay for the bot to post "Lalala is live" with a YouTube link to the stream which is already used for the poor preview anyway? Seems a bit weird to me.
@Menteroth Discord's link crawler (the thing that goes to the link and checks for metadata to generate embeds for links) has been problematic in the past and I don't think it's good to rely on it.
But what I meant in my comment is that we can generate same embed as the one that discord generates with no issue and it's only a question of whether we want that (I would say we do, but I can't talk for others).
Here's how Discord's embeds looks:

Here's a few previews of how embed generated by us could look:



For comparison, the current embed looks like this:

That first image you say is Discord embed, that has to be mobile, yes? Because you don't get description on desktop client. That's my first image as well. And with desc. in my second image, from my phone.
The first image from "us" is good enough. I really dislike the current one so much haha.
Description is also not something I meant to say I wanted added, just what it looks from my phone in comparison to desktop.
But yeah. The title and large image. Big 👍.
No, it's not on mobile, it's on desktop client, I guess I just kind of gave one reason why we can't really rely on embeds generated by Discord, they're not consistent (sometimes they might not even show at all) 😄
If this is just about having bigger image then I agree that we should have used bigger thumbnail there, similarly to other stream alert embeds.
Changing status to Accepted, we will appreciate if someone would take this PR, it should be a matter of changing the size of thumbnail from
"default"to"medium"here:github.com/Cog-Creators/Red-DiscordBot@a88b2af4a9/redbot/cogs/streams/streamtypes.py (L156)