Skip to content

Commit

Permalink
Updating Project
Browse files Browse the repository at this point in the history
  • Loading branch information
JawadSher committed Jul 16, 2024
1 parent 656de2a commit f01ffb7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions Project 14 - Media Searcher and Downloader/Application.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
from __modules__.header_module import app_header
from __modules__.youtube_search_Module import media_search
from __modules__.youtube_search_Module import media_search
from __modules__.youtube_Media_Downloader import downloadMedia
import asyncio


async def media_search():
media_search()

async def Download_Media():
downloadMedia()

async def main():
app_header()
await media_search()

# await media_search()
await downloadMedia()

if __name__ == '__main__':
asyncio.run(main())
Binary file not shown.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import yt_dlp
import os
import argparse

def get_default_dir():
return os.path.join(os.path.expanduser('~'), "Downloads")
Expand Down Expand Up @@ -56,4 +57,3 @@ def downloadMedia():
resolution = input("Enter desired resolution (e.g., 360p, 720p): ").strip()
download_media(url, save_to, resolution)

downloadMedia()

0 comments on commit f01ffb7

Please sign in to comment.