### Install whatlastgenre Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Install the package using the setup script. ```bash python setup.py install ``` -------------------------------- ### Install optional dependencies Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Install additional packages for specific features like Discogs or caching. ```bash pip install rauth ``` -------------------------------- ### Install dependencies via pip Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Use pip to install the required Python packages. ```bash pip install mutagen requests ``` -------------------------------- ### Execution examples Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Common command-line patterns for running whatlastgenre on music directories. ```bash whatlastgenre -vn /media/music ``` ```bash whatlastgenre -l 3 /media/music /home/user/music ``` ```bash whatlastgenre -r /media/music ``` -------------------------------- ### Install dependencies on Debian-based systems Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Use apt-get to install the required Python packages at the system level. ```bash apt-get install python-mutagen python-requests ``` -------------------------------- ### Example configuration file Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md A template showing the structure of the ~/.whatlastgenre/config file with default settings for sources, genres, and scoring. ```ini [wlg] sources = discogs, lastfm, redacted whitelist = tagsfile = id3v23sep = [genres] love = trip-rock hate = alternative, electronic, indie, pop, rock [scores] artist = 1.33 various = 0.66 splitup = 0.33 minimum = 0.10 src_discogs = 1.00 src_lastfm = 0.66 src_mbrainz = 0.66 src_redacted = 1.50 [discogs] token = secret = [redacted] username = password = session = ``` -------------------------------- ### Set PYTHONPATH for manual installation Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/plugin/beets/README.md Use this if whatlastgenre was not installed via pip and needs to be manually added to the path. ```bash export PYTHONPATH="${PYTHONPATH}:~/git/whatlastgenre" ``` -------------------------------- ### Run whatlastgenre without installation Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Execute the script directly from the cloned directory. ```bash ./whatlastgenre ``` -------------------------------- ### Command-line usage help Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Displays the available command-line arguments and options for the whatlastgenre utility. ```text usage: whatlastgenre [-h] [-v] [-n] [-u] [-l N] [-r] [-d] path [path ...] positional arguments: path path(s) to scan for albums optional arguments: -h, --help show this help message and exit -v, --verbose verbose output (-vv for debug) (default: 0) -n, --dry don't save metadata (default: False) -u, --update-cache force cache update (default: False) -l N, --tag-limit N max. number of genre tags (default: 4) -r, --release get release info from redacted (default: False) -d, --difflib enable difflib matching (slow) (default: False) ``` -------------------------------- ### Configure plugin path Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/plugin/beets/README.md Point beets to the plugin directory if it is not automatically registered. ```yaml pluginpath: ~/git/whatlastgenre/plugin/beets/beetsplug ``` -------------------------------- ### Configure beets plugin Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/plugin/beets/README.md Add the plugin to your beets configuration file and set the auto-fetch behavior. ```yaml plugins: wlg wlg: auto: yes force: no ``` -------------------------------- ### Configure wlg plugin options Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/plugin/beets/README.md Additional configuration options available within the beets config file. ```yaml wlg: auto: no force: no count: 4 separator: ', ' whitelist: wlg ``` -------------------------------- ### Run wlg manually Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/plugin/beets/README.md Command line usage for the beets wlg plugin. ```text Usage: beet wlg [options] Options: -h, --help show this help message and exit -v, --verbose verbose output (-vv for debug) -f, --force force overwrite existing genres -u, --update-cache force update cache ``` -------------------------------- ### Perform a debug dry run Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Execute a dry run with verbose output to identify tag handling issues and save the results to a log file. ```bash whatlastgenre -nvv /media/music > /tmp/wlg.log ``` -------------------------------- ### Analyze tag log output Source: https://github.com/yetanothernerd/whatlastgenre/blob/master/README.md Filter and sort the generated log file to identify tag frequencies for whitelist or alias improvements. ```bash grep ^tag /tmp/wlg.log | sort | uniq -c | sort -r | less ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.