1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
Self-hosted music scrobble database to create personal listening statistics and charts
Go to file
2018-12-04 18:43:48 +01:00
clients Added simple API key 2018-11-30 15:44:30 +01:00
logs Switched to better delimiters (tab and ASCII31) 2018-11-26 12:55:17 +01:00
rules Timestamps are now unique identifiers of a scrobble 2018-11-29 16:05:44 +01:00
scrobbler-vivaldi-plex Can now return charts 2018-12-04 17:07:07 +01:00
cleanup.py Charts can now bundle artists 2018-12-04 18:43:48 +01:00
database.py Charts can now bundle artists 2018-12-04 18:43:48 +01:00
lastfmconverter.py Timestamps are now unique identifiers of a scrobble 2018-11-29 16:05:44 +01:00
LICENSE Create LICENSE 2018-11-27 16:35:33 +01:00
README.md Simplified scrobbler code 2018-11-29 13:43:45 +01:00
server.py Some fixing 2018-11-30 16:01:32 +01:00
utilities.py Some fixing 2018-11-30 16:01:32 +01:00

Maloja

Simple self-hosted music scrobble database to create personal listening statistics. No recommendations, no social network, no nonsense.

Never Asked Questions

Why not Last.fm / Libre.fm?

Maloja is self-hosted. You will always be able to access your data, and not have to trust anyone to provide an API for it. Your library is not synced with any public or official music database, so you can follow your own tagging schema or even group associated artists together in your charts.

Why not GNU FM?

Maloja gets rid of all the extra stuff: social networking, radios, recommendations, etc. It only keeps track of your listening history and lets you analyze it. This focus on its core allows it to potentially implement much better database features. One example: Maloja supports multiple artists per track. This means artists who are often just "featuring" in the track title get a place in your charts, and collaborations between several artists finally get credited to all participants.

Why not use the established API?

Compatibility creates overhead effort. I only made this for myself, so I have no need to support lots of music players and scrobblers. Maloja has a significantly smaller API that allows it to be much simpler and implement its additional features.

Why Maloja?

I like to name my projects after regions in Grisons, Switzerland. Don't waste your time trying to find a connection, I just picked one at random. Do visit Maloja though. It's a great pass to drive.

Current status

Deep in development. I just uploaded Maloja here in case I die tomorrow. It can accept scrobbles and return some basic stats in JSON format so far.

How to install

I wouldn't recommend it yet. But if you want to test Maloja, it's fairly easy:

  1. Put it anywhere and start server.py

  2. (Recommended) Put your server behind a reverse proxy for SSL encryption. Configure that proxy to rewrite /db/ requests to the database port. In nginx this would look as follows:

     location / {
     	proxy_pass http://yoururl:42010;
     }
    
     location /db {
     	rewrite ^/db(.*)$ $1 break;
     	proxy_pass http://yoururl:42011;
     }