From 69051f4a39faf4a4d5dce5e746c4cb405e91f5f0 Mon Sep 17 00:00:00 2001 From: Josef Wells Date: Sat, 30 Jan 2021 14:03:14 -0600 Subject: [PATCH 1/4] Create Dockerfile and Docker build/run instructions --- Dockerfile | 8 ++++++++ README.md | 15 +++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..776d44a --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 6af406c..779f934 100644 --- a/README.md +++ b/README.md @@ -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 . +``` +
# Usage @@ -65,6 +74,12 @@ $ spotifydl https://open.spotify.com/track/xyz
+## Docker +```sh +docker run -it --user=$(id -u):$(id -g) -v $(pwd):/download --rm spotify-dl +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 From f3e6f2c0340d23db7581e76f5005d7a361e61268 Mon Sep 17 00:00:00 2001 From: gringineer <73450360+gringineer@users.noreply.github.com> Date: Sat, 20 Feb 2021 10:15:19 -0600 Subject: [PATCH 2/4] don't run dar/and/lin setup after win32 --- lib/setup.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/setup.js b/lib/setup.js index 4942333..685d443 100644 --- a/lib/setup.js +++ b/lib/setup.js @@ -14,6 +14,7 @@ module.exports = { } catch (err) { console.log("Couldn't find ffmpeg. Please install https://ffmpeg.org"); } + break; } case 'linux': case 'android': @@ -34,9 +35,9 @@ module.exports = { console.log("Couldn't find ffmpeg. Please install https://ffmpeg.org"); } - default: { - break; - } + default: { + break; + } } } } \ No newline at end of file From a43cad189c5c4e961e8c8352c7b79facc0019a35 Mon Sep 17 00:00:00 2001 From: gringineer <73450360+gringineer@users.noreply.github.com> Date: Sat, 20 Feb 2021 10:16:51 -0600 Subject: [PATCH 3/4] default break doesn't do anything --- lib/setup.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/setup.js b/lib/setup.js index 685d443..26ed604 100644 --- a/lib/setup.js +++ b/lib/setup.js @@ -34,10 +34,6 @@ module.exports = { } catch (error) { console.log("Couldn't find ffmpeg. Please install https://ffmpeg.org"); } - - default: { - break; - } } } } \ No newline at end of file From 6549f8f0217b93f7be37dc3d2325579b17f67584 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 02:09:25 +0000 Subject: [PATCH 4/4] build(deps): bump elliptic from 6.5.3 to 6.5.4 Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. - [Release notes](https://github.com/indutny/elliptic/releases) - [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4) Signed-off-by: dependabot[bot] --- package-lock.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3d3c1b4..a289bf6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "spotify-dl", - "version": "0.4.7", + "version": "0.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1875,24 +1875,24 @@ } }, "elliptic": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz", - "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "dev": true, "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", + "bn.js": "^4.11.9", + "brorand": "^1.1.0", "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" }, "dependencies": { "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", "dev": true } }