Skip to content

fix telebilbao.es accents - #3272

Merged
Arley87326 merged 3 commits into
iptv-org:masterfrom
bdovaz:fix-telebilbao-accents
Oct 23, 2026
Merged

Arley87326 merged 3 commits into
iptv-org:masterfrom
bdovaz:fix-telebilbao-accents

Conversation

@bdovaz

@bdovaz bdovaz commented Sep 2, 2026

Copy link
Copy Markdown

const day = date.locale('es').format('dddd\nD MMMM').toUpperCase()

That code returns the days in spanish with accents (e.g., MIÉRCOLES)

But on the website, they don’t have accents, so in those cases indexOfColumn returns -1 and causes title to be undefined.

const indexOfColumn = tableArray[0].indexOf(day)

What I’m doing in this PR is normalizing the text to remove the accents and capitalize both words, just in case they might appear in lowercase on the website due to a typo.

I've added a test that checks for a day with an accent (SÁBADO) and verifies that no title is undefined.

@bdovaz

bdovaz commented Sep 2, 2026 •

Copy link
Copy Markdown
Author

Are there more changes than necessary due to EOL? I haven't touched it at all, and it's in CRLF format, just like the original, right?

Maybe related #3247?

@Arley87326
Arley87326 merged commit 7cb60a3 into iptv-org:master Oct 23, 2026
1 check failed
@bdovaz
bdovaz deleted the fix-telebilbao-accents branch October 23, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants