瀏覽代碼

更新测试代码

Signed-off-by: allan716 <[email protected]>
allan716 2 年之前
父節點
當前提交
0e262274eb
共有 2 個文件被更改,包括 3 次插入9 次删除
  1. 1 8
      TestCode/test_imdb_tmdb.go
  2. 2 1
      TestCode/test_ptn.go

+ 1 - 8
TestCode/test_imdb_tmdb.go

@@ -5,7 +5,6 @@ import (
 
 	"github.com/ChineseSubFinder/ChineseSubFinder/pkg"
 
-	"github.com/ChineseSubFinder/ChineseSubFinder/pkg/settings"
 	tmdb "github.com/cyruzin/golang-tmdb"
 )
 
@@ -23,13 +22,7 @@ func imdb2tmdb() {
 
 	const keanuReevesID = "tt6264654"
 
-	proxySettings := settings.NewProxySettings(true, "http",
-		"19037",
-		"192.168.50.252", "5269",
-		"", "",
-	)
-
-	restyClient, err := pkg.NewHttpClient(proxySettings)
+	restyClient, err := pkg.NewHttpClient()
 
 	tmdbClient.SetClientConfig(*restyClient.GetClient())
 

+ 2 - 1
TestCode/test_ptn.go

@@ -3,7 +3,8 @@ package TestCode
 import PTN "github.com/middelink/go-parse-torrent-name"
 
 func getInfo() {
-	fileName := "1883 - S01E01 - 1883 WEBDL-1080p Proper.mkv"
+	//fileName := "1883 - S01E01 - 1883 WEBDL-1080p Proper.mkv"
+	fileName := "1883 - S11E12 - 1883 WEBDL-1080p Proper.mkv"
 	//fileName := "1883 - S01E02 - Behind Us, A Cliff WEBDL-1080p Proper.mkv"
 
 	parse, err := PTN.Parse(fileName)