Skip to content
/ 7d-dl Public

An unofficial downloader for 7Digital. Automatically add your music purchases to your music library. Works with Plex to trigger a library scan upon completion.

Notifications You must be signed in to change notification settings

kobitate/7d-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

7d-dl

An unofficial downloader for 7Digital. Automatically add your music purchases to your music library. Works with Plex to trigger a library scan upon completion.

Built with Love Does Not Contain Tree Nuts code style - standard Contributor Covenant

Usage

  1. Clone or download this repo
  2. Enter the terminal of your choice and navigate to the repo
  3. Run npm install or yarn install to download the required packages
  4. Copy .env.example to .env and edit the values (see below)
  5. Run node ./index.js to download releases.

Environment Variables

Variable Name Description Example
BASE_URL Required - 7Digital region domain associated with your account https://us.7digital.com
SESSION Required - Session value from 7Digital cookie, see "7Digital Cookie" below
SECURE_SESSION Required - SecureSession value from 7Digital cookie, see "7Digital Cookie" below
MUSIC_DIR Directory where music will be downloaded to, defaults to downloads inside repo directory /mnt/music
PLEX_URL Plex Server URL, skips library scanning if not supplied https://plex.local:32400
PLEX_TOKEN Plex authentication token, required only if a PLEX_URL is supplied
PLEX_LIBRARY_ID Numeric ID of your Plex music library, required only if a PLEX_URL is supplied. See "Listing Defined Libraries" on this page 2

7Digital Cookie

  1. Install a cookie manager for your browser. I used the EditThisCookie Chrome extension. You can also use the browser console to retrieve these values.
  2. Find the cookies titled session and secureSession, and copy them to your .env file

7Digital Cookie

Notice

This is an unofficial product simulating a user downloading releases directly from their 7Digital account. I am not affiliated with 7Digital.

Note that 7Digital does impose an un-published download limit per release. I recommend only downloading a release once. 7d-dl keeps a local cache of what has already been downloaded to try and avoid any issues associated with downloading a release too many times. When migrating to a new machine, I recommend copying cache.json to ensure your already-downloaded releases are not downloaded again.

I am not responsible for any repercussions (if any) from using this code.

About

An unofficial downloader for 7Digital. Automatically add your music purchases to your music library. Works with Plex to trigger a library scan upon completion.

Topics

Resources

Code of conduct

Stars

Watchers

Forks