Example #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)
Example #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)
Example #3
0
File: svm.py Project: beluchin/svm
def rename_in_playlist(args):
    s = get_authenticated_youtube()
    operations.rename_in_playlist(s,
                               args.playlistId, 
                               mappings(args.filename))
Example #4
0
File: svm.py Project: beluchin/svm
def rename_many(args):
    s = get_authenticated_youtube()
    operations.rename(s, 
                      mappings(args.filename), 
                      on_rename=support_undo())
Example #5
0
def rename_in_playlist(args):
    s = get_authenticated_youtube()
    operations.rename_in_playlist(s, args.playlistId, mappings(args.filename))
Example #6
0
def rename_many(args):
    s = get_authenticated_youtube()
    operations.rename(s, mappings(args.filename), on_rename=support_undo())