junalmeida/Sick-Beard — pull request #77 by Herugrim (2013-07-03 13:55:16+00:00)
Title: Fixed XML encoding for title and url

This is my second pull request so please bear with me.

An `&' in the title and/or URL of a show, for example "Ben 10 Original & Alien Force & Ultimate Alien & Omniverse Complete", will create an invalid XML file that will result in an error:

Error:
SEARCHQUEUE-RSS-SEARCH :: Error trying to load TorrentLeech RSS feed: not well-formed (invalid token): line 1, column 10544

Invalid XML:

Ben 10 Original & Alien Force & Ultimate Alien & Omniverse Complete

http://www.torrentleech.org/download/Ben.10.Original.&.Alien.Force.&.Ultimate.Alien.&.Omniverse.Complete.torrent

I've added XML escaping for the Title and URL encoding for the URL:

Ben 10 Original & Alien Force & Ultimate Alien & Omniverse Complete

http://www.torrentleech.org/download/Ben.10.Original.%26.Alien.Force.%26.Ultimate.Alien.%26.Omniverse.Complete.torrent

I've also applied this on sceneaccess since it uses the same mechanism