Explorar o código

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

Signed-off-by: allan716 <[email protected]>
allan716 %!s(int64=3) %!d(string=hai) anos
pai
achega
b977ad41a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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[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)
 		if err != nil {