diff --git a/FAQ.md b/FAQ.md index 67e4ace5..f56b898d 100644 --- a/FAQ.md +++ b/FAQ.md @@ -960,14 +960,14 @@ version: 0.0 # The key must be in lower case. and it's an array. guids: - - id: universally-unique-identifier # the guid id + - id: universally-unique-identifier # the guid id. Example, 1ef83f5d-1686-60f0-96d6-3eb5c18f2aed type: string # must be exactly string do not change it. name: guid_mydb # the name must start with guid_ with no spaces and lower case. - description: "My custom database guid" # description of the guid. + description: "My custom database guid" # description of the guid. For informational purposes only. # Validator object. to validate the guid. validator: - pattern: /^[0-9\/]+$/i # regex pattern to match the guid. The pattern must also support / being in the guid. as we use the same object to generate relative guid. - example: "(number)" # example of the guid. + pattern: "/^[0-9\/]+$/i" # regex pattern to match the guid. The pattern must also support / being in the guid. as we use the same object to generate relative guid. + example: "(number)" # example of the guid. For informational purposes only. tests: valid: - "1234567" # valid guid examples. @@ -978,7 +978,7 @@ guids: links: # mapping the com.plexapp.agents.foo guid from plex backends into the guid_mydb in WatchState. # plex legacy guids starts with com.plexapp.agents., you must set options.legacy to true. - - id: universally-unique-identifier # the link id + - id: universally-unique-identifier # the link id. example, 1ef83f5d-1686-60f0-96d6-3eb5c18f2aed type: plex # the client to link the guid to. plex, jellyfin, emby. options: # options used by the client. legacy: true # Tag the mapper as legacy GUID for mapping. @@ -989,19 +989,20 @@ links: # (Optional) Replace helper. Sometimes you need to replace the guid identifier to another. # The replacement happens before the mapping, so if you replace the guid identifier, you should also # update the map.from to match the new identifier. + # This "replace" object only works with plex legacy guids. replace: from: com.plexapp.agents.foobar:// # Replace from this string to: com.plexapp.agents.foo:// # Into this string. # mapping the foo guid from jellyfin backends into the guid_mydb in WatchState. - - id: universally-unique-identifier # the link id + - id: universally-unique-identifier # the link id. example, 1ef83f5d-1686-60f0-96d6-3eb5c18f2aed type: jellyfin # the client to link the guid to. plex, jellyfin, emby. map: from: foo # map.from this string. to: guid_mydb # map.to this guid. # mapping the foo guid from emby backends into the guid_mydb in WatchState. - - id: universally-unique-identifier # the link id + - id: universally-unique-identifier # the link id. example, 1ef83f5d-1686-60f0-96d6-3eb5c18f2aed type: emby # the client to link the guid to. plex, jellyfin, emby. map: from: foo # map.from this string. diff --git a/config/config.php b/config/config.php index 3cc6be68..5b8a1333 100644 --- a/config/config.php +++ b/config/config.php @@ -192,9 +192,9 @@ return (function () { ]; $config['supported'] = [ - 'plex' => PlexClient::class, - 'emby' => EmbyClient::class, - 'jellyfin' => JellyfinClient::class, + strtolower(PlexClient::CLIENT_NAME) => PlexClient::class, + strtolower(EmbyClient::CLIENT_NAME) => EmbyClient::class, + strtolower(JellyfinClient::CLIENT_NAME) => JellyfinClient::class, ]; $config['servers'] = []; diff --git a/frontend/package.json b/frontend/package.json index 01830383..0be504b7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,7 @@ "preview": "nuxt preview", "postinstall": "nuxt prepare" }, + "web-types": "./web-types.json", "dependencies": { "@vueuse/core": "^10.9.0", "@vueuse/nuxt": "^10.9.0", diff --git a/frontend/pages/custom/add.vue b/frontend/pages/custom/add.vue index 5dde0eaf..2d220924 100644 --- a/frontend/pages/custom/add.vue +++ b/frontend/pages/custom/add.vue @@ -22,14 +22,15 @@
- The internal GUID reference name. The name must starts with guid, followed by
- _, lower case [a-z], 0-9, no space.
- For example, guid_imdb.
+ The internal GUID reference name. The rules are lower case [a-z], 0-9,
+ no space.
+ For example, guid_imdb. The guid name will be automatically prefixed with
+ guid_.
- +
- {{ ucFirst(client) }} client link + {{ ucFirst(link.type) }} client link