mschuerig / beets-top Goto Github PK
View Code? Open in Web Editor NEWA plugin for Beets to find the top artists, genres, etc. in a music library.
A plugin for Beets to find the top artists, genres, etc. in a music library.
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 :)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.