Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 79de1fc

Browse files
committed
Update desc in livebilibili & change swarm name
1 parent 6b48aaf commit 79de1fc

4 files changed

Lines changed: 21 additions & 9 deletions

File tree

pkg/database/struct.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ func (Data *LiveStream) UpdateGame(new string) *LiveStream {
191191
return Data
192192
}
193193

194+
func (Data *LiveStream) UpdateDesc(new string) *LiveStream {
195+
Data.Desc = new
196+
return Data
197+
}
198+
194199
//UserStruct user struct
195200
type UserStruct struct {
196201
DiscordID, DiscordUserName, Channel_ID string

service/livestream/bilibili/live/live.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,14 @@ func (i *checkBlLiveeJob) Run() {
144144
UpdateSchdule(ScheduledStart).
145145
UpdateViewers(strconv.Itoa(Status.Data.RoomInfo.Online)).
146146
UpdateThumbnail(Status.Data.RoomInfo.Cover).
147-
UpdateTitle(Status.Data.RoomInfo.Title)
147+
UpdateTitle(Status.Data.RoomInfo.Title).
148+
UpdateDesc(func() string {
149+
if Status.Data.RoomInfo.Description == "" {
150+
return "????"
151+
} else {
152+
return Status.Data.RoomInfo.Description
153+
}
154+
}())
148155

149156
err := Bili.UpdateLiveBili()
150157
if err != nil {

swarm/fanart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ networks:
55
external: true
66

77
services:
8-
bilibili-fanart:
8+
bilibili:
99
image: justhumanz/go-simp-bilibili-fanart:${RELEASE_VERSION}
1010
depends_on:
1111
- multi_tor
1212
networks:
1313
- go-simp-net
1414

15-
twitter-fanart:
15+
twitter:
1616
image: justhumanz/go-simp-twitter-fanart:${RELEASE_VERSION}
1717
depends_on:
1818
- multi_tor
1919
command: ./twitter_fanart -LewdFanart
2020
networks:
2121
- go-simp-net
2222

23-
pixiv-fanart:
23+
pixiv:
2424
image: justhumanz/go-simp-pixiv-fanart:${RELEASE_VERSION}
2525
depends_on:
2626
- multi_tor

swarm/live.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ networks:
55
external: true
66

77
services:
8-
livestream-livebili:
8+
spacebili:
99
image: justhumanz/go-simp-bilispace-livestream:${RELEASE_VERSION}
1010
depends_on:
1111
- multi_tor
1212
networks:
1313
- go-simp-net
1414

15-
livestream-spacebili:
15+
livebili:
1616
image: justhumanz/go-simp-bililive-livestream:${RELEASE_VERSION}
1717
depends_on:
1818
- multi_tor
1919
networks:
2020
- go-simp-net
2121

22-
livestream-youtube:
22+
youtube:
2323
image: justhumanz/go-simp-youtube-checker-livestream:${RELEASE_VERSION}
2424
depends_on:
2525
- multi_tor
@@ -28,7 +28,7 @@ services:
2828
networks:
2929
- go-simp-net
3030

31-
livestream-youtube_counter:
31+
youtube_counter:
3232
image: justhumanz/go-simp-youtube-counter-livestream:${RELEASE_VERSION}
3333
depends_on:
3434
- multi_tor
@@ -37,7 +37,7 @@ services:
3737
networks:
3838
- go-simp-net
3939

40-
livestream-twitch:
40+
twitch:
4141
image: justhumanz/go-simp-twitch-livestream:${RELEASE_VERSION}
4242
depends_on:
4343
- multi_tor

0 commit comments

Comments
 (0)