petkar / termux-downloader

Download songs from Spotify and videos from Youtube in Android using Termux
GNU General Public License v3.0
5 stars 0 forks source link

Spotify Download #1

Closed pdave1979 closed 4 years ago

pdave1979 commented 4 years ago

I have used this code and termux app. I noticed the so many songs which I have downloaded is different than Spotify. This means the song is not downloading from Spotify. The downloaded songs are youtube version which are playing differently in Spotify and Youtube.

Expample:

https://open.spotify.com/track/6GI9aaEJbtLREylLpkgu6u?si=uIsRu3HFR6WYKTjNqsAxEQ (From Rangila Raas Garba 1) https://open.spotify.com/track/10nnCsc6unlme3bImINZV3?si=HSx06gksQCeZnvKe2LD_Vw (From Deewana)

These are example for this issue.

Thnaks.

petkar commented 4 years ago

You're right. Spotdl uses Spotify to download metadata and grabs the song from YouTube. It's not possible to directly download songs from spotify. During the automatic download, it's possible that some less known tracks may fetch the wrong track from YouTube. Nothing can be done because it is completely dependent on YouTube and Spotify servers for information and there's no reliable method to make sure that track results from both these providers always exactly match. However, this can be resolved manually to get the correct song from YouTube and metadata from Spotify. Follow these steps :

pdave1979 commented 4 years ago

how i can use the given steps.

can u please explain. I am using Termux.

On Wed, Jul 22, 2020 at 12:43 PM petkar notifications@github.com wrote:

You're right. Spotdl uses Spotify to download metadata and grabs the song from YouTube. It's not possible to directly download songs from spotify. During the automatic download, it's possible that some less known tracks may fetch the wrong track from YouTube. Nothing can be done because it is completely dependent on YouTube and Spotify servers for information and there's no reliable method to make sure that track results from both these providers always exactly match. However, this can be resolved manually to get the correct song from YouTube and metadata from Spotify. Follow these steps :

  • Note the Spotify URL for the metadata. spotify_url
  • Grab the correct YouTube URL for the song content. This will be the actual track content. youtube_url
  • Open termux and enter the following command : spotdl -s "youtube_url:spotdl_url"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-662285567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWLS2XTQSCS64WXIK53R42GSXANCNFSM4PEHZW5Q .

-- Regards, Parimal Dave

pdave1979 commented 4 years ago

You're right. Spotdl uses Spotify to download metadata and grabs the song from YouTube. It's not possible to directly download songs from spotify. During the automatic download, it's possible that some less known tracks may fetch the wrong track from YouTube. Nothing can be done because it is completely dependent on YouTube and Spotify servers for information and there's no reliable method to make sure that track results from both these providers always exactly match. However, this can be resolved manually to get the correct song from YouTube and metadata from Spotify. Follow these steps :

* Note the Spotify URL for the metadata. `spotify_url`

* Grab the correct YouTube URL for the song content. This will be the actual track content. `youtube_url`

* Open termux and enter the following command :
  spotdl -s "`youtube_url`::`spotdl_url`"

Where I can use these steps? I have entered this step (spotify_url) in Termux! It is showing command not found.

petkar commented 4 years ago

Could you please send me a screenshot so I could identify what's going wrong? Here's an example. Let's say I wanted to download "Sweet Child O' Mine" but it was downloading incorrectly. I would follow these steps :

  • Note the Spotify URL for the metadata. (spotify_url)

https://open.spotify.com/track/7o2CTH4ctstm8TNelqjb51?si=KwQyeAFpRduvHWa54dixuw (Can be found in the Spotify app > song > song menu > share > copy link)

  • Grab the correct YouTube URL for the song content. This will be the actual track content. (youtube_url)

https://youtu.be/1w7OgIMMRc4 (Can be found in the YouTube app > correct video > share button (forward arrow icon) > copy link)

  • Open termux and enter the following command : spotdl -s "youtube_url::spotdl_url"

The command in termux should look something like this now. spotdl -s "https://youtu.be/1w7OgIMMRc4::https://open.spotify.com/track/7o2CTH4ctstm8TNelqjb51?si=KwQyeAFpRduvHWa54dixuw

After the download is complete, the correct track should now appear in the default downloads directory.

pdave1979 commented 4 years ago

not getting idea.

I have attached the screenshot which I am getting after putting url.

On Wed, Jul 22, 2020 at 1:54 PM petkar notifications@github.com wrote:

Could you please send me a screenshot so I could identify what's going wrong? Here's an example. Let's say I wanted to download "Sweet Child O' Mine" but it was downloading incorrectly. I would follow these steps :

  • Note the Spotify URL for the metadata. (spotify_url)

https://open.spotify.com/track/7o2CTH4ctstm8TNelqjb51?si=KwQyeAFpRduvHWa54dixuw (Can be found in the Spotify app > song > song menu > share > copy link)

  • Grab the correct YouTube URL for the song content. This will be the actual track content. (youtube_url)

https://youtu.be/1w7OgIMMRc4 (Can be found in the YouTube app> correct video > share button (forward arrow icon) > copy link)

  • Open termux and enter the following command : spotdl -s "youtube_url::spotdl_url"

The command in termux should look something like this now. spotdl -s " https://youtu.be/1w7OgIMMRc4::https://open.spotify.com/track/7o2CTH4ctstm8TNelqjb51?si=KwQyeAFpRduvHWa54dixuw After the download is complete, the correct track should now appear in the default downloads directory.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-662317155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWKF6B3GVOG5WE7J3VLR42O2ZANCNFSM4PEHZW5Q .

-- Regards, Parimal Dave

petkar commented 4 years ago

It appears that you haven't attached anything.

pdave1979 commented 4 years ago

[image: IMG_20200722_150649.jpg]

On Wed, Jul 22, 2020 at 6:26 PM petkar notifications@github.com wrote:

It appears that you haven't attached anything.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-662436354, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWJ5UELIZ5WQ4G4ODUTR43OWXANCNFSM4PEHZW5Q .

-- Regards, Parimal Dave

petkar commented 4 years ago

It still hasn't been uploaded. Could you use the official github website instead of the email client?

pdave1979 commented 4 years ago

have u received this? please explain.

---------- Forwarded message --------- From: Parimal Dave dave.parimal@gmail.com Date: Wed, Jul 22, 2020 at 8:56 PM Subject: Re: [petkar/termux-downloader] Spotify Download (#1) To: petkar/termux-downloader < reply@reply.github.com>

On Wed, 22 Jul, 2020, 7:16 PM petkar, notifications@github.com wrote:

It still hasn't been uploaded. Perhaps use the official github website instead of the email client?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-662462722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWLNRYUHXKLOCIWCALLR43UUPANCNFSM4PEHZW5Q .

-- Regards, Parimal Dave

petkar commented 4 years ago

Could you retry uploading it on https://github.com/petkar/termux-downloader/issues/1# in the browser instead of Gmail?

pdave1979 commented 4 years ago

IMG_20200722_150649

Please review.

pdave1979 commented 4 years ago

IMG_20200722_150649

pdave1979 commented 4 years ago

sent u...pls check

On Thu, Jul 23, 2020 at 2:45 PM petkar notifications@github.com wrote:

Could you retry uploading it on #1 https://github.com/petkar/termux-downloader/issues/1 in the browser instead of Gmail?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-662903029, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWJA4TW2PSQ7RKCHGWDR475UDANCNFSM4PEHZW5Q .

-- Regards, Parimal Dave

petkar commented 4 years ago

Okay, you were not supposed to paste the link directly in termux. First type spotdl -s. Then paste the link after it. It should look like this : spotdl -s https://open.spotify.com/track/OGPZYrzLUMug33UxpSq73p?si=bCpS1dt0QUShH8jLNpGuiQ. This will automatically search for the song in YouTube and download it with Spotify album art.

pdave1979 commented 4 years ago

Getting new error message.

On Thu, 23 Jul, 2020, 8:36 PM petkar, notifications@github.com wrote:

Okay, you were not supposed to paste the link directly. First type spotdl -s . Then paste the link after it. It should look like this : spotdl -s https://open.spotify.com/track/OGPZYrzLUMug33UxpSq73p?si=bCpS1dt0QUShH8jLNpGuiQ. This will automatically search for the song in YouTube and download it with Spotify album art.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-663060646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWMNHUR6T2Q2EREMHMDR5BGYDANCNFSM4PEHZW5Q .

pdave1979 commented 4 years ago

Now it is working but the same problen still happened. The different songs are downloading.

If u have any other app for spotify let me know.

Thanks for your help.

On Thu, 23 Jul, 2020, 8:36 PM petkar, notifications@github.com wrote:

Okay, you were not supposed to paste the link directly. First type spotdl -s . Then paste the link after it. It should look like this : spotdl -s https://open.spotify.com/track/OGPZYrzLUMug33UxpSq73p?si=bCpS1dt0QUShH8jLNpGuiQ. This will automatically search for the song in YouTube and download it with Spotify album art.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-663060646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWMNHUR6T2Q2EREMHMDR5BGYDANCNFSM4PEHZW5Q .

petkar commented 4 years ago

NOTE : Please view my message on the website instead of Gmail so that the edits get updated. Okay now that you're able to get the songs downloaded, follow this other methods to download the correct song. If you want the correct song, you have to paste the link two times, first from YouTube then from Spotify. Follow these instructions :

pdave1979 commented 4 years ago

thanks. please let me know if you have any other app. because this is so lengthy. I am looking for Apple Music Downloader. If you have any app or tools for Apple.

On Thu, Jul 23, 2020 at 11:56 PM petkar notifications@github.com wrote:

Okay now that you're able to get the songs downloaded, follow this other methods to download the correct song. If you want the correct song, you have to paste the link two times, first from YouTube then from Spotify. Follow these instructions :

  • First type spotdl -s "
  • Then go to YouTube, copy the link and paste it in termux. It should look like this spotdl -s https://youtu.be/Ik3HHmVuHio
  • Now add two colons in termux (::). The command should look like this `spotdl -s "

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-663161984, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWNTCGPLJLALAFF7ENLR5B6EDANCNFSM4PEHZW5Q .

-- Regards, Parimal Dave

petkar commented 4 years ago

I'm afraid that's beyond the scope of this issue.

pdave1979 commented 4 years ago

Ya. I have tried to download so many songs but getting different version always. Pla suggest any other application if you have any.

On Fri, 24 Jul, 2020, 11:21 PM petkar, notifications@github.com wrote:

I'm afraid that's beyond the scope of this issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petkar/termux-downloader/issues/1#issuecomment-663658089, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYRZWPJJFYVZWCKJ64RAFLR5HC3NANCNFSM4PEHZW5Q .