新增视频资源

This commit is contained in:
zyj
2025-10-22 17:29:40 +08:00
parent 60f4995dc7
commit 81df8f1ad8
4 changed files with 16 additions and 1 deletions

3
app.go
View File

@@ -31,6 +31,9 @@ func (a *App) GetResources(rawURL string) *services.ResourcesList {
if v.Type == proto.NetworkResourceTypeScript {
resources.Script = append(resources.Script, v.URL)
}
if v.Type == proto.NetworkResourceTypeMedia {
resources.Video = append(resources.Video, v.URL)
}
}
return resources