Fix DAAP request regexps - IDs can (thankfully) be more than 1-digit long

This commit is contained in:
Julien BLACHE 2009-11-01 12:39:11 +01:00
parent 9229f3dff9
commit c36b3c360d

View File

@ -1700,23 +1700,23 @@ static struct uri_map daap_handlers[] =
.handler = daap_reply_dblist
},
{
.regexp = "^/databases/[[:digit:]]/browse/[^/]+$",
.regexp = "^/databases/[[:digit:]]+/browse/[^/]+$",
.handler = daap_reply_browse
},
{
.regexp = "^/databases/[[:digit:]]/items$",
.regexp = "^/databases/[[:digit:]]+/items$",
.handler = daap_reply_dbsonglist
},
{
.regexp = "^/databases/[[:digit:]]/items/[[:digit:]][.][^/]+$",
.regexp = "^/databases/[[:digit:]]+/items/[[:digit:]]+[.][^/]+$",
.handler = daap_stream
},
{
.regexp = "^/databases/[[:digit:]]/containers$",
.regexp = "^/databases/[[:digit:]]+/containers$",
.handler = daap_reply_playlists
},
{
.regexp = "^/databases/[[:digit:]]/containers/[[:digit:]]/items$",
.regexp = "^/databases/[[:digit:]]+/containers/[[:digit:]]+/items$",
.handler = daap_reply_plsonglist
},
{