-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyMedia.py
More file actions
77 lines (56 loc) · 1.47 KB
/
Copy pathPyMedia.py
File metadata and controls
77 lines (56 loc) · 1.47 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import threading, time
def imp_def(result, event):
import download_handler as dl
result.append(dl)
event.clear()
def help_list():
"""
help function with func list
video function list: # all means url of video
# in the list
add-video
delete_video
edit_video
list_videos
audio function list: # all means url or direction of video
# in the list
add-audio
delete_audio
edit_audio
list_audios
telegram function list:
download media yourself
:return:
"""
pass
def video_function():
def add_video():
pass
def delete_video():
pass
def edit_video():
pass
def list_videos():
pass
return add_video, delete_video, edit_video, list_videos
def audio_function():
pass
def down_dots(event):
while event.is_set():
print('.', end='')
time.sleep(0.5)
if __name__ == '__main__':
lib = []
signal = threading.Event()
signal.set()
imp_thread = threading.Thread(target=imp_def, name='imp_thread', args=(lib, signal))
dots_thread = threading.Thread(target=down_dots, name='dots_thread', args=(signal,))
l = threading.Lock()
print("Hi, you run PyMedia :)")
print("Right now I'm importing need libraries, please wait")
dots_thread.start()
imp_thread.start()
dots_thread.join()
imp_thread.join()
dl = lib[0]
print('\nOk. Importing done')