@@ -102,13 +102,14 @@ type HereSphereAlphaPackedSettings struct {
102
102
}
103
103
104
104
type HereSphereAuthRequest struct {
105
- Username string `json:"username"`
106
- Password string `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
+ Username string `json:"username"`
106
+ Password string `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"`
112
113
}
113
114
114
115
var RequestBody []byte
@@ -353,7 +354,7 @@ func (i HeresphereResource) getHeresphereScene(req *restful.Request, resp *restf
353
354
videoLength = file .VideoDuration
354
355
}
355
356
356
- if len (videoFiles )== 0 && config .Config .Web .SceneTrailerlist {
357
+ if len (videoFiles )== 0 && config .Config .Web .SceneTrailerlist && requestData . NeedsMediaSource . OrElse ( true ) {
357
358
switch scene .TrailerType {
358
359
case "heresphere" :
359
360
heresphereScene := LoadHeresphereScene (scene .TrailerSource )