feat:Channel handle validation #4

Merged
h merged 6 commits from Firepup650/ytrss:feat/handleValidation into main 2026-07-15 23:48:03 +00:00
Contributor

This pr adds validation of channel handles, as well as a fix for a bug in feed.ejs (along with minor indenting fixes), and adding a start script

This pr adds validation of channel handles, as well as a fix for a bug in feed.ejs (along with minor indenting fixes), and adding a start script
Ya know, to be "standard"
This technically is not a fool-proof check. We only check for a-z, 0-9,
plus the "seperator" characters, as well as limiting the length.

Our fallback, though, is to query youtube and see if the channel exists.
If it doesn't, we abort at that stage instead.

Without making our logic a LOT more fancy, this honestly is about the
best we can do.
There were some minor indenting problems with the output that have been
fixed by adjusting indenting in a few places, but this also fixes a bug
where a video on YouTube would result in a crash trying to parse the RSS
data.

Instead, when we find a video with no description, use the literal
string "This video has no description on YouTube, so here's a fallback
string for you." instead.
Author
Contributor

Closes #1

Closes #1
More descriptive name of what the error is/is for.
h merged commit 5d523f06d5 into main 2026-07-15 23:48:03 +00:00
Firepup650 deleted branch feat/handleValidation 2026-07-16 01:49:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h/ytrss!4
No description provided.