-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path_old_cmd_script.py
More file actions
31 lines (30 loc) · 893 Bytes
/
_old_cmd_script.py
File metadata and controls
31 lines (30 loc) · 893 Bytes
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
29
30
31
'''
ncmlistdownloader/cmd_script.py
Core.Ver.1.0.0.240309a1
Author: CooooldWind_
'''
import time
import pprint
import multiprocessing
import ncmlistdownloader as nld
def main():
print("163ListDownloader CMD Ver.")
print("Core.Ver.1.0.0.240309a1 / Made by CooooldWind_")
print("Warning: It's an Alpha Version.")
multiprocessing.freeze_support()
p = nld.Playlist()
id = str(input("ID/Url: "))
d = str(input("Dir: "))
fnf = str(input("Filename format: "))
p.get_resource(id)
print("Playlist info-reading succeed.")
for i in p.tracks:
print("Downloading:" + str(i.id['id']))
i.get_resource()
print("Music info-reading succeed.")
i.initialize(0, fnf, d)
print("Initialized.")
# ap = multiprocessing.Process(target = i.start_single())
# ap.start()
i.start_single()
print("Succeed.")