fix: alist ali raw type

main v0.9.7-beta.4
zijiren233 2 weeks ago
parent bf9746dac9
commit e60a15d3fb

@ -371,10 +371,18 @@ func (s *AlistVendorService) GenMovieInfo(ctx context.Context, user *op.User, us
movie.MovieBase.Type = "m3u8" movie.MovieBase.Type = "m3u8"
rawStreamURL := data.URL rawStreamURL := data.URL
subPath := s.movie.SubPath()
var rawType string
if subPath == "" {
rawType = utils.GetURLExtension(movie.MovieBase.VendorInfo.Alist.Path)
} else {
rawType = utils.GetURLExtension(subPath)
}
movie.MovieBase.MoreSources = []*dbModel.MoreSource{ movie.MovieBase.MoreSources = []*dbModel.MoreSource{
{ {
Name: "raw", Name: "raw",
Type: utils.GetURLExtension(movie.MovieBase.VendorInfo.Alist.Path), Type: rawType,
URL: rawStreamURL, URL: rawStreamURL,
}, },
} }

@ -371,10 +371,18 @@ func (s *AlistVendorService) GenMovieInfo(ctx context.Context, user *op.User, us
movie.MovieBase.Type = "m3u8" movie.MovieBase.Type = "m3u8"
rawStreamURL := data.URL rawStreamURL := data.URL
subPath := s.movie.SubPath()
var rawType string
if subPath == "" {
rawType = utils.GetURLExtension(movie.MovieBase.VendorInfo.Alist.Path)
} else {
rawType = utils.GetURLExtension(subPath)
}
movie.MovieBase.MoreSources = []*dbModel.MoreSource{ movie.MovieBase.MoreSources = []*dbModel.MoreSource{
{ {
Name: "raw", Name: "raw",
Type: utils.GetURLExtension(movie.MovieBase.VendorInfo.Alist.Path), Type: rawType,
URL: rawStreamURL, URL: rawStreamURL,
}, },
} }

Loading…
Cancel
Save