def undo(youtube): if not isfile(_undo_filename): report_nothing_to_undo() return ids_to_titles = mappings(_undo_filename) os.remove(_undo_filename) rename(youtube, ids_to_titles)
def undo(youtube): if not isfile(_undo_filename): report_nothing_to_undo() return ids_to_titles = mappings(_undo_filename) os.remove(_undo_filename); rename(youtube, ids_to_titles)
def rename_in_playlist(args): s = get_authenticated_youtube() operations.rename_in_playlist(s, args.playlistId, mappings(args.filename))
def rename_many(args): s = get_authenticated_youtube() operations.rename(s, mappings(args.filename), on_rename=support_undo())