Skip to content

Commit 618c141

Browse files
committed
fix: 🚑 fix episode id error
1 parent 077326e commit 618c141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rss/rss.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func parserRssFeed() error {
7171
itemInfo.Path = itemConfig.Path
7272
itemInfo.Path = strings.ReplaceAll(itemInfo.Path, `{name}`, itemInfo.Name)
7373
itemInfo.Path = strings.ReplaceAll(itemInfo.Path, `{season}`, fmt.Sprintf("%02d", itemInfo.Season))
74-
itemInfo.Path = strings.ReplaceAll(itemInfo.Path, `{episode}`, strconv.Itoa(itemInfo.Episode))
74+
itemInfo.Path = strings.ReplaceAll(itemInfo.Path, `{episode}`, fmt.Sprintf("%02d", itemInfo.Episode))
7575
itemInfo.Path = strings.ReplaceAll(itemInfo.Path, `{ext}`, itemInfo.Ext)
7676

7777
ItemInfos = append(ItemInfos, itemInfo)

0 commit comments

Comments
 (0)