diff options
author | emartin <emartin@transperfect.com> | 2014-05-29 13:13:03 +0100 |
---|---|---|
committer | emartin <emartin@transperfect.com> | 2014-05-29 13:37:34 +0100 |
commit | cec1af5d5f1b80e4c457def9c2d40fc6cd0e7b92 (patch) | |
tree | 0a0d66aa2c44887f0c4afdc100c8e0db7b222d01 /lib/helpers.js | |
parent | 71f30301ef2716fdc1ef766a8e0260d63b1bb1be (diff) | |
download | popcorn-api-cec1af5d5f1b80e4c457def9c2d40fc6cd0e7b92.zip popcorn-api-cec1af5d5f1b80e4c457def9c2d40fc6cd0e7b92.tar.gz popcorn-api-cec1af5d5f1b80e4c457def9c2d40fc6cd0e7b92.tar.bz2 |
Fix for date based shows
Diffstat (limited to 'lib/helpers.js')
-rwxr-xr-x | lib/helpers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helpers.js b/lib/helpers.js index 4d1e81b..9c69e7a 100755 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -134,7 +134,6 @@ var helpers = { var date_aired = aired.substring(aired.indexOf("-") + 1, aired.indexOf("T")).replace("-", "/"); if(typeof(data[year_aired]) != 'undefined' && typeof(data[year_aired][date_aired]) != 'undefined') { - data[year_aired][date_aired].format = "720"; thisEpisode = { tvdb_id: episode.tvdb_id, season: episode.season, @@ -148,7 +147,8 @@ var helpers = { watched : {watched: false}, torrents: [] }; - thisEpisode.torrents.push(data[year_aired][date_aired]); + thisEpisode.torrents = data[year_aired][date_aired]; + thisEpisode.torrents[0] = data[year_aired][date_aired]["480p"] ? data[year_aired][date_aired]["480p"] : data[year_aired][date_aired]["720p"]; // Prevents breaking the app thisEpisodes.push(thisEpisode); } } |