Skip to content

Commit 2785648

Browse files
committed
platform: deleted
1 parent 12db3b1 commit 2785648

13 files changed

Lines changed: 6 additions & 1116 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ go 1.18
55
require (
66
github.com/fsnotify/fsnotify v1.5.1
77
github.com/go-olive/flv v0.0.0-20220417125559-80092be84905
8-
github.com/go-olive/tv v0.0.0-20220417144056-6e360c066d60
9-
github.com/json-iterator/go v1.1.12
8+
github.com/go-olive/tv v0.0.0-20220417151225-3ab4e5806e93
109
github.com/lthibault/jitterbug/v2 v2.2.2
1110
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5
1211
github.com/sirupsen/logrus v1.8.1
@@ -16,6 +15,7 @@ require (
1615
require (
1716
github.com/funny/slab v0.0.0-20180511031532-b1fad5e5d478 // indirect
1817
github.com/hashicorp/hcl v1.0.0 // indirect
18+
github.com/json-iterator/go v1.1.12 // indirect
1919
github.com/magiconair/properties v1.8.6 // indirect
2020
github.com/mitchellh/mapstructure v1.4.3 // indirect
2121
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2
6565
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
6666
github.com/go-olive/flv v0.0.0-20220417125559-80092be84905 h1:ZdAnmAn34asfJ3yUT6NDYR5WQHgWyFpEogjf/aj2xkI=
6767
github.com/go-olive/flv v0.0.0-20220417125559-80092be84905/go.mod h1:lEh2giuivi5AxQBVXcakIiXxusTWwnqgqz/8IvIYh+M=
68-
github.com/go-olive/tv v0.0.0-20220417144056-6e360c066d60 h1:nKDJNBk/9WV7U481tsKl5YWnLJewNMS+JywHYqe8T30=
69-
github.com/go-olive/tv v0.0.0-20220417144056-6e360c066d60/go.mod h1:e4Yq9X2H5wfuIKbo2+mtVVrDLuvoNw8CMqhJwADs8bY=
68+
github.com/go-olive/tv v0.0.0-20220417151225-3ab4e5806e93 h1:fpIau+snYEQn7Ab7yiOjbsZHIUnG5EmrKo1vASFcEv8=
69+
github.com/go-olive/tv v0.0.0-20220417151225-3ab4e5806e93/go.mod h1:e4Yq9X2H5wfuIKbo2+mtVVrDLuvoNw8CMqhJwADs8bY=
7070
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
7171
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
7272
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=

src/engine/show.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"github.com/go-olive/olive/src/dispatcher"
1111
"github.com/go-olive/olive/src/enum"
1212
"github.com/go-olive/olive/src/parser"
13-
"github.com/go-olive/olive/src/platform"
1413

1514
"github.com/go-olive/tv"
1615
)
@@ -40,19 +39,18 @@ type show struct {
4039
Streamer string
4140
enum.ShowTaskStatusID
4241
stop chan struct{}
43-
ctrl platform.PlatformCtrl
4442

4543
*tv.Tv
4644
}
4745

4846
func NewShow(platformType, roomID, streamerName string) (Show, error) {
49-
var parms *tv.Parms
47+
parms := new(tv.Parms)
5048
if platformType == "douyin" {
5149
parms.Cookie = config.APP.PlatformConfig.DouyinCookie
5250
}
5351
tv, err := tv.Snap(tv.NewTv(platformType, roomID), parms)
5452
if err != nil {
55-
return nil, err
53+
return nil, fmt.Errorf("Show init failed! err msg: %s", err.Error())
5654
}
5755

5856
s := &show{

src/platform/base.go

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/platform/bilibili/bilibili.go

Lines changed: 0 additions & 164 deletions
This file was deleted.

src/platform/bilibili/model.go

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)