formatting
This commit is contained in:
parent
feee0e61c1
commit
773b4a8a46
@ -545,8 +545,6 @@ class MusicTable(QTableView):
|
||||
threadpool.start(worker)
|
||||
else:
|
||||
logging.warning("Application window could not be found")
|
||||
# add_files_to_library(files, progress_callback)
|
||||
return
|
||||
|
||||
def load_music_table(self, *playlist_id):
|
||||
"""
|
||||
|
||||
@ -49,6 +49,7 @@ def batch_delete_filepaths_from_database(
|
||||
db.execute(query, chunk)
|
||||
if progress_callback:
|
||||
progress_callback.emit(f"Deleting songs: {i}")
|
||||
|
||||
except Exception as e:
|
||||
logging.error(
|
||||
f"batch_delete_filepaths_from_database.py | An error occurred during batch processing: {e}"
|
||||
|
||||
@ -13,11 +13,7 @@ def convert_date_str_to_tyer_tdat_id3_tag(date_str) -> Tuple:
|
||||
match = re.match(r"(\d{4})[-/](\d{2})[-/](\d{2})", date_str)
|
||||
if not match:
|
||||
raise ValueError("Invalid date format")
|
||||
# print(f"convert_date_str_to_tyer_tdat_id3_tag(): match: {match}")
|
||||
year, month, day = match.groups()
|
||||
# print(
|
||||
# f"convert_date_str_to_tyer_tdat_id3_tag(): month: {month} | day: {day} | year: {year}"
|
||||
# )
|
||||
# only year
|
||||
if not month or not day:
|
||||
# print(TYER(encoding=3, text=year))
|
||||
|
||||
@ -26,9 +26,8 @@ def create_waveform_from_file(file):
|
||||
start_index = 0
|
||||
while start_index < len(audio_data):
|
||||
end_index = start_index + process_chunk_size
|
||||
signal = audio_data[start_index:end_index].astype(
|
||||
float
|
||||
) # Get chunk and convert to float
|
||||
# Get chunk and convert to float
|
||||
signal = audio_data[start_index:end_index].astype(float)
|
||||
|
||||
# Take mean of absolute values per 0.5 seconds
|
||||
sub_waveform = np.nanmean(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user