i#Extract local play detection into helper function

Handle streaming from URLs on local networks as local plays (fixes #1)