Ajout des fonctionnalitée pour nextcloud

This commit is contained in:
Grizouille
2025-11-07 13:58:19 +01:00
parent 5765440fdb
commit 899a8ce7b3
6 changed files with 124 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ from mutagen.flac import FLAC, Picture
from mutagen.mp3 import MP3
from mutagen.id3 import PictureType, TIT2, TALB, TPE1, TRCK, TDRC, TPOS, APIC, TPE2
from mutagen import MutagenError
from deezer_downloader.update_nextcloud_files import call_scan
# BEGIN TYPES
@@ -244,6 +245,8 @@ def download_song(song: dict, output_file: str) -> None:
print(f"Warning: Could not write metadata to file: {e}")
except Exception as e:
raise DeezerApiException(f"Could not write song to disk: {e}") from e
call_scan(output_file)
print("Download finished: {}".format(output_file))