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

AcousticBrainz Plugin #1784

Merged
merged 14 commits into from
Dec 31, 2015
Merged

AcousticBrainz Plugin #1784

merged 14 commits into from
Dec 31, 2015

Conversation

opatel99
Copy link
Contributor

No description provided.

super(AcousticPlugin, self).__init__()

def commands(self):
cmd = ui.Subcommand('acoustic', help=PLUGIN_DESCRIPTION)
Copy link
Member

Choose a reason for hiding this comment

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

The usual way to format long lines like this is to wrap inside the parentheses. For example:

cmd = ui.Subcommand('acoustic',
                    help='...')

or:

cmd = ui.Subcommand(
    'acoustic',
    help='...',
)

rather than using a constant.

if item.mb_trackid:
rs = requests.get(generate_url(item.mb_trackid)).json()

item.abrainz_dance = get_value(rs, ["highlevel",
Copy link
Member

Choose a reason for hiding this comment

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

Can we use the plain names from AB? For example, just danceable instead of abrainz_dance. The prefix probably doesn't matter, but it would be nice to match the terminology from AB.

@sampsyo
Copy link
Member

sampsyo commented Dec 31, 2015

This is awesome. ✨ Nice work—this is very close to ready to merge. Two outstanding issues:

  • The name of the plugin. What do you think about something slightly more specific—like abrainz or even the full acousticbrainz? It seems like acoustic might sound sort of ambiguous to someone not familiar with the various XBrainzes.
  • Could you please draft an initial documentation page for the plugin? It can be very simple, since the plugin is very simple at the moment. You can copy from another similarly simple plugin, like info. The appropriate place is docs/plugins/NAME.rst.

@Freso
Copy link
Member

Freso commented Dec 31, 2015

I would personally prefer AcousticBrainz as a beets user and as a MetaBrainz spokesperson. We may do other A*Brainz projects in the future, and "acousticbrainz" also directly reflects that it's to do with AcousticBrainz, instead of having to wonder what service "ABrainz" is.

@@ -0,0 +1,85 @@
# -*- coding: utf-8 -*-
# This file is part of beets.
# Copyright 2016, Ohm Patel.
Copy link
Member

Choose a reason for hiding this comment

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

What timezone are you in again? 😆 Unless you're in Japan or Eastern Australasia, I would assume that judging by the earliest commit here, it should at least be 2015-2016. :)

@sampsyo
Copy link
Member

sampsyo commented Dec 31, 2015

Yeah, I can get behind acousticbrainz as a plugin name too—I don't mind making a name change.

@sampsyo sampsyo merged commit ad57943 into beetbox:master Dec 31, 2015
sampsyo added a commit that referenced this pull request Dec 31, 2015
sampsyo added a commit that referenced this pull request Dec 31, 2015
sampsyo added a commit that referenced this pull request Dec 31, 2015
@sampsyo sampsyo mentioned this pull request Dec 31, 2015
@opatel99 opatel99 deleted the AcousticBrainzPlug branch January 1, 2016 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants