Skip to content

Commit

Permalink
Merge branch 'release/0.4.1-11'
Browse files Browse the repository at this point in the history
  • Loading branch information
captainyarr committed Dec 6, 2017
2 parents 69d1d4e + e7d1505 commit 703c5a4
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,16 @@
## 0.4.1-11 Beta - Now with some butter - 6 December 2017

New Features:

- Watch movies and tv series directly in the PopcornTime player.

BugFixes:

- Updated nw.js with ffmpeg fix from Butter Project (butterproject.org)

OpenSubtitles:
- Added error handling to OpenSubtitles search call, movie list will appear after a short time.

## 0.4.1-9 Beta - I have a need for speed - 10 October 2017

New Features:
Expand Down
3 changes: 2 additions & 1 deletion gulpfile.js
Expand Up @@ -11,8 +11,9 @@ var package = require('./package.json');

var nw = new NwBuilder({
files: ['./src/**', './node_modules/**', './package.json','./install','LICENSE.txt','CHANGELOG.md','README.md'],
version: '0.20.0',
version: '0.20.1',
zip: false,
downloadUrl: 'http://builds.butterproject.org/nw/',
platforms: argv.p ? argv.p.split(',') : [detectCurrentPlatform()]
}).on('log', console.log);

Expand Down
2 changes: 1 addition & 1 deletion install
Expand Up @@ -23,7 +23,7 @@ fi
func_error

#Variables
version="0.4.1-9"
version="0.4.1-11"
tos="http://popcorn-time.is/tos.html"
$path="$HOME/.Popcorn-Time-CE"

Expand Down
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -10,9 +10,9 @@
},
"license": "GPL-3.0",
"main": "src/app/index.html",
"version": "0.4.1-9",
"version": "0.4.1-11",
"node-remote": "*://*",
"releaseName": "I have a need for speed",
"releaseName": "Now with some butter",
"scripts": {
"start": "gulp run"
},
Expand Down Expand Up @@ -52,7 +52,7 @@
"node-webkit-fdialogs": "^0.2.7",
"nodecast-js": "^1.0.3",
"opensubtitles-ce": "^1.0.0",
"opensubtitles-api": "4.0.0-rc2",
"opensubtitles-api": "4.0.0",
"os-name": "^2.0.1",
"peerflix": "^0.36.2",
"q": "2.0.3",
Expand All @@ -78,7 +78,7 @@
"eslint-config-google": "^0.8.0",
"gulp": "^3.9.1",
"gulp-zip": "~4.0.0",
"nw-builder": "^3.2.3",
"nw-builder": "^3.5.1",
"nw-gyp": "^3.4.0",
"yargs": "^7.0.2"
},
Expand Down
10 changes: 7 additions & 3 deletions src/app/lib/providers/opensubtitlesmovies.js
Expand Up @@ -5,7 +5,9 @@
var request = require('request');
var Q = require('q');
var OpenSubtitlesApi = require('opensubtitles-api');
var OS = new OpenSubtitlesApi('Popcorn Time v1');
var OS = new OpenSubtitlesApi({
useragent: 'Popcorn Time v1'
});

var TTL = 1000 * 60 * 60 * 8; // 8 hours

Expand Down Expand Up @@ -88,7 +90,9 @@
//subtitles is blank
deferred.resolve({});
}

}).catch(err => {
win.error("OpenSubtitles API Error: " + err);
deferred.resolve({});
});
return deferred.promise;
})).then(data => {
Expand All @@ -98,7 +102,7 @@

_.each(data, function (item) {
for (var name in item) {
//win.debug("Subtitle IMDB ID: " + name);
win.debug("Subtitle IMDB ID: " + name);
subtitleList.subs[name] = item[name];
}
});
Expand Down

0 comments on commit 703c5a4

Please sign in to comment.