Преглед на файлове

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)) {