Repository navigation
feat: smart list rules on date added, series status and seasons; programmes from addon TV listings - #1726
Merged
Conversation
Smart lists gain three rules. - Date added: in the last N days, today included, or between two days, either open. The date is the one apps show: the source's own for IPTV sources and local folders, else the day Polyfin first saw the title in a catalog of the user's libraries, else its release date once out. One query a listing reads them all. - Series status: continuing or ended, as the listing says, else the description, else its run: closed (2016-2021) ended, open (2019-) continuing. - Number of seasons: the seasons of the description with an episode aired, specials aside, counted by the database. The admin app's rule editor offers them in six languages. The docs say that Place in its catalog is a popular catalog's popularity.
Sports and event addons list each event as an entry of a TV catalog that takes no date, its start in released or releaseInfo. Such an entry now gives its channel one programme, shown as a Native EPG one in the guide, On Now and the channel's programmes, when the channel has no XMLTV guide: a channel mapped to an XMLTV guide shows that guide. The start is an ISO time, its offset with or without a colon, or a time of day with a date, year or day first, on a 24-hour clock or with AM or PM. It is read in the server's time zone unless UTC or GMT is written, with or without an offset; another named zone gives none. LIVE starts now. The length is the entry's runtime, else 2 hours. A date alone, a year, a time without a date, or a start outside the days the guide reads gives none.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Smart list rules
addedwithmax, orfrom/toasYYYY-MM-DD). The date is the one apps show (see Dates added of catalog titles): the source's own for IPTV sources and local folders, else the day Polyfin first saw the title in a catalog of the user's libraries, else its release date once out. Read for every title of a listing in one query, per user; days in UTC.continuingorended. A status the listing gives counts first, else the description's, else the description's run, else the listing's: a closed run (2016-2021) is ended, an open one (2019-) continuing. Movies have none.Programmes from addon TV listings
releasedorreleaseInfogives that channel one programme. Starts read:2026-12-05 19:45,05/12/2026 19:45,05.12 19h45,19:45 05/12or2026-12-05 7:45 PM, day first for short dates;LIVE, which starts now, to the minute.TZin Docker), unless they sayUTCorGMT, with or without an offset (UTC+1,GMT-5). Another named zone, such asCET, gives no programme.runtime, else 2 hours (placeholder). A date alone, a year, a time without a date, or a start outside the days the guide reads (yesterday to 7 days ahead) gives none.Checks
go test -raceofinternal/smartlists, and the smart list, guide, live TV, arrivals and listing tests ofinternal/library,internal/jellyfin,internal/admin,internal/remindersandinternal/recordings: pass.TestSmartListRulesOnStatusSeasonsAndDateAdded,TestEventListingsGiveTheirChannelsAProgramme,TestXMLTVProgrammesComeBeforeListings,TestNativeEPGCatalogsTakeNoListingProgramme.npm test, knip,check-docs.mjs: clean.French screenshots: /Users/admin/.cache/pf-hls/SmartRulesGuide/shots/