Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1bcff55

Browse files
authored
feat: Implement Heresphere needsMediaSource flag (#1890)
* Implement the NeedsMediaSource HSP Field for trailers.* Remove debug message from log
1 parent9c950cf commit1bcff55

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

‎pkg/api/heresphere.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,14 @@ type HereSphereAlphaPackedSettings struct {
102102
}
103103

104104
typeHereSphereAuthRequeststruct {
105-
Usernamestring`json:"username"`
106-
Passwordstring`json:"password"`
107-
Rating*float64`json:"rating"`
108-
IsFavorite*bool`json:"isFavorite"`
109-
Hsp*string`json:"hsp"`
110-
Tags*[]HeresphereTag`json:"tags"`
111-
DeleteFiles*bool`json:"deleteFile"`
105+
Usernamestring`json:"username"`
106+
Passwordstring`json:"password"`
107+
Rating*float64`json:"rating"`
108+
IsFavorite*bool`json:"isFavorite"`
109+
Hsp*string`json:"hsp"`
110+
Tags*[]HeresphereTag`json:"tags"`
111+
DeleteFiles*bool`json:"deleteFile"`
112+
NeedsMediaSource optional.Bool`json:"needsMediaSource"`
112113
}
113114

114115
varRequestBody []byte
@@ -353,7 +354,7 @@ func (i HeresphereResource) getHeresphereScene(req *restful.Request, resp *restf
353354
videoLength=file.VideoDuration
354355
}
355356

356-
iflen(videoFiles)==0&&config.Config.Web.SceneTrailerlist {
357+
iflen(videoFiles)==0&&config.Config.Web.SceneTrailerlist&&requestData.NeedsMediaSource.OrElse(true){
357358
switchscene.TrailerType {
358359
case"heresphere":
359360
heresphereScene:=LoadHeresphereScene(scene.TrailerSource)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp