Skip to content

Commit b377fdd

Browse files
committed
olivetv: fix #149
1 parent ef25203 commit b377fdd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

foundation/olivetv/douyin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ func (this *douyin) set(tv *TV) error {
5757
resp := fmt.Sprint(req.ResponseData)
5858
splits := strings.Split(resp, `<script id="RENDER_DATA" type="application/json">`)
5959
if len(splits) < 2 {
60-
return fmt.Errorf("fail to find url")
60+
// 优化日志输出
61+
// return fmt.Errorf("fail to find url")
62+
return nil
6163
}
6264
resp = splits[1]
6365
resp = strings.Split(resp, `</script>`)[0]

0 commit comments

Comments
 (0)