Comments (6)
Ah, track
isn't guaranteed as a key in the song dictionaries. Here's the relevant docs: gmusicapi metadata fields.
Unfortunately, there's no way to provide a default value to itemgetter, so you'll have to figure out another way to sort the tracks.
from thunner.
Also seeing this error on first run.... :/
from thunner.
Any idea how I can recreate the error?
from thunner.
I've manually uploaded some songs to my collection. I think as long as a song doesn't have a track listing in it's metadata it will trigger the problem.
from thunner.
Can you try the issue11 branch (with version 2.0.0 of gmusicapi)? I'm struggling to recreate the crash; I've tried stripping the tags from a couple of songs and uploading them but they seem to be given a track number of 0 as default.
from thunner.
Sorry to say this has the same result.
Traceback (most recent call last):
File "/home/pi/git/thunner/thunner11", line 442, in
main()
File "/home/pi/git/thunner/thunner11", line 293, in main
artists, albums = gen_trees(library)
File "/home/pi/git/thunner/thunner11", line 233, in gen_trees
"subtree":sorted(tracks,key=itemgetter('track')),
KeyError: 'track'
I've been able to get it to work by changing ln 233 from "track" to "title"
from thunner.
Related Issues (20)
- When paused for too long the stream is lost.
- Error on importing gmusicapi HOT 2
- "No Such Process" on OS X 10.8.4 HOT 12
- All-Access Songs Not Playing
- SSL Issue in Issue11 branch
- Install with Package Manager
- thunner not usable HOT 4
- Tries to connect, then dies. HOT 1
- AttributeError: 'Webclient' object has no attribute 'get_all_songs' HOT 2
- Syntax Error in Line 5
- Can't login with two-factor-authentication enabled HOT 2
- Will this work behind a HTTP proxy?
- Cannot conect
- empty playlists result in 'TypeError: list indices must be integers, not str'
- 2 Step Authentication Not Supported HOT 2
- No current row highlight HOT 2
- Assert Permissions on .thunnerrc
- cache library
- Playlist error HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thunner.