GithubHelp home page GithubHelp logo

beets-top's People

Contributors

mschuerig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

beets-top's Issues

Can't sub-query

Thanks for this, I realize this project is old but I don't know enough Python to figure out the error I'm getting when trying to sub-query

for commands like:
beet top 42 artists by time in year:1990
beet top artists in genre:jazz

Traceback (most recent call last):
  File "/usr/local/bin/beet", line 11, in <module>
    load_entry_point('beets==1.4.7', 'console_scripts', 'beet')()
  File "/home/brad/.local/lib/python2.7/site-packages/beets/ui/__init__.py", line 1256, in main
    _raw_main(args)
  File "/home/brad/.local/lib/python2.7/site-packages/beets/ui/__init__.py", line 1243, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/local/lib/python2.7/dist-packages/beetsplug/top.py", line 124, in func
    top(lib, args, opts)
  File "/usr/local/lib/python2.7/dist-packages/beetsplug/top.py", line 69, in top
    params = parse_args(args, opts)
  File "/usr/local/lib/python2.7/dist-packages/beetsplug/top.py", line 105, in parse_args
    table2, subvals2 = library.get_query(args).statement()
AttributeError: 'module' object has no attribute 'get_query'

Any help would be appreciated, cool script :)

When running plugin I get errors

Hi,

With my limited python knowledge I get the following error on windows:

e:>beet top artists
'template': template,
UnboundLocalError: local variable 'template' referenced before assignment

I think template is never set, so I dded the following lines and that seems to have fixed it:

Line 50:
"artist": Template("$subject"),
"albumartist": Template("$subject"),
"composer": Template("$subject"),
"format": Template("$subject"),
"genre": Template("$subject"),
"label": Template("$subject"),
"year": Template("$subject"),

Line 95:
template = TEMPLATES.get(subject)

Hope you understand,
Andrew

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.