New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stremio-local-addon

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stremio-local-addon - npm Package Compare versions

Comparing version 1.2.11 to 1.2.12

3

bin/addon.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc