(_request: WSGIRequest)
return HttpResponse(f"started creating playlists. This could take a while")
Create a playlist for every folder in the library.
Create a playlist for every folder in the library.
Create a playlist for every folder in the library .
def create_playlists(_request: WSGIRequest) -> HttpResponse:
    """Create a playlist for every folder in the library."""
    library_link = os.path.join(conf.SONGS_CACHE_DIR, "local_library")
    if not os.path.islink(library_link):
        return HttpResponseBadRequest("No library set")

    _set_scan_progress(f"0 / 0 / 0")

    _create_playlists.delay()

    return HttpResponse(f"started creating playlists. This could take a while")
def create_playlists ( _request : WSGIRequest ) -> HttpResponse : library_link = os . path . join ( conf . SONGS_CACHE_DIR , "local_library" ) if not os . path . islink ( library_link ) : return HttpResponseBadRequest ( "No library set" ) _set_scan_progress ( f"0 / 0 / 0" ) _create_playlists . delay ( ) return HttpResponse ( f"started creating playlists. This could take a while" )