Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SwapnilSoni1999/spotify-dl
Browse files Browse the repository at this point in the history
  • Loading branch information
SwapnilSoni1999 committed Mar 30, 2021
2 parents d31dc16 + 18d6ea3 commit 8852fd0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM debian:unstable

RUN apt-get update && apt-get install --no-install-recommends --assume-yes npm ffmpeg && rm -rf /var/lib/apt/lists/*
RUN npm install -g spotify-dl

WORKDIR /download
ENTRYPOINT ["spotifydl"]
CMD ["--help"]
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ PS: You may need to type `termux-setup-storage` first and allow storage permissi
sh -c "$(curl -fsSL https://raw.githubusercontent.com/SwapnilSoni1999/spotify-dl/master/tools/termux.sh)"
```

#### Docker

Build docker image:
```sh
git clone https://github.com/SwapnilSoni1999/spotify-dl
cd spotify-dl
docker build -t spotify-dl .
```

<hr>

# Usage
Expand All @@ -65,6 +74,12 @@ $ spotifydl https://open.spotify.com/track/xyz

<hr>

## Docker
```sh
docker run -it --user=$(id -u):$(id -g) -v $(pwd):/download --rm spotify-dl <options-to-spotify-dl defaults to --help>
docker run -it --user=$(id -u):$(id -g) -v $(pwd):/download --rm spotify-dl "https://open.spotify.com/...."
```

#### Acknowledgements

thanks to [icons8](https://icons8.com) for icons in hero image
Expand Down
5 changes: 1 addition & 4 deletions lib/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
} catch (err) {
console.log("Couldn't find ffmpeg. Please install https://ffmpeg.org");
}
break;
}
case 'linux':
case 'android':
Expand All @@ -33,10 +34,6 @@ module.exports = {
} catch (error) {
console.log("Couldn't find ffmpeg. Please install https://ffmpeg.org");
}

default: {
break;
}
}
}
}

0 comments on commit 8852fd0

Please sign in to comment.