artwork: only do web lookups if the required metadata is present
artwork: fix memory leak