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-15 15:25:00 +01:00
clients Added simple API key 2018-11-30 15:44:30 +01:00
logs Added total scrobble count stats 2018-12-08 00:01:44 +01:00
rules Fixed some parsing logic 2018-12-04 19:17:44 +01:00
scrobbler-vivaldi-plex Extension now gives feedback about incorrect configuration 2018-12-14 19:52:31 +01:00
scrobbles Renamed folder and added launcher 2018-12-06 13:36:42 +01:00
website Added total scrobble count stats 2018-12-08 00:01:44 +01:00
cleanup.py Minor fixes and structure 2018-12-12 19:37:59 +01:00
database.py Improved trailing top artists 2018-12-15 15:25:00 +01:00
lastfmconverter.py Timestamps are now unique identifiers of a scrobble 2018-11-29 16:05:44 +01:00
LICENSE
maloja Added total scrobble count stats 2018-12-08 00:01:44 +01:00
README.md Renamed folder and added launcher 2018-12-06 13:36:42 +01:00
server.py Extension now gives feedback about incorrect configuration 2018-12-14 19:52:31 +01:00
utilities.py Added total scrobble count stats 2018-12-08 00:01:44 +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. Install the requirements:
  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;
     }
    

If you would like to import all your previous last.fm scrobbles, use benfoxall's website (GitHub page). Use the python script lastfmconverter.py with two arguments - the downloaded csv file and your new tsv file - to convert your data. Place the tsv file in logs/ and the server will recognize it on startup.