Get useful stats about your libraries
- In this example, you will:
Get stats on the differences in playlists between two libraries
Get stats on the missing tags in a local library
Set up logging
Set up logging to ensure you can see all info reported by the later operations.
Libraries log info about loaded objects to the custom STAT
level.
import logging
import sys
from musify.logger import STAT
logging.basicConfig(format="%(message)s", level=STAT, stream=sys.stdout)
Report on differences in playlists
Load two libraries. See other guides for more info on how to do this.
Run the report:
from musify.report import report_playlist_differences report_playlist_differences(source=local_library, reference=remote_library)