- commit
- 83eee8152f368132ee417a80bcbf5c20cd1c7513
- parent
- e268f0f0c355959355ff9ca4f6dc8fff71299eea
- author
- FelineStateMachine <226808055+FelineStateMachine@users.noreply.github.com>
- kind
- fix risk score 1.6 of 3, Jev's estimate
| M | frontend/ | 4 | ++-- |
@@ -739,10 +739,10 @@ const stars = (n) => '\u2605'.repeat(Math.floor(n)) + (n % 1 >= 0.5 ? '\u00bd' :
739739 function episodeLine(p) {740740 if (!p) return '';741741 const se = p.season && p.episode ? `S${p.season} E${p.episode}` : '';742- // A repeat says when it first aired.742+ // A repeat says when it first aired, which says the year too.743743 const first = p.originalAirDate && !(p.flags || []).includes('New') ? `first aired ${firstAired(p.originalAirDate)}` : '';744744 const game = p.awayTeam && p.homeTeam && !p.episodeTitle ? `${p.awayTeam} at ${p.homeTeam}` : '';745- return [p.episodeTitle && `"${p.episodeTitle}"`, game, se, p.year, first].filter(Boolean).join(' ');745+ return [p.episodeTitle && `"${p.episodeTitle}"`, game, se, !first && p.year, first].filter(Boolean).join(' ');746746 }747747 748748 // firstAired names an original air date ("2019-03-05") as "Mar 5, 2019".