From 72328c570b2218e2baeb908052828b3fdfe93d32 Mon Sep 17 00:00:00 2001 From: Sjur Fredriksen Date: Mon, 15 Mar 2021 23:52:29 +0100 Subject: [PATCH] correct season/episode builder --- xmltv/xmltv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmltv/xmltv.go b/xmltv/xmltv.go index 5207f1e..b40cb77 100644 --- a/xmltv/xmltv.go +++ b/xmltv/xmltv.go @@ -147,7 +147,7 @@ so Season 7, Episode 5, Part 1 of 2 would appear as: 6.4.0/2 */ func formatEpisode(s, e, t int) string { - return fmt.Sprintf("%d.%d/%d", s, e, t) + return fmt.Sprintf("%d.%d/%d", s-1, e-1, t) } func formatTime(date time.Time) string {