Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
def rename_in_playlist(args):
    s = get_authenticated_youtube()
    operations.rename_in_playlist(s,
                               args.playlistId, 
                               mappings(args.filename))
Exemple #4
0
def rename_many(args):
    s = get_authenticated_youtube()
    operations.rename(s, 
                      mappings(args.filename), 
                      on_rename=support_undo())
Exemple #5
0
def rename_in_playlist(args):
    s = get_authenticated_youtube()
    operations.rename_in_playlist(s, args.playlistId, mappings(args.filename))
Exemple #6
0
def rename_many(args):
    s = get_authenticated_youtube()
    operations.rename(s, mappings(args.filename), on_rename=support_undo())