|
@@ -11,7 +11,7 @@ import (
|
|
|
"github.com/allanpk716/ChineseSubFinder/internal/logic/pre_download_process"
|
|
"github.com/allanpk716/ChineseSubFinder/internal/logic/pre_download_process"
|
|
|
"github.com/allanpk716/ChineseSubFinder/internal/logic/series_helper"
|
|
"github.com/allanpk716/ChineseSubFinder/internal/logic/series_helper"
|
|
|
subSupplier "github.com/allanpk716/ChineseSubFinder/internal/logic/sub_supplier"
|
|
subSupplier "github.com/allanpk716/ChineseSubFinder/internal/logic/sub_supplier"
|
|
|
- "github.com/allanpk716/ChineseSubFinder/internal/logic/sub_supplier/shooter"
|
|
|
|
|
|
|
+ "github.com/allanpk716/ChineseSubFinder/internal/logic/sub_supplier/assrt"
|
|
|
"github.com/allanpk716/ChineseSubFinder/internal/logic/sub_timeline_fixer"
|
|
"github.com/allanpk716/ChineseSubFinder/internal/logic/sub_timeline_fixer"
|
|
|
"github.com/allanpk716/ChineseSubFinder/internal/models"
|
|
"github.com/allanpk716/ChineseSubFinder/internal/models"
|
|
|
"github.com/allanpk716/ChineseSubFinder/internal/pkg/log_helper"
|
|
"github.com/allanpk716/ChineseSubFinder/internal/pkg/log_helper"
|
|
@@ -134,7 +134,7 @@ func (d *Downloader) SupplierCheck() {
|
|
|
|
|
|
|
|
if d.settings.SpeedDevMode == true {
|
|
if d.settings.SpeedDevMode == true {
|
|
|
// 这里是调试使用的,指定了只用一个字幕源
|
|
// 这里是调试使用的,指定了只用一个字幕源
|
|
|
- subSupplierHub := subSupplier.NewSubSupplierHub(shooter.NewSupplier(d.fileDownloader))
|
|
|
|
|
|
|
+ subSupplierHub := subSupplier.NewSubSupplierHub(assrt.NewSupplier(d.fileDownloader))
|
|
|
d.subSupplierHub = subSupplierHub
|
|
d.subSupplierHub = subSupplierHub
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
@@ -367,7 +367,7 @@ func (d *Downloader) movieDlFunc(ctx context.Context, job taskQueue2.OneJob, dow
|
|
|
func (d *Downloader) seriesDlFunc(ctx context.Context, job taskQueue2.OneJob, downloadIndex int64) error {
|
|
func (d *Downloader) seriesDlFunc(ctx context.Context, job taskQueue2.OneJob, downloadIndex int64) error {
|
|
|
|
|
|
|
|
nowSubSupplierHub := d.subSupplierHub
|
|
nowSubSupplierHub := d.subSupplierHub
|
|
|
- if nowSubSupplierHub.Suppliers == nil || len(nowSubSupplierHub.Suppliers) < 1 {
|
|
|
|
|
|
|
+ if nowSubSupplierHub == nil || nowSubSupplierHub.Suppliers == nil || len(nowSubSupplierHub.Suppliers) < 1 {
|
|
|
d.log.Infoln("Wait SupplierCheck Update *subSupplierHub, movieDlFunc Skip this time")
|
|
d.log.Infoln("Wait SupplierCheck Update *subSupplierHub, movieDlFunc Skip this time")
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|