Просмотр исходного кода

Read both series and season URLs

Zachary Kotlarek 13 лет назад
Родитель
Сommit
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)) {