示例#1
0
def fix_movie_naming(title):
    return fix_inconsistent_naming(
        title, {
            "Back to the Future Part III": "Back to the Future 3",
            "Back to the Future Part II": "Back to the Future 2",
            'Bill & Ted Face the Music': 'Bill Ted Face the Music',
        }, True)
示例#2
0
def fix_tv_naming(title):
    """Fix TV show titles with inconsistent naming using dictionary, but do not sanitize them.
    :param str title: original title.
    :return: new title.
    :rtype: str
    """
    return fix_inconsistent_naming(title, {"Superman & Lois": "Superman and Lois",
                                           }, True)
示例#3
0
def fix_tv_naming(title):
    """Fix TV show titles with inconsistent naming using dictionary, but do not sanitize them.

    :param str title: original title.
    :return: new title.
    :rtype: str

    """
    return fix_inconsistent_naming(
        title, {
            "Marvel's Daredevil": "Daredevil",
            "Marvel's Luke Cage": "Luke Cage",
            "Marvel's Iron Fist": "Iron Fist",
            "DC's Legends of Tomorrow": "Legends of Tomorrow"
        }, True)
示例#4
0
def fix_tv_naming(title):
    """Fix TV show titles with inconsistent naming using dictionary, but do not sanitize them.

    :param str title: original title.
    :return: new title.
    :rtype: str

    """
    return fix_inconsistent_naming(
        title, {
            "DC's Legends of Tomorrow": "Legends of Tomorrow",
            "Star Trek: The Next Generation": "Star Trek TNG",
            "Loki (aka. Marvel\'s Loki)": "Loki",
            "Marvel's": "",
        }, True)
示例#5
0
def fix_tv_naming(title):
    """Fix TV show titles with inconsistent naming using dictionary, but do not sanitize them.

    :param str title: original title.
    :return: new title.
    :rtype: str

    """
    return fix_inconsistent_naming(title, {"Marvel's WandaVision": "WandaVision",
                                           "Marvel's Daredevil": "Daredevil",
                                           "Marvel's Luke Cage": "Luke Cage",
                                           "Marvel's Iron Fist": "Iron Fist",
                                           "Marvel's Jessica Jones": "Jessica Jones",
                                           "DC's Legends of Tomorrow": "Legends of Tomorrow",
                                           "Star Trek: The Next Generation": "Star Trek TNG",
                                           }, True)
示例#6
0
def fix_tv_naming(title):
    """Fix TV show titles with inconsistent naming using dictionary, but do not sanitize them.

    :param str title: original title.
    :return: new title.
    :rtype: str

    """
    return fix_inconsistent_naming(
        title, {
            "Marvel's Daredevil": "Daredevil",
            "Marvel's Luke Cage": "Luke Cage",
            "Marvel's Iron Fist": "Iron Fist",
            "DC's Legends of Tomorrow": "Legends of Tomorrow",
            "Doctor Who (2005)": "Doctor Who",
            "Star Trek: Deep Space Nine": "Star Trek DS9",
            "Star Trek: The Next Generation": "Star Trek TNG",
        }, True)
示例#7
0
def fix_movie_naming(title):
    return fix_inconsistent_naming(
        title, {
            "Back to the Future Part III": "Back to the Future 3",
            "Back to the Future Part II": "Back to the Future 2",
        }, True)
示例#8
0
def fix_movie_naming(title):
    return fix_inconsistent_naming(title, {
                                           }, True)