Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from jonag/fix_2
Browse files Browse the repository at this point in the history
Fix #2
  • Loading branch information
jonag authored Aug 25, 2016
2 parents 191736e + ea74c9a commit 4c7219e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jonag/Episodes/Helper/EpisodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct($showName, $season, $episode, $releaseName, $isPrope
public static function parseFileName($fileName)
{
if (preg_match(self::PATTERN, $fileName, $matches)) {
$showName = str_replace('.', ' ', $matches[1]);
$showName = ucwords(strtolower(str_replace('.', ' ', $matches[1])));
$season = (int) $matches[2];
$episode = $matches[3];
$releaseName = isset($matches[4]) ? str_replace($matches[4], '', $matches[0]) : $matches[0];
Expand Down

0 comments on commit 4c7219e

Please sign in to comment.