| 12345678910111213141516171819202122232425 |
- package xunlei
- import (
- "github.com/allanpk716/ChineseSubFinder/internal/types"
- "testing"
- )
- func TestGetList(t *testing.T) {
- //movie1 := "XLen:\\电影\\The Devil All the Time (2020)\\The Devil All the Time (2020) WEBDL-1080p.mkv"
- //movie1 := "XLen:\\电影\\龙猫 (1988)\\龙猫 (1988) 1080p DTS.mkv"
- //movie1 := "XLen:\\电影\\消失爱人 (2016)\\消失爱人 (2016) 720p AAC.rmvb"
- //movie1:= "XLen:\\电影\\Spiral From the Book of Saw (2021)\\Spiral From the Book of Saw (2021) WEBDL-1080p.mkv"
- movie1 := "XLen:\\电影\\机动战士Z高达:星之继承者 (2005)\\机动战士Z高达:星之继承者 (2005) 1080p TrueHD.mkv"
- //movie1 := "XLen:\\连续剧\\The Bad Batch\\Season 1\\The Bad Batch - S01E01 - Aftermath WEBDL-1080p.mkv"
- xunlie := NewSupplier(types.ReqParam{Topic: 3})
- outList, err := xunlie.getSubListFromFile(movie1)
- if err != nil {
- t.Error(err)
- }
- println(outList)
- for i, sublist := range outList {
- println(i, sublist.Name, sublist.Ext, sublist.Language.String(), sublist.Score, len(sublist.Data))
- }
- }
|