
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@jjdenhertog/plex-music-search
Advanced tools
The plex-music-search
library can be used to search for tracks in a Plex music library, building on the functionality of music-search with Plex-specific configurations.
Install the plex-music-search
library with npm:
npm install @jjdenhertog/plex-music-search
The library provides a straightforward API to search tracks in your Plex library. To get started, you’ll need the URI and token for your Plex server.
import PlexMusicSearch from '@jjdenhertog/plex-music-search';
const searchItems = [
{ id: "track1", title: "Shape of You", album: "Divide", artists: ["Ed Sheeran"] },
// More items...
];
const plexMusicSearch = new PlexMusicSearch({
uri: "https://your-plex-server-url",
token: "your-plex-auth-token",
});
// Search for multiple tracks
const searchResult = await plexMusicSearch.search(searchItems);
console.log(searchResult);
You might notice that the search query must contain an ID
const searchItems = [
{ id: "track1", title: "Shape of You", album: "Divide", artists: ["Ed Sheeran"] },
// More items...
];
Most of the times when you're searching for a track you are doing it to match one library with the other. For example matching Spotify with Plex. The result after searching will contain the original search query including the id and the results. The results are all the tracks matching with the search query. With this approach you can trace back the results more easily.
If you do not need the id for this purpose, you can simply leave it empty:
{ id: "", title: "Shape of You", album: "Divide", artists: ["Ed Sheeran"] }
The plex-music-search
library supports several configuration options to customize the search behavior. Here’s a quick look at the main options:
Example:
const plexMusicSearch = new PlexMusicSearch({
uri: "https://your-plex-server-url",
token: "your-plex-auth-token"
});
To use plex-music-search
, you’ll need your Plex server's URI and a token for authentication:
URI: This is the base URL of your Plex server. You can usually find this in your Plex server settings, or by accessing Plex Web and copying the URL from your browser.
Token: The Plex token is required to authenticate API requests. To find your token:
The default approach searches quite thoroughly through your library but as a result it can be time-consuming. By default it uses three search approaches. By limiting to only one search approach you will decrease the time searching tremendously.
const searchItems = [
{ id: "1234", title: "Shape of You", album: "Divide", artists: ["Ed Sheeran"] },
// More items...
];
const plexMusicSearch = new PlexMusicSearch({
uri: "https://your-plex-server-url",
token: "your-plex-auth-token",
searchApproaches: [{ id: 'fast', filtered: true, trimmed: false}]
});
// Search for multiple tracks
const searchResult = await plexMusicSearch.search(searchItems);
If you appreciate my work, consider starring this repository or making a donation to support ongoing development. Your support means the world to me—thank you!
Are you a developer and have some free time on your hand? It would be great if you can help me maintain and improve this library.
FAQs
Library to find tracks in your Plex Library
The npm package @jjdenhertog/plex-music-search receives a total of 58 weekly downloads. As such, @jjdenhertog/plex-music-search popularity was classified as not popular.
We found that @jjdenhertog/plex-music-search demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.