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

extract urns for rtr and rti as well

parent 1ba22643
Pipeline #35250 passed with stages
in 2 minutes and 43 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|rts):video:[-0-9a-f]+)$"),
"srfaudio": regexp.MustCompile("^.+(urn:(srf|rts):audio:[-0-9a-f]+)$"),
"srfvideo": regexp.MustCompile("^.+(urn:(rti|rtr|rts|srf):video:[-0-9a-f]+)$"),
"srfaudio": regexp.MustCompile("^.+(urn:(rti|rtr|rts|srf):audio:[-0-9a-f]+)$"),
"youtube": regexp.MustCompile("^http.+/([^/]+)$"),
"vimeo": regexp.MustCompile("^http.+/([^/]+)$"), //
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