Fixed crash related to new di.fm website

Fixed crash related to new di.fm website.
Updated regex and added a few checks to prevent similar issues in the future.

...d.