Giter VIP home page Giter VIP logo

Comments (6)

simon-weber avatar simon-weber commented on August 10, 2024

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.

akelling avatar akelling commented on August 10, 2024

Also seeing this error on first run.... :/

from thunner.

malcolmstill avatar malcolmstill commented on August 10, 2024

Any idea how I can recreate the error?

from thunner.

HalfAdd3r avatar HalfAdd3r commented on August 10, 2024

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.

malcolmstill avatar malcolmstill commented on August 10, 2024

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.

HalfAdd3r avatar HalfAdd3r commented on August 10, 2024

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)

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.