Skip to content

fix: Season, Episode, and Previously Shown #43

fix: Season, Episode, and Previously Shown

fix: Season, Episode, and Previously Shown #43

Re-run triggered July 26, 2025 16:54
Status Failure
Total duration 23s
Artifacts

ci.yaml

on: pull_request
Build Docker
18s
Build Docker
Build, Lint, and Test
14s
Build, Lint, and Test
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Build, Lint, and Test
Process completed with exit code 1.
src/xmltv.test.ts > buildProgramsXml > should build programme XML correctly: src/xmltv.test.ts#L277
AssertionError: expected ' <programme start="20250718190000 +0…' to contain '<audio type="cc" />' - Expected + Received - <audio type="cc" /> + <programme start="20250718190000 +0000" stop="20250718200000 +0000" channel="19629"> + <title>GMA3</title> + <sub-title>Special Episode</sub-title> + <desc>BIA performs; comic Zarna Garg; lifestyle contributor Lori Bergamotto; ABC News chief medical correspondent Dr. Tara Narula.</desc> + <rating system="MPAA"><value>TV-PG</value></rating> + <new /> + <audio type="stereo" /> + <subtitles type="teletext" /> + <episode-num system="onscreen">S05E217</episode-num> + <episode-num system="common">S05E217</episode-num> + <episode-num system="dd_progid">EP059182660025</episode-num> + <episode-num system="xmltv_ns">4.216.</episode-num> + <icon src="https://zap2it.tmsimg.com/assets/p30687311_b_v13_aa.jpg" /> + </programme> + ❯ src/xmltv.test.ts:277:20
src/xmltv.test.ts > buildXmltv > should include episode information: src/xmltv.test.ts#L104
AssertionError: expected '<?xml version="1.0" encoding="UTF-8"?…' to contain '<episode-num system="season">5</episo…' - Expected + Received - <episode-num system="season">5</episode-num> + <?xml version="1.0" encoding="UTF-8"?> + <tv generator-info-name="jef/zap2xml" generator-info-url="https://github.com/jef/zap2xml"> + <channel id="19629"> + <display-name>KOMODT</display-name> + <display-name>AMERICAN BROADCASTING COMPANY</display-name> + <display-name>4.1</display-name> + <icon src="https://zap2it.tmsimg.com/h3/NowShowing/19629/s28708_ll_h15_ac.png?w=55" /> + </channel> + <programme start="20250718190000 +0000" stop="20250718200000 +0000" channel="19629"> + <title>GMA3</title> + <sub-title>Special Episode</sub-title> + <desc>BIA performs; comic Zarna Garg; lifestyle contributor Lori Bergamotto; ABC News chief medical correspondent Dr. Tara Narula.</desc> + <rating system="MPAA"><value>TV-PG</value></rating> + <new /> + <audio type="stereo" /> + <subtitles type="teletext" /> + <episode-num system="onscreen">S05E217</episode-num> + <episode-num system="common">S05E217</episode-num> + <episode-num system="dd_progid">EP059182660025</episode-num> + <episode-num system="xmltv_ns">4.216.</episode-num> + <icon src="https://zap2it.tmsimg.com/assets/p30687311_b_v13_aa.jpg" /> + </programme> + </tv> + ❯ src/xmltv.test.ts:104:20
src/xmltv.test.ts > buildXmltv > should include categories from flags and tags: src/xmltv.test.ts#L99
AssertionError: expected '<?xml version="1.0" encoding="UTF-8"?…' to contain '<audio type="cc" />' - Expected + Received - <audio type="cc" /> + <?xml version="1.0" encoding="UTF-8"?> + <tv generator-info-name="jef/zap2xml" generator-info-url="https://github.com/jef/zap2xml"> + <channel id="19629"> + <display-name>KOMODT</display-name> + <display-name>AMERICAN BROADCASTING COMPANY</display-name> + <display-name>4.1</display-name> + <icon src="https://zap2it.tmsimg.com/h3/NowShowing/19629/s28708_ll_h15_ac.png?w=55" /> + </channel> + <programme start="20250718190000 +0000" stop="20250718200000 +0000" channel="19629"> + <title>GMA3</title> + <sub-title>Special Episode</sub-title> + <desc>BIA performs; comic Zarna Garg; lifestyle contributor Lori Bergamotto; ABC News chief medical correspondent Dr. Tara Narula.</desc> + <rating system="MPAA"><value>TV-PG</value></rating> + <new /> + <audio type="stereo" /> + <subtitles type="teletext" /> + <episode-num system="onscreen">S05E217</episode-num> + <episode-num system="common">S05E217</episode-num> + <episode-num system="dd_progid">EP059182660025</episode-num> + <episode-num system="xmltv_ns">4.216.</episode-num> + <icon src="https://zap2it.tmsimg.com/assets/p30687311_b_v13_aa.jpg" /> + </programme> + </tv> + ❯ src/xmltv.test.ts:99:20
src/tvlistings.test.ts > getTVListings > should throw an error when response is not ok (3xx status): src/tvlistings.test.ts#L146
AssertionError: expected [Function] to throw error including 'Failed to fetch: 301 Moved Permanently' but got 'response.text is not a function' Expected: "Failed to fetch: 301 Moved Permanently" Received: "response.text is not a function" ❯ src/tvlistings.test.ts:146:5
src/tvlistings.test.ts > getTVListings > should throw an error when response is not ok (5xx status): src/tvlistings.test.ts#L134
AssertionError: expected [Function] to throw error including 'Failed to fetch: 500 Internal Server …' but got 'response.text is not a function' Expected: "Failed to fetch: 500 Internal Server Error" Received: "response.text is not a function" ❯ src/tvlistings.test.ts:134:5
src/tvlistings.test.ts > getTVListings > should throw an error when response is not ok (4xx status): src/tvlistings.test.ts#L122
AssertionError: expected [Function] to throw error including 'Failed to fetch: 404 Not Found' but got 'response.text is not a function' Expected: "Failed to fetch: 404 Not Found" Received: "response.text is not a function" ❯ src/tvlistings.test.ts:122:5
src/tvlistings.test.ts > getTVListings > should successfully fetch TV listings: src/tvlistings.test.ts#L72
AssertionError: expected { channels: [ { …(10) } ] } to deeply equal { channels: [ { …(10) } ] } - Expected + Received @@ -19,10 +19,13 @@ "New", ], "program": { "episode": "217", "episodeTitle": "Special Episode", + "genres": [ + "news", + ], "id": "EP059182660025", "isGeneric": "0", "releaseYear": null, "season": "5", "seriesId": "SH05918266", ❯ src/tvlistings.test.ts:72:20