There was an error while loading. Please reload this page.
1 parent 5f67c96 commit 17793b4Copy full SHA for 17793b4
src/imdb.ts
@@ -437,7 +437,7 @@ export class TVShow extends Movie {
437
*/
438
constructor(obj: OmdbTvshow, opts: MovieOpts) {
439
super(obj);
440
- const years = this._yearData.split("-");
+ const years = this._yearData.split(/[–-]/);
441
this.start_year = parseInt(years[0], 10);
442
this.end_year = parseInt(years[1], 10) ? parseInt(years[1], 10) : undefined;
443
this.totalseasons = parseInt(obj.totalSeasons, 10);
0 commit comments