Verified Commit 1ba22643 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

extract urns for rts as well

parent b979a2d9
Pipeline #35027 passed with stages
in 2 minutes and 28 seconds
......@@ -30,8 +30,8 @@ func (ae *ActionExternal) Do(w http.ResponseWriter, req *http.Request, me *Media
}
var extMatches = map[string]*regexp.Regexp{
"srfvideo": regexp.MustCompile("^.+(urn:srf:video:[-0-9a-f]+)$"),
"srfaudio": regexp.MustCompile("^.+(urn:srf:audio:[-0-9a-f]+)$"),
"srfvideo": regexp.MustCompile("^.+(urn:(srf|rts):video:[-0-9a-f]+)$"),
"srfaudio": regexp.MustCompile("^.+(urn:(srf|rts):audio:[-0-9a-f]+)$"),
"youtube": regexp.MustCompile("^http.+/([^/]+)$"),
"vimeo": regexp.MustCompile("^http.+/([^/]+)$"), // https://vimeo.com/289691364
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment