(cache_file_name: str, file_name: str)
Load an individual track from cache files
Load an individual track from cache files
Load an individual track from cache files
def load_cached_track_file(cache_file_name: str, file_name: str) -> Track:
    """Load an individual track from cache files"""
    try:
        t = Track()
        t.load_cache(cache_file_name)
        t.file_names = [os.path.basename(file_name)]
        log.info("Loaded track %s from cache file %s", file_name, cache_file_name)
        return t
    except Exception as e:
        raise TrackLoadError("Failed to load track from cache.") from e
def load_cached_track_file ( cache_file_name : str , file_name : str ) -> Track : try : t = Track ( ) t . load_cache ( cache_file_name ) t . file_names = [ os . path . basename ( file_name ) ] log . info ( "Loaded track %s from cache file %s" , file_name , cache_file_name ) return t except Exception as e : raise TrackLoadError ( "Failed to load track from cache." ) from e