Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title and artist #3

Open
Haroenv opened this issue Nov 6, 2015 · 5 comments
Open

Add title and artist #3

Haroenv opened this issue Nov 6, 2015 · 5 comments

Comments

@Haroenv
Copy link
Member

Haroenv commented Nov 6, 2015

Should be relatively simple to get the title of the youtube/soundcloud entry, leave it open for other things or take like the OGP title tag. Put that in the tweet as well.

Another option would be to look for the message that is posted together with the link, and post it too if it's smaller than 140 chars in total.

ping @dervondenbergen

@dervondenbergen
Copy link
Member

I also thought about trying to find out, what the twitter username of the artist is, if one exists. Although that could be more difficult.

@KevinGimbel
Copy link
Member

I guess you could call the respecting APIs, e.g. YouTube or Soundcloud to load more information of the Media and then include the title.

https://developers.soundcloud.com/docs/api/reference#tracks

@dervondenbergen
Copy link
Member

Didn't think about that. Maybe the APIs can also reveal more about the Artist, if the source is an official one,

@KevinGimbel
Copy link
Member

I think with multiple API calls to Soundcloud you can get the Twitter handle if it is set. But this needs testing.

@dervondenbergen
Copy link
Member

Soundcloud is easily possible, here is a pen:
http://codepen.io/dervondenbergen/pen/1058d64d7f71281da4bfbf3f08bc3c20?editors=001

@Haroenv Haroenv closed this as completed Dec 1, 2015
@Haroenv Haroenv reopened this Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants