DDownloader 0.2.3__tar.gz → 0.2.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/main.py +5 -6
  2. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/modules/banners.py +7 -3
  3. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/modules/helper.py +3 -3
  4. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader.egg-info/PKG-INFO +1 -1
  5. {ddownloader-0.2.3 → ddownloader-0.2.4}/PKG-INFO +1 -1
  6. {ddownloader-0.2.3 → ddownloader-0.2.4}/pyproject.toml +1 -1
  7. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/__init__.py +0 -0
  8. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/modules/__init__.py +0 -0
  9. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/modules/args_parser.py +0 -0
  10. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/modules/dash_downloader.py +0 -0
  11. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/modules/hls_downloader.py +0 -0
  12. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader/modules/streamlink.py +0 -0
  13. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader.egg-info/SOURCES.txt +0 -0
  14. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader.egg-info/dependency_links.txt +0 -0
  15. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader.egg-info/entry_points.txt +0 -0
  16. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader.egg-info/requires.txt +0 -0
  17. {ddownloader-0.2.3 → ddownloader-0.2.4}/DDownloader.egg-info/top_level.txt +0 -0
  18. {ddownloader-0.2.3 → ddownloader-0.2.4}/LICENSE +0 -0
  19. {ddownloader-0.2.3 → ddownloader-0.2.4}/README.md +0 -0
  20. {ddownloader-0.2.3 → ddownloader-0.2.4}/setup.cfg +0 -0
@@ -7,7 +7,7 @@ from pathlib import Path
7
7
  from colorama import Fore, Style
8
8
  from DDownloader.modules.helper import download_binaries, detect_platform
9
9
  from DDownloader.modules.args_parser import parse_arguments
10
- from DDownloader.modules.banners import banners
10
+ from DDownloader.modules.banners import clear_and_print
11
11
  from DDownloader.modules.dash_downloader import DASH
12
12
  from DDownloader.modules.hls_downloader import HLS
13
13
 
@@ -36,18 +36,17 @@ def display_help():
36
36
  )
37
37
 
38
38
  def main():
39
- banners()
40
- time.sleep(1)
39
+ clear_and_print()
41
40
  platform_name = detect_platform()
42
41
  logger.info(f"Running on platform: {platform_name}")
43
42
  time.sleep(1)
44
43
 
45
- logger.info(f"Downloading binaries... Please wait!")
44
+ logger.info(f"Downloading binaries... Please wait!\n")
46
45
  bin_dir = Path(__file__).resolve().parent / "bin"
47
46
  download_binaries(bin_dir)
48
- logger.info(f"{Fore.GREEN}Downloading completed! Bye!{Fore.RESET}")
49
47
  time.sleep(1)
50
- banners()
48
+ logger.info(f"{Fore.GREEN}Downloading completed! Bye!{Fore.RESET}")
49
+ clear_and_print()
51
50
 
52
51
  validate_directories()
53
52
  try:
@@ -1,4 +1,4 @@
1
- import os
1
+ import os, time
2
2
  from sys import stdout
3
3
  from colorama import Fore, Style
4
4
 
@@ -6,7 +6,6 @@ def clear_screen():
6
6
  os.system('cls' if os.name == 'nt' else 'clear')
7
7
 
8
8
  def banners():
9
- clear_screen()
10
9
  stdout.write(" \n")
11
10
  stdout.write(""+Fore.LIGHTRED_EX +"██████╗ ██████╗ ██████╗ ██╗ ██╗███╗ ██╗██╗ ██████╗ █████╗ ██████╗ █████╗ ███████╗██████╗ \n")
12
11
  stdout.write(""+Fore.LIGHTRED_EX +"██╔══██╗██╔══██╗██╔═══██╗██║ ██║████╗ ██║██║ ██╔═══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗\n")
@@ -20,7 +19,12 @@ def banners():
20
19
  stdout.write(""+Fore.YELLOW +"╔════════════════════════════════════════════════════════════════════════════╝\n")
21
20
  stdout.write(""+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"GITHUB "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" GITHUB.COM/THATNOTEASY "+Fore.YELLOW+"║\n")
22
21
  stdout.write(""+Fore.YELLOW +"╚════════════════════════════════════════════════════════════════════════════╝\n")
23
- print(f"{Fore.YELLOW}[DDownloader] - {Fore.GREEN}Download DASH or HLS streams with decryption keys. - {Fore.RED}[V0.2.3] \n{Fore.RESET}")
22
+ print(f"{Fore.YELLOW}[DDownloader] - {Fore.GREEN}Download DASH or HLS streams with decryption keys. - {Fore.RED}[V0.2.4] \n{Fore.RESET}")
23
+
24
+ def clear_and_print():
25
+ time.sleep(1)
26
+ clear_screen()
27
+ banners()
24
28
 
25
29
 
26
30
 
@@ -16,7 +16,7 @@ binaries = [
16
16
  "https://github.com/ThatNotEasy/DDownloader/raw/refs/heads/main/DDownloader/bin/aria2c.exe",
17
17
  "https://github.com/ThatNotEasy/DDownloader/raw/refs/heads/main/DDownloader/bin/mp4decrypt.exe",
18
18
  "https://github.com/ThatNotEasy/DDownloader/raw/refs/heads/main/DDownloader/bin/shaka-packager.exe",
19
- "https://github.com/ThatNotEasy/DDownloader/raw/refs/heads/main/DDownloader/bin/yt-dl.exe",
19
+ "https://github.com/ThatNotEasy/DDownloader/raw/refs/heads/main/DDownloader/bin/yt-dlp.exe",
20
20
  "https://github.com/ThatNotEasy/DDownloader/raw/refs/heads/main/DDownloader/bin/mkvmerge.exe"
21
21
  ]
22
22
 
@@ -33,7 +33,7 @@ def download_binaries(bin_dir):
33
33
  logger.info(f"Skipping {filename} (already exists).")
34
34
  continue
35
35
 
36
- logger.info(f"Downloading {filename} from {binary_url}...")
36
+ logger.info(f"{Fore.GREEN}Downloading {Fore.WHITE}{filename}...{Fore.RESET}")
37
37
  response = requests.get(binary_url, stream=True, timeout=30)
38
38
  response.raise_for_status()
39
39
 
@@ -51,7 +51,7 @@ def download_binaries(bin_dir):
51
51
  file.write(chunk)
52
52
  progress_bar.update(len(chunk))
53
53
 
54
- logger.info(f"{Fore.GREEN}Downloaded and saved: {filepath}{Fore.RESET}")
54
+ # logger.info(f"{Fore.GREEN}Downloaded and saved: {filepath}{Fore.RESET}")
55
55
  except requests.exceptions.RequestException as e:
56
56
  logger.error(f"{Fore.RED}Failed to download {binary_url}: {e}{Fore.RESET}")
57
57
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DDownloader
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A downloader for DRM-protected content.
5
5
  Author-email: ThatNotEasy <apidotmy@proton.me>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DDownloader
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A downloader for DRM-protected content.
5
5
  Author-email: ThatNotEasy <apidotmy@proton.me>
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "DDownloader"
7
- version = "0.2.3"
7
+ version = "0.2.4"
8
8
  description = "A downloader for DRM-protected content."
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  authors = [
File without changes
File without changes
File without changes