MCPcopy Create free account
hub / github.com/ShukeBta/MediaStationGo / startScrapeHTTPTask

Function startScrapeHTTPTask

internal/handler/streaming.go:246–258  ·  view source on GitHub ↗
(svc *service.Container, name, title, path string)

Source from the content-addressed store, hash-verified

244}
245
246func startScrapeHTTPTask(svc *service.Container, name, title, path string) *service.TaskHandle {
247 if svc == nil || svc.Tasks == nil {
248 return nil
249 }
250 if title != "" {
251 name += ":" + title
252 }
253 return svc.Tasks.Start(service.TaskKindScrape, name, service.TaskUpdate{
254 Stage: "scrape",
255 SourcePath: path,
256 Message: "正在刮削元数据",
257 })
258}
259
260// reprobeHandler re-runs ffprobe against a single media. Admin-only.
261func reprobeHandler(svc *service.Container) gin.HandlerFunc {

Callers 4

scrapeOneHandlerFunction · 0.85
scrapeLibraryHandlerFunction · 0.85

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected