2023-08-13 20:56:43 +02:00
|
|
|
from bemani.common import cache
|
2021-08-20 06:43:59 +02:00
|
|
|
from bemani.data import Config, Data
|
2019-12-08 22:43:49 +01:00
|
|
|
from bemani.frontend.popn.popn import PopnMusicFrontend
|
|
|
|
|
|
|
|
|
|
|
|
class PopnMusicCache:
|
|
|
|
@classmethod
|
2021-08-20 06:43:59 +02:00
|
|
|
def preload(cls, data: Data, config: Config) -> None:
|
2019-12-08 22:43:49 +01:00
|
|
|
frontend = PopnMusicFrontend(data, config, cache)
|
|
|
|
frontend.get_all_songs(force_db_load=True)
|