Explorar o código

Merge branch 'master' of github.com:profplump/UberZach-Video

Zachary Kotlarek %!s(int64=9) %!d(string=hai) anos
pai
achega
1c80e873b8
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      web/includes/episode.php
  2. BIN=BIN
      yt/youtube-dl

+ 4 - 1
web/includes/episode.php

@@ -20,7 +20,10 @@ function findEpisodes($series, $season) {
 		}
 
 		# Record the episode number
-		if (preg_match('/^(?:S\d+E)?(\d+)\s*\-\s*(\S.*\.\w{2,4})$/i', $episode, $matches)) {
+		if (preg_match('/^(20\d\d)\-(\d\d)\-(\d\d)\s*\-\s*(\S.*\.\w{2,4})$/i', $episode, $matches)) {
+			$episode_num = intval($matches[1] . $matches[2] . $matches[3]);
+			$retval[ $episode_num ] = $matches[4];
+		} elseif (preg_match('/^(?:S\d+E)?(\d+)\s*\-\s*(\S.*\.\w{2,4})$/i', $episode, $matches)) {
 			$episode_num = intval($matches[1]);
 			$retval[ $episode_num ] = $matches[2];
 		}

BIN=BIN
yt/youtube-dl