Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
stremio-local-addon
Advanced tools
Local add-on to find playable files: .torrent, .mp4, .mkv and .avi
An add-on for stremio meant to be ran locally which indexes locally found torrent and video files
It does a few things:
mp4
, mkv
, avi
and others - depends on the implementation in lib/findFiles
) and torrent
files containing videoscatalog
to Stremio containing all the found items, where IMDB-recognized video files are grouped by IMDB ID and torrents are grouped by BitTorrent infohash; non-recognized video files are omitted/meta/bt:<infoHash>
request to this add-onnpm start
npm test
The data is kept in an set (dictionary) of entries (filePath=>entry
). Each entry represents one file on the filesystem.
Each entry is defined by { itemId, name, files }
. When the entry represents a filePath
of no interest (not an indexable video), we just save { files: [] }
. Entries may contain other extra properties such as the Bittorrent-specific ih
and sources
.
The reason files
is an array is that one file on the filesystem may contain multiple indexable videos (e.g. a .torrent
file).
itemId
is the stremio metadata ID this entry corresponds to.
It may be formed in two ways:
bt:<bittorrent info hash>
local:<IMDB ID>
In other words, to make a single Stremio MetaItem
object, files are grouped either by the torrent they belong in, or by the IMDB ID they are indexed by. So this add-on will only display videos either indexed by IMDB ID or belonging in a torrent.
The persistence layer is defined in lib/storage
, and it keeps each entry as one line in the storage file. Entries may only be added to the storage file, and no entries may be removed.
It allows referencing entries by file path (.byFilePath
) or by item ID (.byItemId
). There may be more than one entry per item ID.
The in-memory structure is as follows
byFilePath
: filePath=>entry
byItemId
: itemId=>(filePath=>entry)
Finally, we have the storage.getAggrEntry
function, which gives us an aggregate entry for an itemId
, by taking all entries for the given itemId
and merging them by concatting files
and taking the leftmost values of the other properties (name
, ih
, sources
). Taking the leftmost values is OK for torrents since itemId
implies grouping by torrent anyway (in other words all ih
and sources
values will be the same).
FAQs
Local add-on to find playable files: .torrent, .mp4, .mkv and .avi
The npm package stremio-local-addon receives a total of 20 weekly downloads. As such, stremio-local-addon popularity was classified as not popular.
We found that stremio-local-addon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.