Generate playlist from media based on your history of reproduction
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lyz 8d32ff31d6
Merge branch 'fix/change_default_minimum_score'
11 months ago
playlist_generator Change default_minimum_score to 3 11 months ago
tests Change default_minimum_score to 3 11 months ago
.gitignore Added gitignore 1 year ago
History.md Update version 11 months ago
README.md * Add more file extensions 1 year ago
requirements.txt Initial iteration 1 year ago
setup.py Update version 11 months ago
test.py Initial iteration 1 year ago
tox.ini Initial iteration 1 year ago

README.md

Playlist generator

Program to process the scores gathered after the visualization of files with programs such as mep.

It generates an overall score for each file and will create playlists with different filters.

Install

pip install https://git.digitales.cslabrecha.org/lyz/playlist_generator

Usage

usage: playlist_generator [-h] [-s] [--max_score MAX_SCORE]
                          [--min_score MIN_SCORE] [-ns]
                          [media_path]

Generate a playlist based on previous behavior

positional arguments:
  media_path            Path to media files

optional arguments:
  -h, --help            show this help message and exit
  -s, --filter_by_score
                        Include items with score between max_rating and
                        min_rating
  --max_score MAX_SCORE
                        maximum value of score
  --min_score MIN_SCORE
                        minimum value of score
  -ns, --filter_by_unrated
                        Include items without score
  -z, --random          Export playlist in a random order

Run without arguments it will output a list of media files found in media_path.

If you use any filter, it will only include the media that matches the union of the filtered in items.

Test

To run the tests first install tox

pip3 install tox

And then run the tests

tox

FAQ

Got UnicodeEncodeError: ‘utf-8’ codec can’t encode character “ in position : surrogates not allowed

You have some filenames that are not encoded in utf-8, to solve it do:

sudo apt-get install convmv
convmv -r -f ISO-8859-1 -t UTF-8 .

Author

lyz [at] riseup dot net