import csv


def getSpotifyInfo(ID):
    """
    Given an id type integer, return the corresponding spotify uri

    Args:

        ID (Integer): A unique id given directly from each unique nfc tag.

    Returns:

        uri (String): A spotify uri pulled from a .csv file that directly coressponds to a specific id.
        artist (String): A spotify artist name pulled from a .csv file that directly coressponds to a specific id.
        album (String): A spotify album name pulled from a .csv file that directly coressponds to a specific id.
    """

    file = open("spotifyURICollection.csv", encoding="cp1252")
    csv_file = csv.DictReader(file)
    for row in csv_file:
        # print(row['ID'])
        # DONE: concantinate ID to a string
        if str(ID) == row["ID"]:
            uri = row["URI"]
            artist = row["Artist"]
            album = row["Album"]
            print(uri)
            return uri, artist, album
    # Base Case
    return False