GithubHelp home page GithubHelp logo

siznax / moo Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 30.5 MB

🎷 Your music in your browser

License: MIT License

Python 43.90% JavaScript 7.97% CSS 9.97% HTML 38.07% Shell 0.08%
audio-player audiophile browser moo music music-player python

moo's People

Contributors

khafrewatkins avatar siznax avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

moo's Issues

Show last played

The home page should show albums you've recently listened to, above the covers for all albums selected. My plan is to write a HISTORY file when a song finishes playing, and use that to render last played.

favicon not found

INFO:werkzeug:127.0.0.1 - - [01/Jun/2021 15:38:07] "GET /favicon.ico HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1513, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1489, in dispatch_request
self.raise_routing_exception(req)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1471, in raise_routing_exception
raise request.routing_exception # type: ignore
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/ctx.py", line 367, in match_request
result = self.url_adapter.match(return_rule=True) # type: ignore
File "/usr/local/lib/python3.9/site-packages/Werkzeug-2.0.1-py3.9.egg/werkzeug/routing.py", line 2032, in match
raise NotFound()
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Bootstrap

I love Bootstrap. However—for the learning experience—let's keep the main branch free of product frameworks. This way we can easily compare how each browser handles the plain standards-compliant version of moo. If the "vanilla standards" main branch becomes too tiresome to maintaining product frameworks, then we can pivot. Hopefully, we'll have a Bootstrap, React and other branches in the future, and the plain main branch will remain the foundation for them.

This is sort of theoretical (based on some experience). Let's discuss!

History file not found on startup

INFO:werkzeug:127.0.0.1 - - [01/Jun/2021 15:40:02] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2088, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2073, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2070, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1515, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1513, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1499, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/Users/harold/sw/moo/Moo/play/app.py", line 64, in root
return serve_album(str(index[0]), index, _albums)
File "/Users/harold/sw/moo/Moo/play/app.py", line 432, in serve_album
history=lib.get_history(app.config['BASE'], app.config['HISTORY']),
File "/Users/harold/sw/moo/Moo/play/lib.py", line 339, in get_history
with open(filepath) as _:
FileNotFoundError: [Errno 2] No such file or directory: 'HISTORY'

IndexError when HISTORY empty

IndexError: list index out of range

Traceback (most recent call last)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2088, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2073, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2070, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1515, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1513, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1499, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/Users/harold/sw/moo/Moo/play/app.py", line 228, in history
return serve_album(ind[0], ind, alb)
IndexError: list index out of range

index, albums computed repeatedly on startup

./start.sh

  • Serving Flask app 'Moo/play/app.py' (lazy loading)
  • Environment: development
  • Debug mode: on
    INFO:root:Computing INDEX 15:38:37
    INFO:root:INDEX Done 15:38:59
    INFO:root:Getting ALBUMS 15:38:59
    INFO:root:ALBUMS DONE 15:39:50
    INFO:werkzeug: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
    INFO:werkzeug: * Restarting with stat
  • Debugger is active!
    WARNING:werkzeug: * Debugger is active!
  • Debugger PIN: 123-786-687
    INFO:werkzeug: * Debugger PIN: 123-786-687
    INFO:root:Computing INDEX 15:39:51
    INFO:root:INDEX Done 15:39:51
    INFO:root:Getting ALBUMS 15:39:51
    INFO:root:ALBUMS DONE 15:39:52

TypeError: page_not_found() takes 0 positional arguments but 1 was given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2088, in call
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2073, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 2070, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1515, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1383, in handle_user_exception
return self.handle_http_exception(e)
File "/usr/local/lib/python3.9/site-packages/Flask-2.0.1-py3.9.egg/flask/app.py", line 1323, in handle_http_exception
return self.ensure_sync(handler)(e)
TypeError: page_not_found() takes 0 positional arguments but 1 was given

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.