This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import psutil | |
| import sys | |
| class RAMUsageTooHigh(Exception): | |
| pass | |
| class CPUTemperatureTooHigh(Exception): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import sys | |
| FLAC_EXE = "C:\Program Files (x86)\Exact Audio Copy\FLAC\FLAC.EXE" | |
| TAG_FIELD = "--tag" | |
| TAG_GENRE = "GENRE" | |
| TAG_GENRE_SPLITTER = ", " | |
| def split_genres(genre_tag): | |
| if TAG_FIELD in genre_tag and TAG_GENRE in genre_tag: |