def load_from_file(ids, data_path = "."):
    """
    Takes an array of ids or single id and loads that srt file and returns
    the srt files in a dictionary with IDs as keys.
    """
    
    if type(ids) is int or type(ids) is str:
        with open(data_path+str(ids)+".srt","r") as f:
            data = f.read()
            return {ids:data}
    elif type(ids) is list:
        all_data = []
        for this_id in ids:
            try:
                with open(data_path+str(this_id)+".srt","r") as f:
                    this_data = f.read()
                all_data.append((this_id,this_data))
            except FileNotFoundError:
                print("There wasn't a file for ", this_id)
        return dict(all_data)