2022-11-24 13:13:55 +00:00
|
|
|
import music_kraken as mk
|
|
|
|
print(mk.__file__)
|
|
|
|
|
2022-11-24 13:34:36 +00:00
|
|
|
"""
|
2022-11-24 13:13:55 +00:00
|
|
|
from music_kraken.audio_source import (
|
|
|
|
fetch_sources,
|
|
|
|
fetch_audios
|
|
|
|
)
|
|
|
|
print(fetch_sources)
|
|
|
|
|
2022-11-24 13:34:36 +00:00
|
|
|
from music_kraken.database import (
|
|
|
|
cache
|
|
|
|
)
|
|
|
|
"""
|
|
|
|
|
|
|
|
print(mk.cache, len(mk.cache.get_tracks_without_src()))
|
2022-11-24 13:13:55 +00:00
|
|
|
|
2022-11-24 13:34:36 +00:00
|
|
|
mk.fetch_sources(mk.cache.get_tracks_without_src(), skip_existing_files=False)
|
|
|
|
mk.fetch_audios(mk.cache.get_tracks_to_download(), override_existing=True)
|