Expose the UID assigned to webcams and allow clients to fetch, modify,
and delete items based on the UID. New additions must not specify a
UID.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
A previous bug in the webcam module could have set boolean
values as integers. Make sure they are type correct when
reading webcams from the db.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
In Python a "bool" is a subclass of int. When introspecting
a webcam's attributes it is necessary to check for booleans
before integers.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The configured url should already be escaped. It isn't possible to
reliably quote a full url if any of the parts contain special characters.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
The webcam module allows users to enter webcam configuration through
moonraker.conf while keeping compatibility with frontends that
store webcam data in the database.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>