Giter Club home page Giter Club logo

monty's Issues

clean up event handlers

There's gotta be a better way to handle setting up the keyboard events. Right now all the callback functions are declared in main. There's no way that's the best option, right?

Edit 1: Does it make sense to keep these in a separate Callback class? If we make these methods static and rely on partially-evaluating these functions, would that create issues down the line? I believe so. E.g. โ€” if we edit the TrackList after initializing the player, then we won't have a current copy of that TrackList in our callbacks. we'd have to do some kind of update. Come to think of it, we'd probably have to do the same thing if we passed those objects as arguments to the Callback class at the time of initialization.

add an "update callbacks" function that will update bindings for keys/GUI elements.

Converge on the index file as a standard, or whatever

As Monty moves into the realm of using an index file to know what's up, there are a couple things that need to change:

  • The startup for the SQLite database should look for an index file instead of walking the media directory.
    • If no index file available, maybe call out to ingest to create one? I don't really know what's best here.
  • TrackList (or something else) should build the file locations from MusicBrainz IDs instead of just, like, knowing what's on disk.
  • TrackList should check to see if a file exists before going ahead and playing it. If it doesn't exist, it's gotta go get it.

ideas for monty-server

I'm not sure we need anything more than a copy of the audio_tracks table and some cloud storage stuff, but what API endpoints would we need? Some ideas follow.

get_track : artist, album, track_name

handle google cloud auth errors

(monty) rory@rory:~/dev/monty$ python launch_player.py 
Traceback (most recent call last):
  File "launch_player.py", line 92, in <module>
    main()
  File "launch_player.py", line 20, in main
    client = CloudStorage()

handle errors that could arise from not being able to access Google Cloud and do something useful with them, like display something next to non-local files to say that you can't get to em.
Whatever happens, though, a user should still be able to run the player.

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.