stremio-local-addon
Advanced tools
Comparing version 1.2.11 to 1.2.12
@@ -7,3 +7,2 @@ #!/usr/bin/env node | ||
// @TODO: proper path | ||
localAddon.startIndexing('./localFiles') | ||
localAddon.startIndexing('./localFiles') |
@@ -109,3 +109,4 @@ const parseTorrent = require('parse-torrent') | ||
// NOTE: the error here is totally ignored, as this is not fatal | ||
if (imdbId) { | ||
if (imdbId) { | ||
f.parsedName = parsed.name | ||
f.type = parsed.type | ||
@@ -112,0 +113,0 @@ f.imdb_id = imdbId |
@@ -8,2 +8,7 @@ const fetch = require('node-fetch') | ||
// If it's not a torrent, sort videos by title; otherwise retain torrent order | ||
if (!entry.ih) { | ||
videos = videos.sort(function(a, b) { return a.title - b.title }) | ||
} | ||
// We assume that one torrent may have only one IMDB ID for now: this is the only way to a decent UX now | ||
@@ -10,0 +15,0 @@ const imdbIdFile = entry.files.find(function(f) { return f.imdb_id }) |
@@ -17,3 +17,3 @@ const METAHUB_URL = 'https://images.metahub.space' | ||
type: 'other', | ||
name: entry.name, | ||
name: firstFile.parsedName || entry.name, | ||
poster: firstFile.imdb_id ? METAHUB_URL+'/poster/medium/'+firstFile.imdb_id+'/img' : null, | ||
@@ -20,0 +20,0 @@ }) |
{ | ||
"name": "stremio-local-addon", | ||
"version": "1.2.11", | ||
"version": "1.2.12", | ||
"description": "Local add-on to find playable files: .torrent, .mp4, .mkv and .avi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,1 +11,8 @@ # stremio-local-addon | ||
* Allows Stremio to open any BitTorrent infoHash using `/meta/bt:<infoHash>` request to this add-on | ||
## Testing | ||
``PORT=1222 npm start`` | ||
``npm test`` |
Sorry, the diff of this file is not supported yet
72717
564
17