[Bug]: Xtream series detail page renders blank – "t?.split is not a function" when info.genre is a number
Before you submit
- [x] I'm on the latest release (or a nightly build) and the problem still happens there.
- [x] I searched the existing issues and this hasn't been reported yet.
- [x] I removed usernames, passwords, MAC addresses, tokens and private URLs from everything I paste below.
IPTVnator version
0.24.0 and 0.25.0 (same behavior)
How do you run IPTVnator?
Windows installer (.exe)
Operating system and version
Windows 10 x64
Source type
Xtream Codes
Video player
HTML5 video player
Did this work in an earlier version?
Yes, it worked in an earlier version
Last version where it worked
0.22.0
What happened?
Clicking any series in an Xtream playlist opens a completely blank content area (no header, no seasons, no loading indicator). Movie detail pages work fine. The same series open correctly in other players (IPTV Smarters).
Root cause: my provider returns info.genre from get_series_info as a JSON number instead of a string (cast and director are strings). textList() in
libs/portal/xtream/feature/src/lib/serial-details/serial-download-metadata.ts
calls value?.split(','), which throws a TypeError for a number. Since createXtreamSeriesDownloadMetadataContext() runs inside the download adapter computed() when the page loads, the whole detail view fails to render.
The API data is otherwise valid: seasons 1–6 declared, episodes keyed "1"–"6", consistent.
Suggested fix: coerce provider values before splitting, like strings() in download-metadata.mapper.ts already does, e.g.:
function textList(value: unknown): string[] | undefined { const values = Array.isArray(value) ? value : value == null ? [] : String(value).split(','); const entries = values.map((e) => String(e).trim()).filter(Boolean); return entries.length ? entries : undefined; }
The same textList() exists in vod-details-downloads.service.ts, and releaseYear() (value?.match) has the same risk if releaseDate is not a string.
Steps to reproduce
- Add an Xtream playlist whose get_series_info returns "genre" as a number
- Open Series, click any series
- Content area turns blank
Diagnostics, logs and screenshots
Launched with --enable-logging=file:
INFO:CONSOLE:4] "ERROR TypeError: t?.split is not a function", source: file:///C:/Users/
PowerShell check of get_series_info -> info field types: genre : Int32 cast : String director : String
Thanks for the detailed report and the root-cause pointer. A fix is up in #2190.
I fixed it one step earlier than textList(), where the get_series_info response first enters the app. That spot already cleans these fields (it removes stand-ins like "N/A"), but it skipped values that weren't text, so genre: 18 came through as a number. It now turns numeric text fields into strings there. Patching only textList() wouldn't have been enough: the series header's genre chips and the movie detail pages also split the genre and would crash the same way, and a numeric release date would break the year lookup.
Once it's in a nightly, could you confirm your series open again?
Confirmed on 0.25.1-nightly.20261112.4881 (07d14e8) – series open again (all seasons, episode list and watched markers), watch progress kept, and movies play fine. Thanks a lot for the quick fix!