def format_episode_numbers(episodenumbers):
    # type: (List[int]) -> str
    """Format episode number(s) into string, using configured values
    """
    if len(episodenumbers) == 1:
        epno = Config['episode_single'] % episodenumbers[0]
    else:
        epno = Config['episode_separator'].join(
            Config['episode_single'] % x for x in episodenumbers
        )

    return epno
Format episode number(s) into string, using configured values
    
tvnamer/utils.py