Skip to content
This repository has been archived by the owner on Oct 6, 2018. It is now read-only.

Feature: Music Profiles #47

Merged
merged 10 commits into from
Jun 3, 2013
Merged

Feature: Music Profiles #47

merged 10 commits into from
Jun 3, 2013

Conversation

edgewyn
Copy link
Member

@edgewyn edgewyn commented Jun 3, 2013

Small feature to allow last.fm-style URLs of the form e.g.:

http://localhost:8080/music/Neutral+Milk+Hotel/
http://localhost:8080/music/Avril+Lavigne/Let+Go/

for the band Neutral Milk Hotel and Avril Lavigne's album Let Go, respectively. In the event that the artist is not immediately found, we redirect to a (currently non-functional) search page.

This is pretty basic and the artist/master comparison could definitely be improved, but at least it's a starting point for future iteration. It's also useful for the upload flow I'm working on.

@edgewyn
Copy link
Member Author

edgewyn commented Jun 3, 2013

This could also close #16, as the bullet points in @Woodenhead's comment should be their own feature tasks.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 58312f2 on feature/music-profiles into bdf2ef8 on develop.

if generated_artist_slug != artist_slug:
return redirect("music_view_artist", artist_slug=generated_artist_slug)

results = discog.search(artist_name, search_type="artist")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better naming would probably be response, since you lookup "results" key in the next few lines.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, changed.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling f36321d on feature/music-profiles into bdf2ef8 on develop.

@edgewyn edgewyn merged commit f36321d into develop Jun 3, 2013
@edgewyn edgewyn deleted the feature/music-profiles branch June 3, 2013 23:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants