320 Commits
Author SHA1 Message Date
PecaquitoandGitHub 403d972279 Merge pull request #50558 from iptv-org/patch-2026.09.1
Patch 2026.09.1
2026-09-04 16:52:14 -04:00
Sanaei afdb2b594c fix: make report:create test independent of log output and line endings
The assertion compared stdout against a template literal that could never
match:

- The file was converted from LF to CRLF in 25fa704e14, so the literal
  carries \r\n while the command's stdout uses \n.
- The literal starts with a newline, which only exists when consola prints
  its [info] lines to stdout ahead of the table. Those are suppressed unless
  DEBUG is set, so stdout begins directly at the table border.

Normalize line endings on both sides and trim the leading newline, so the
test asserts what it means to assert: that stdout contains the report table.
It now passes with and without DEBUG=true.
2026-09-04 18:39:37 +02:00
Sanaei 994b12fb25 fix: correct Live 24/7 handling and label regressions
- stream.updateWithIssue: 'Live 24/7: Yes' meant the stream IS 24/7, but it
  was assigned straight to isNot247, inverting the label. A 'No' answer was
  also ignored because the guard skipped falsy values.
- dataSet.getBoolean: an unanswered dropdown is stored as '' by
  parseIssueBody, which getBoolean read as false. Treat it as undefined so
  'no answer' means 'leave unchanged' instead of 'Not 24/7'.
- update.addStream: has() is true for an unanswered field, so it produced
  isNot247 = true for issues that left the dropdown blank.
- generate: sortBy got five orders for four iteratees.
- 2_streams_edit.yml: restore the '~' reset option dropped from the quality
  dropdown when the Label field was removed.
- stream.getLabels: use const to satisfy prefer-const.
2026-09-04 18:02:35 +02:00
Sanaei 3448e44b7e Merge branch 'master' into patch-2026.09.1
Resolved conflict in scripts/models/stream.ts: kept the branch's
labels/isNot247/isGeoBlocked handling in fromPlaylistItem while adopting
master's optional-chaining guards for data.tvg / data.http.
2026-09-04 18:01:12 +02:00
Sanaei f527cfd03a fix: harden getStoragePath and keep CRLF endings
- Normalize the returned path to forward slashes so it matches what
  Storage.list() (glob) returns, instead of leaking `\` on Windows.
- Treat the storage root itself as "not inside", so passing a directory
  no longer yields an empty path that Storage.load() would open as a dir.
- Extract the containment check into isInsideDirectory() and drop the
  redundant isAbsolute(filepath) branch (path.resolve already handles it).
- Restore the repository's CRLF line endings in the nested fixture.
2026-09-04 17:47:43 +02:00
Sanaei 2336dbc41f Merge remote-tracking branch 'origin/master' into pr/49871
# Conflicts:
#	tests/commands/playlist/format.test.ts
2026-09-04 17:30:25 +02:00
chen zhihaoandGitHub c5e24196b1 fix: keep malformed URLs during normalization (#49870) 2026-09-04 17:13:08 +02:00
chen zhihaoandGitHub 9652409093 fix: tolerate missing playlist metadata (#49868) 2026-09-04 17:12:25 +02:00
LuckWzxandGitHub 2f83f28352 Fix issue:validate tests on Windows (#49523) 2026-09-04 17:11:01 +02:00
Aleksandr StatciukandGitHub 016c6ec540 Merge branch 'master' into patch-2026.09.1 2026-09-04 11:25:51 +03:00
chen zhihaoandGitHub f3ef256bdf Restrict parsed stream quality suffixes (#49869)
* fix: restrict parsed stream quality suffixes

* test: reuse playlist export fixture for quality suffix
2026-09-04 09:28:26 +02:00
chen zhihaoandGitHub 2c21f19496 Return failure status when playlist checks are offline (#49872)
* fix: fail playlist tests when offline

* test: move offline playlist check into test suite
2026-09-03 22:42:56 +02:00
freearhey b700995496 Update tests/__data__ 2026-09-03 14:52:31 +03:00
chen zhihao de096ff4a8 fix: address nested playlist review feedback 2026-09-01 10:53:47 +08:00
chen zhihao 1b6b7db25a fix: preserve nested playlist paths when formatting 2026-08-31 20:52:37 +08:00
freearhey 82a6cf2451 Update validate.test.ts 2026-08-17 01:12:41 +03:00
freearhey 831558717b Update streams_edit.txt 2026-08-17 01:12:38 +03:00
freearhey 63ab90ee50 Update validate.test.ts 2026-08-17 01:00:01 +03:00
freearhey 309f940192 Update tests/__data__ 2026-08-17 00:59:47 +03:00
freearhey 0177d18464 Update create.test.ts 2026-08-16 22:54:11 +03:00
freearhey f963642bed Update tests/__data__ 2026-08-16 22:54:08 +03:00
freearhey 99eeb487a7 Update tests/__data__ 2026-08-16 22:18:21 +03:00
freearhey 6f17304a94 Update tests/__data__ 2026-08-16 01:50:54 +03:00
freearhey 35fa55e15c Create validate.test.ts 2026-08-15 03:01:07 +03:00
freearhey 5c435c4751 Update tests/__data__ 2026-08-15 03:00:56 +03:00
freearhey b7cd2a1d5a Update tests/__data__ 2026-05-25 13:25:19 +03:00
freearhey 8f7940c8ca wip 2026-05-02 13:29:34 +03:00
freearhey 6826742c6b wip 2026-05-02 12:26:32 +03:00
freearhey 834abac5e4 wip 2026-05-02 12:08:00 +03:00
freearhey e18bdc87ab Create discussions.js 2026-04-12 08:45:53 +03:00
freearhey 82bbdd86f2 Update streams.json 2026-03-29 10:59:45 +03:00
freearhey aa5125890a Update tests/__data__ 2026-03-25 12:15:22 +03:00
freearhey 39ca336efd Update update.test.ts 2026-03-23 17:12:28 +03:00
freearhey aafd79f242 Update tests/__data__ 2026-03-23 17:12:23 +03:00
freearhey 850a6beeb8 Update create.test.ts 2026-03-11 07:08:13 +03:00
freearhey 3d9641d9a6 Update validate.test.ts 2026-03-11 07:08:11 +03:00
freearhey f4058b5a56 Update tests/__data__ 2026-03-11 07:07:59 +03:00
freearhey fe7284359a Update tests/__data__ 2026-03-01 17:31:46 +03:00
freearhey 451be80e77 Update tests/__data__ 2026-02-11 04:55:20 +03:00
freearhey 55836ade7b Update tests/__data__ 2025-12-23 07:14:03 +03:00
freearhey b100d93124 Update ag.m3u 2025-12-13 01:35:09 +03:00
freearhey ce5191db90 Update tests/__data__ 2025-12-13 01:07:03 +03:00
freearhey a24ae8f8b7 Update test.test.ts 2025-12-09 04:19:09 +03:00
freearhey 028ecc7046 Update tests/__data__ 2025-12-09 04:18:54 +03:00
freearhey a27ba0c7d0 Update tests 2025-12-04 18:32:06 +03:00
freearhey 963e4a88c4 Update tests/__data__ 2025-12-04 18:31:54 +03:00
freearhey 60fde4cc8c Replace LF with CRLF 2025-10-09 03:20:46 +03:00
freearhey 4861c60b74 Update tests/__data__ 2025-10-08 23:29:04 +03:00
freearhey 45bfeb431d Update create.test.ts 2025-10-08 23:07:30 +03:00
freearhey c7d9e78be5 Update 4_channel-search.yml 2025-10-08 23:07:27 +03:00