from const import ILLEGAL_FILE_NAME

def prompt_to_filenames(prompt):
    """
    prompt 에 사용할 수 없는 문자가 있으면 '_' 로 치환
    """
    filename = ''
    for i in prompt:
        if i in ILLEGAL_FILE_NAME:
            filename += '_'
        else:
            filename += i
            
    return filename


def download_range(download_count:int,max=4):
    _min = 1
    _max = max
    
    if _min <= download_count and download_count <= _max:
        return True

    return False
    