return ep.Format(scale(max))
}
-func (ep *Episode) Inc() {
+func (ep *Episode) IncPart() {
if ep.Parts > 0 && ep.Part == ep.Parts-1 {
ep.IncNumber()
} else {
ep.Number++
}
-func (ep *Episode) Dec() {
+func (ep *Episode) DecPart() {
if ep.Part > 0 {
ep.Part--
} else {
return []*EpisodeRange{nil, nil}
case a.ContainsEpisodes(ep):
if ep.Part >= 0 {
- a.Inc()
+ a.IncPart()
} else {
a.IncNumber()
}
return []*EpisodeRange{nil, r.Simplify()}
case b.ContainsEpisodes(ep):
if ep.Part >= 0 {
- b.Dec()
+ b.DecPart()
} else {
b.DecNumber()
}