JARVIS-on-Messenger icon indicating copy to clipboard operation
JARVIS-on-Messenger copied to clipboard

Music: Add YouTube link

Open swapagarwal opened this issue 7 years ago • 32 comments

Need to find a mapping from spotify track id to youtube id, if possible.

swapagarwal avatar Aug 06 '17 16:08 swapagarwal

Hi @swapagarwal , can I help out here?

bmroach avatar Aug 10 '17 12:08 bmroach

@bmroach Lets do that

horrormyth avatar Aug 10 '17 17:08 horrormyth

@bmroach Sure, go ahead! 😄

swapagarwal avatar Aug 16 '17 15:08 swapagarwal

has anyone work on this issue?

azie-ginanjar avatar Aug 21 '17 12:08 azie-ginanjar

What is the goal exactly here ? Feed a spotify track id and find the matching youtube id ?

maferland avatar Sep 28 '17 21:09 maferland

Hello @swapagarwal , can I take this one ?

akash612 avatar Oct 25 '17 04:10 akash612

Hi @swapagarwal , is this still open?

thilak007 avatar Nov 10 '17 07:11 thilak007

This is more of an investigation task, hence I'm not assigning this task to a particular person. The code change will be minimalistic. Please share your findings in this thread. 😄

swapagarwal avatar Nov 12 '17 18:11 swapagarwal

After looking around there doesn't seem to be foolproof method to do it as a 1-1 mapping of the ID to the youtube link, but querrying the youtube API for "ARTIST - SONGNAME" gives very good results.

Jakod96 avatar Nov 19 '17 20:11 Jakod96

Is this done?

Krafty-Coder avatar Mar 01 '18 10:03 Krafty-Coder

I am also interested in this topic is it done ?

casdidier avatar Mar 21 '18 08:03 casdidier

@Krafty-Coder @casdidier This is still open.

swapagarwal avatar Mar 23 '18 17:03 swapagarwal

@swapagarwal This might help: https://github.com/dwickstrom/tuba

hrithik-jha avatar Jul 31 '18 16:07 hrithik-jha

Hey! I'd like to work on this. In which file do I have to add this feature?

d4nielhdz avatar Sep 03 '18 01:09 d4nielhdz

@swapagarwal Is this issue still open? If yes, can you assist me with this? Thanks.

lovlin-thakkar avatar Oct 09 '18 12:10 lovlin-thakkar

Since this is not being assigned to anyone and appears to still be open I can work on this too if you don't mind. I think I would take Jakod96's advice and just query Youtube since Spotify and Youtube are not connected in any way.

jcconnol avatar Nov 05 '18 14:11 jcconnol

@swapagarwal hi, i need done some commit in python for my Python classes at Unicersity. Is it still open ? Do you think is it proper for beginners to do this commit ? Can You give some advice where to start ? I have founded music.py for spotify

romankarski avatar Nov 28 '18 14:11 romankarski

I'll give it a go as I could have found a way to do it, but does anybody know how I could find an artist name and song name from the spotify link

C-H-Fahy avatar Dec 05 '18 22:12 C-H-Fahy

This is my first open source project. I was wondering what you guys needed done and how I could contribute to it

zsaeed2 avatar Apr 10 '19 00:04 zsaeed2

I'm new to git, but here's my idea. Could we try to get the spotify page with the id, scrape that page for the name of the song, and use the YT API to look up the name of the song on YouTube and get a link? I know this is very clunky but the first thing that came to mind. Thougts?

elkku26 avatar Jul 05 '19 20:07 elkku26

@elkku26 There are some Python libraries that would be good for that, but it might be easier to get access to the Spotify (spotipy) and YT (YouTube Data API Documentation) APIs as those will be in a more "machine readable" format. Song name probably won't be quite enough to ensure accurate results as songs are sometimes covered by other artists, or used as background music by various content creators on YT.

With all of that said, it seems that you're on the right track! If you can pull the artist name, and the song name from the Spotify API, then it's a matter of figuring out of how to translate that into an old-fashion "Google Hacks" style search query.

TL;DR: The search you would want to make would be something similar to "{{ artist_name }} - Topic" "{{ track_name }}".

YT started aggregating music videos and singles under a topic for the artist when YT was experimenting with YTMusic. Searching in the web interface for "{{ artist_name }} - Topic" (the quotations tell the search function to look for that specific string) would provide all of the songs, singles, promotional videos, and music videos that have been identified as the artist's intellectual property. Running a search for "{{ track_name }}" would provide videos that are titles as close to the specific track_name.

For example: If I were to search Spotify for the song used in the U.S. trailer for "Man on Fire" and find "The Mark Has Been Made" by Nine Inch Nails, I would then search YT with the query "Nine Inch Nails - Topic" "The Mark Has Been Made".

nuk380y avatar Oct 02 '19 21:10 nuk380y

I would like to assist in this issue if at all possible. I'm very new to python, but hope at the very least to add some insight in to solving this.

nuk380y avatar Oct 02 '19 21:10 nuk380y

Glad to see this project isn't entirely dead. I'll get home in a few hours and I'll try to get a basic prototype working. I'll update when I've made some progress.

elkku26 avatar Oct 03 '19 08:10 elkku26

I took a look at the API. It seems that it doesn't support unauthorised requests anymore, meaning you need to have the requests connected to a Spotify account. That makes it a bit harder I think but I'll try to get it working.

elkku26 avatar Oct 04 '19 08:10 elkku26

I have some good experience with the Spotify API; if this is still open, I'm willing to help with this.

dkgitcode avatar Jan 05 '20 06:01 dkgitcode

hi @swapagarwal is the issue still open

Rahul-3000 avatar Jul 25 '20 09:07 Rahul-3000

Is this still open @swapagarwal ?

desikan95 avatar Sep 30 '20 21:09 desikan95

Is this open ?

TheFenrisLycaon avatar Apr 04 '21 06:04 TheFenrisLycaon

is this open? if it is I would like to work on it

atharshah1 avatar Jun 26 '21 22:06 atharshah1

Is it open? then I would like to work on it

netra2201 avatar Aug 18 '22 08:08 netra2201