Skip to content

Commit

Permalink
correct season/episode builder
Browse files Browse the repository at this point in the history
  • Loading branch information
sjurtf committed Mar 15, 2021
1 parent 3b1d130 commit 72328c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmltv/xmltv.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ so Season 7, Episode 5, Part 1 of 2 would appear as:
<episode-num system="xmltv_ns">6.4.0/2</episode-num>
*/
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 {
Expand Down

0 comments on commit 72328c5

Please sign in to comment.