Skip to content

Commit

Permalink
Fixed output for Seasons >= 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianBeiner committed Jun 6, 2016
1 parent 357c2b9 commit 94fe2c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [6.0.4] - 2016-06-06
### Changed
- Fixed `IMDB_SEASONS`.

## [6.0.3] - 2016-01-08
### Changed
- Fixed `getPoster`. It most likely always did a hot link to IMDB instead of the local image. The default is now to hot link to IMDb with the small resolution.
Expand Down Expand Up @@ -38,8 +42,9 @@ All notable changes to this project will be documented in this file.
- Switched to the “combined” page. This enables easier scrapping, but we lose some methods (like `getBudget()` or `getDescription()`). Then again, a few new ones where added. See README.
- Removed `getFullCast()`, because `getCast()` now returns the full cast.

[Unreleased]: https://github.com/FabianBeiner/PHP-IMDB-Grabber/compare/v6.0.1...HEAD
[Unreleased]: https://github.com/FabianBeiner/PHP-IMDB-Grabber/compare/v6.0.4...HEAD
[6.0.0]: https://github.com/FabianBeiner/PHP-IMDB-Grabber/compare/5.5.21...v6.0.0
[6.0.1]: https://github.com/FabianBeiner/PHP-IMDB-Grabber/compare/v6.0.0...v6.0.1
[6.0.2]: https://github.com/FabianBeiner/PHP-IMDB-Grabber/compare/v6.0.1...v6.0.2
[6.0.3]: https://github.com/FabianBeiner/PHP-IMDB-Grabber/compare/v6.0.2...v6.0.3
[6.0.4]: https://github.com/FabianBeiner/PHP-IMDB-Grabber/compare/v6.0.3...v6.0.4
4 changes: 2 additions & 2 deletions imdb.class.php
Expand Up @@ -14,7 +14,7 @@
* @author Fabian Beiner <fb@fabianbeiner.de>
* @license http://opensource.org/licenses/MIT The MIT License
* @link https://github.com/FabianBeiner/PHP-IMDB-Grabber GitHub Repository
* @version 6.0.3
* @version 6.0.4
*/
class IMDB
{
Expand Down Expand Up @@ -112,7 +112,7 @@ class IMDB
const IMDB_RELEASE_DATE = '~<h5>Release Date:<\/h5>(?:\s*)<div class="info-content">(.*)<\/div>~Ui';
const IMDB_RUNTIME = '~<h5>Runtime:<\/h5>(?:\s*)<div class="info-content">(.*)<\/div>~Ui';
const IMDB_SEARCH = '~<td class="result_text"> <a href="\/title\/(tt\d{6,})\/(?:.*)"(?:\s*)>(?:.*)<\/a>~Ui';
const IMDB_SEASONS = '~(?:episodes\?season=(\d+))~Ui';
const IMDB_SEASONS = '~episodes\?season=(?:\d+)">(\d+)<~Ui';
const IMDB_SOUND_MIX = '~<h5>Sound Mix:<\/h5>(?:\s*)<div class="info-content">(.*)<\/div>~Ui';
const IMDB_TAGLINE = '~<h5>Tagline:<\/h5>(?:\s*)<div class="info-content">(.*)<\/div>~Ui';
const IMDB_TITLE = '~property="og:title" content="(.*)"~Ui';
Expand Down

0 comments on commit 94fe2c5

Please sign in to comment.