fix #1822 (info view: series title sometimes doesn't become a link)

This commit is contained in:
rolux 2013-08-27 09:32:55 +00:00
parent e9afeca13e
commit 140ea896d1
2 changed files with 2 additions and 2 deletions

View file

@ -764,7 +764,7 @@ pandora.ui.infoView = function(data) {
}
function formatTitle(title) {
var match = /(.+) (\(S\d{2}E\d{2}\))/.exec(title);
var match = /(.+) (\(S\d{2}(E\d{2})?\))/.exec(title);
if (match) {
title = formatValue(match[1], 'title') + ' '
+ formatLight(match[2])

View file

@ -566,7 +566,7 @@ pandora.ui.infoView = function(data) {
}
function formatTitle(title) {
var match = /(.+) (\(S\d{2}E\d{2}\))/.exec(title);
var match = /(.+) (\(S\d{2}(E\d{2})?\))/.exec(title);
if (match) {
title = formatLink(match[1], 'title') + ' '
+ formatLight(match[2])