瀏覽代碼

Read both series and season URLs

Zachary Kotlarek 13 年之前
父節點
當前提交
2c37b2264c
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      web/includes/tvdb.php

+ 1 - 1
web/includes/tvdb.php

@@ -10,7 +10,7 @@ function parseTVDBURL($url) {
 	);
 
         # Accept both the raw and encoded verisons of the URL
-	if (preg_match('/(?:\?|\&(?:amp;)?)id=(\d+)/', $url, $matches)) {
+	if (preg_match('/(?:\?|\&(?:amp;)?)(?:series)?id=(\d+)/', $url, $matches)) {
 		$retval['tvdb-id'] = $matches[1];
 	}
 	if (preg_match('/(?:\?|\&(?:amp;)?)lid=(\d+)/', $url, $matches)) {