Add Media Source to Xbox Integration (#41833)

* initial implementation of xbox media source

* minor fixes

* fix lint

* add media class map to remove multi-line ternary
This commit is contained in:
Jason Hunter 2020-10-14 15:02:08 -04:00 committed by GitHub
parent 9d9520b2f9
commit 2b1fc90de7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 308 additions and 8 deletions

View file

@ -16,5 +16,5 @@ MEDIA_CLASS_MAP = {
}
URI_SCHEME = "media-source://"
URI_SCHEME_REGEX = re.compile(
r"^media-source:\/\/(?:(?P<domain>(?!.+__)(?!_)[\da-z_]+(?<!_))(?:\/(?P<identifier>(?!\/).+))?)?$"
r"^media-source:\/\/(?:(?P<domain>(?!_)[\da-z_]+(?<!_))(?:\/(?P<identifier>(?!\/).+))?)?$"
)