Skip to content

Commit b64f0f7

Browse files
committed
Updating Project
1 parent d102957 commit b64f0f7

File tree

2 files changed

+37
-13
lines changed

2 files changed

+37
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,44 @@
11
from __modules__.header_module import app_header
2-
from __modules__.youtube_search_Module import media_search
3-
from __modules__.youtube_Media_Downloader import downloadMedia
4-
import asyncio
2+
from __modules__.youtube_search_Module import media_search as search_media
3+
from __modules__.youtube_Media_Downloader import downloadMedia
54

5+
async def search_media_function():
6+
await search_media()
67

7-
# async def media_search():
8-
# media_search()
9-
10-
# async def Download_Media():
11-
# downloadMedia()
8+
def download_media_function():
9+
downloadMedia()
1210

1311
async def main():
14-
# app_header()
15-
downloadMedia()
16-
# await media_search()
17-
# await downloadMedia()
12+
app_header()
13+
14+
while True:
15+
print("1. Search Social Media")
16+
print("2. Download Media")
17+
print("3. Exit")
18+
print()
19+
20+
select_option = input("Select Option: ")
21+
22+
if select_option == '1':
23+
while True:
24+
await search_media_function()
25+
user_choice = input('Type "exit" to Main Menu: ')
26+
if user_choice.lower() == 'exit':
27+
break
28+
29+
elif select_option == '2':
30+
while True:
31+
download_media_function()
32+
user_choice = input('Type "exit" to Main Menu: ')
33+
if user_choice.lower() == 'exit':
34+
break
35+
36+
elif select_option == '3':
37+
break
38+
39+
else:
40+
print("Invalid option. Please select 1, 2, or 3.")
1841

1942
if __name__ == '__main__':
20-
asyncio.run(main())
43+
import asyncio
44+
asyncio.run(main())

0 commit comments

Comments
 (0)