The edit template accepts a Stream ID made of the channel ID alone. In that
case updateWithIssue set the feed to undefined and updateTvgId wrote
tvg-id="<channel_id>" with no feed. playlist:generate only keeps streams
with an explicit feed, so the edited stream silently dropped out of
index.m3u and every grouped playlist until someone ran playlist:format.
This happened for #59575 (ATM Rozrywka REWORK) and earlier for Qazaqstan HD.
Fill in the channel's main feed, the same feed the SDK's getId() and the
add path already resolve to.
playlist:format drops duplicate links across all files, then saves each file that still has streams. A file whose streams were all duplicates of links in other files was never saved, so it kept the duplicate (and the unnormalized link) as it was.
normalize-url sorts the query parameters by default and then runs decodeURIComponent on the whole query, so %26, %3D, %3F and %2B come back as &, =, ? and +. A link that passes another URL as a parameter loses part of it to the outer query, and %2B turns into a space. The order of the parameters is now left as is.
The assertions sat inside a try/catch whose catch only logged, so a
failed expect was swallowed and the test always passed. That hid a
stale fixture: since issue #39098 was added to the input issues, the
command closes it (the expected uk.m3u already shows the edit), but
playlist_update.log was never updated.
playlist:edit saved the playlist without the raw option, so every title
was rebuilt from the API channel name and country instead of being
written back as read. For a stream whose channel is not in the database,
that becomes "undefined (undefined)". playlist:format, playlist:update
and playlist:test already save with { public: false, raw: true }.
playlist:validate decides which streams belong to the selected files by
comparing the raw command-line arguments with the paths returned by
Storage.list(). A path such as ./streams/us.m3u never matches
streams/us.m3u, so the file's own streams are put in the duplicate buffer
and every link is reported as already being in that same file.
Resolve the arguments with getStoragePath(), as playlist:format does.