-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
28 lines (23 loc) · 913 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# import multiprocessing
import os
import argparse
from get_metadata.b_copy import copy_file, remove_title_artist
from get_metadata.get_MetaData import apply_meta as a1
from get_metadata.get_MetaData_multi import get_meta_multi as a2
# if __name__ == '__main__':
# multiprocessing.freeze_support()
# target = os.getcwd() + '/music'
# a2(target)
# or
if __name__ == '__main__':
preser = argparse.ArgumentParser(description='Get MetaData through melon', epilog='Get MetaData through melon')
preser.add_argument('-f1', '--F_e', help='paste file',
required=True, type=str, nargs=1)
preser.add_argument('-f2', '--S_e', help='copy file',
required=True, type=str, nargs=1)
args = preser.parse_args()
target_1 = args.F_e[0]
target_2 = args.S_e[0]
copy_file(target_2, target_1)
a1(target_1)
remove_title_artist(target_1)