Unescape the blip.tv redirect URL.
#
require 'src/website'
+require 'cgi'
class Bliptv < Website
VALID_BLIPTV_URL_REGEX = /^(http:\/\/)?([[:alnum:]\-]+\.)?blip\.tv\/file\/(\d+)(.*)?$/
- VALID_BLIPTV_REDIR_URL_REGEX = /^(http:\/\/)?([[:alnum:]\-]+\.)?blip\.tv\/play\/[[:alnum:]]+$/
+ VALID_BLIPTV_REDIR_URL_REGEX = /^(http:\/\/)?([[:alnum:]\-]+\.)?blip\.tv\/play\/[[:alnum:]_]+$/
def self.owns_url?(url)
return (url =~ VALID_BLIPTV_URL_REGEX ||
http.get(uri.request_uri, {})
end
- return response['location']
+ return CGI::unescape(response['location'])
end