var metadata = bencode.decode(body), sha1 = crypto.createHash('sha1'); sha1.update(bencode.encode(metadata.info)); film['hash'] = sha1.digest('hex'); film['magnet'] = 'magnet:?xt=urn:btih:' + film['hash'] + '&dn=' + metadata.info.name;
diff --git a/src/app/lib/models/movie_collection.js b/src/app/lib/models/movie_collection.js index bb73eaa..58f40e1 100644 --- a/src/app/lib/models/movie_collection.js +++ b/src/app/lib/models/movie_collection.js @@ -11,7 +11,7 @@ return { torrents: App.Config.getProvider('movie'), subtitle: App.Config.getProvider('subtitle'), - metadata: App.Trakt + metadata: null }; } }); diff --git a/src/app/settings.js b/src/app/settings.js index 291c07c..06fd21e 100644 --- a/src/app/settings.js +++ b/src/app/settings.js @@ -66,8 +66,8 @@ Settings.deleteTmpOnClose = true; Settings.updateApiEndpoint = 'http://popcorntime.io/'; /* TODO: Buy SSL for main domain + buy domain get-popcorn.re for fallback Settings.updateApiEndpointMirror = 'https://popcorntime.cc/'; */ -Settings.yifyApiEndpoint = 'http://yts.re/api/'; -Settings.yifyApiEndpointMirror = 'http://yts.im/api/'; +Settings.yifyApiEndpoint = 'http://yts.lafin.me/api/'; +Settings.yifyApiEndpointMirror = 'http://yts.lafin.me/api/'; Settings.connectionCheckUrl = 'http://google.com/'; // App Settings
Source: https://habr.com/ru/post/241551/
All Articles