mikedm139/CTVNews.bundle — pull request #3 by johneke (2013-01-06 20:28:02+00:00)
Title: CTV servers no longer have the escape() function around article descriptions, this was causing a crash on the plugin

Exception trace:

2013-01-06 15:09:11,084 (1090) : CRITICAL (core:561) - Exception when calling function 'SectionMenu' (most recent call last):
File "C:\Users\johne\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 294, in call_named_function
result = f(*args, **kwargs)
File "C:\Users\johne\AppData\Local\Plex Media Server\Plug-ins\CTV News.bundle\Contents\Code\__init__.py", line 40, in SectionMenu
summary = RE_SUMMARY.search(details).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

the 'details' variable contained:

// create clip object

var clip = new Object();

clip.id = 837962;

clip.title = "News headlines from CTV News Channel";

clip.image = "http://www.ctvnews.ca/polopoly_fs/1.846393!/httpImage/image.jpg_gen/derivatives/landscape_960/image.jpg";

clip.description = "Latest breaking news headlines from CTV News Channel.";

playlistMap['1.821148'].push(clip);

Regex extraction on group(1) was failing because there is no escape(); function around the clip description