Skip to content

Fabiensk/LfmPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Command line tool to retrieve one Libre.fm history and run simple queries
like "favorite songs for last two weeks". Requires Python 3.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Rename «lfm.conf.sample» to «lfm.conf» and set your account name

MUST be run from the directory where the script is located.

Syntax:
     lfm.py update : retrieve your data to the local database
     lfm.py recent [ NB_ENTRIES ] : display the recently played songs
     lfm.py OBJECT [ PERIOD ] : display the top artist/song/album for a given period
          OBJECT := { artist | song | album }
          PERIOD := { day | week | month | year } [ MULTIPLIER ]
               If not provided, display since the world began
          MULTIPLIER : number of days/weeks/... (may be a float number)
     lfm.py alias artist OLD NEW : for the current and future data, consider that
          OLD and NEW are the same artist, make him appear as NEW in the reports

Examples:

> ./lfm.py update
> ./lfm.py song week | head -n 25
> ./lfm.py alias artist 'Taku Iwasaki' '岩崎琢'

About

Retrieve data from Libre.fm and display stats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages