ソースを参照

修复,任务提取的时候 Season 和 Eps 可能为 -1 需要触发重新获取的逻辑

Signed-off-by: allan716 <[email protected]>
allan716 3 年 前
コミット
b977ad41a9
1 ファイル変更1 行追加1 行削除
  1. 1 1
      internal/pkg/downloader/downloader.go

+ 1 - 1
internal/pkg/downloader/downloader.go

@@ -388,7 +388,7 @@ func (d *Downloader) seriesDlFunc(ctx context.Context, job taskQueue2.OneJob, do
 	epsMap := make(map[int][]int, 0)
 	epsMap := make(map[int][]int, 0)
 	epsMap[job.Season] = []int{job.Episode}
 	epsMap[job.Season] = []int{job.Episode}
 
 
-	if job.VideoType == common.Series && job.SeriesRootDirPath == "" {
+	if job.VideoType == common.Series && (job.SeriesRootDirPath == "" || job.Season < 0 || job.Episode < 0) {
 		// 连续剧的时候需要额外提交信息
 		// 连续剧的时候需要额外提交信息
 		epsVideoNfoInfo, err := decode.GetVideoNfoInfo4OneSeriesEpisode(job.VideoFPath)
 		epsVideoNfoInfo, err := decode.GetVideoNfoInfo4OneSeriesEpisode(job.VideoFPath)
 		if err != nil {
 		if err != nil {