Explorar el Código

Read both series and season URLs

Zachary Kotlarek hace 13 años
padre
commit
2c37b2264c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)) {