DDownloader 0.3.9__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.
@@ -1 +1 @@
1
- __version__ = "0.3.9"
1
+ __version__ = "0.4.0"
@@ -23,7 +23,7 @@ def banners():
23
23
  stdout.write(""+Fore.YELLOW +"╔════════════════════════════════════════════════════════════════════════════╝\n")
24
24
  stdout.write(""+Fore.YELLOW +"║ \x1b[38;2;255;20;147m• "+Fore.GREEN+"GITHUB "+Fore.RED+" |"+Fore.LIGHTWHITE_EX+" GITHUB.COM/THATNOTEASY "+Fore.YELLOW+"║\n")
25
25
  stdout.write(""+Fore.YELLOW +"╚════════════════════════════════════════════════════════════════════════════╝\n")
26
- print(f"{Fore.YELLOW}[DDownloader] - {Fore.GREEN}A DRM-Protected & Non-Protected Content Downloader - {Fore.RED}[V0.3.9] \n{Fore.RESET}")
26
+ print(f"{Fore.YELLOW}[DDownloader] - {Fore.GREEN}A DRM-Protected & Non-Protected Content Downloader - {Fore.RED}[V0.4.0] \n{Fore.RESET}")
27
27
 
28
28
  # =========================================================================================================== #
29
29
 
@@ -34,13 +34,24 @@ class DOWNLOADER:
34
34
  else:
35
35
  raise ValueError(f"Unknown binary type: {binary_type}")
36
36
 
37
+ # First check project's bin directory
37
38
  binary_path = os.path.join(bin_dir, binary_name)
39
+
40
+ # For ffmpeg on Linux, fall back to system path if not found in project
41
+ if binary_type == 'ffmpeg' and platform.system() == 'Linux' and not os.path.isfile(binary_path):
42
+ system_ffmpeg = '/usr/bin/ffmpeg'
43
+ if os.path.isfile(system_ffmpeg):
44
+ binary_path = system_ffmpeg
45
+ logger.info(Fore.YELLOW + f"Using system ffmpeg at: {binary_path}" + Fore.RESET)
46
+ else:
47
+ logger.error(f"ffmpeg not found in project bin or system path")
48
+ raise FileNotFoundError(f"ffmpeg not found in project bin or system path")
38
49
 
39
50
  if not os.path.isfile(binary_path):
40
51
  logger.error(f"Binary not found: {binary_path}")
41
52
  raise FileNotFoundError(f"Binary not found: {binary_path}")
42
53
 
43
- if platform.system() == 'Linux':
54
+ if platform.system() == 'Linux' and not binary_path.startswith('/usr/bin/'):
44
55
  chmod_command = ['chmod', '+x', binary_path]
45
56
  try:
46
57
  subprocess.run(chmod_command, check=True)
@@ -238,6 +249,7 @@ class DOWNLOADER:
238
249
  "-o", f"\"{output_file}\"", # Output file
239
250
  "--no-check-certificate", # Bypass certificate verification
240
251
  "--extractor-args", "youtube:player_client=android", # Force a specific extractor
252
+ "--ignore-errors", # Ignore errors and continue downloading
241
253
  ]
242
254
 
243
255
  # Add playlist-specific options if the URL is a playlist
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: DDownloader
3
- Version: 0.3.9
3
+ Version: 0.4.0
4
4
  Summary: A downloader for DRM-protected & Non DRM-protected content.
5
5
  License: MIT License
6
6
 
@@ -7,14 +7,14 @@ DDownloader/bin/N_m3u8DL-RE.exe,sha256=5ck6jeDFjFCSLBeoo7q9fSGT-0Oxp_rNCxjeknTvg
7
7
  DDownloader/bin/shaka-packager.exe,sha256=oQmfiToKeryylxsR9BiKuhXR_fS-PqPEu9W9rEsbrt8,5369344
8
8
  DDownloader/bin/yt-dlp.exe,sha256=TYiozhv_gpxxZ90h6LSo7rDbFEG8JzQPCJa754HJw8A,19557107
9
9
  DDownloader/main.py,sha256=eX0hrpBHKcpoqoyzKffnStU-3btaQK0VhcLCAYlL-Eg,6281
10
- DDownloader/modules/__init__.py,sha256=7YeBgSVj8ydF7tymPSFdq22NONiQoBjKL1iwcxp4TJo,21
10
+ DDownloader/modules/__init__.py,sha256=1NSg4yHgqJJKYBklxFwmel_5eSNX51umiqsyFgx4770,21
11
11
  DDownloader/modules/args_parser.py,sha256=Xc9ZzBu-QPFrBURIcq7rl8IJbrdPMy7EMWc-odVM2QU,1105
12
- DDownloader/modules/banners.py,sha256=0ymDNt6Wi6A7s10eCHz-99C4VSVtDxPmBt78XvHkXA8,5656
13
- DDownloader/modules/downloader.py,sha256=8_aAnK0zto6jfx6uxFzMk8EGCCvaTULlBQdM-f9-7_4,12359
12
+ DDownloader/modules/banners.py,sha256=fK5JpztKeE4Se3p5-yB4jdUzsKZXsBSESoeGfbPzF84,5656
13
+ DDownloader/modules/downloader.py,sha256=D5k6GO5xb601D64W1ixlLd8C9D9hzpw_Ldm6yA5k1bs,13154
14
14
  DDownloader/modules/helper.py,sha256=-PMfT0pd3AsXY1K_WP1mER3dpw9gJ99Y-Erque_62nQ,8242
15
15
  DDownloader/modules/streamlink.py,sha256=t7aaHCnINzSFybTmAd-dvfGFQkepFHJwrOBcNxyJviY,504
16
- ddownloader-0.3.9.dist-info/entry_points.txt,sha256=36xFMHKWyVvFKBCCMd3ctyd6tyujf685-qilrMpsA1E,53
17
- ddownloader-0.3.9.dist-info/LICENSE,sha256=cnjTim3BMjb9cVC_b3oS41FESKLuvuDsufVHa_ymZRw,1090
18
- ddownloader-0.3.9.dist-info/METADATA,sha256=rOC8-zZa5Jm8kLhoQJhRrgV6Q8cXEnSp4Gl4TSlCg-E,4906
19
- ddownloader-0.3.9.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
20
- ddownloader-0.3.9.dist-info/RECORD,,
16
+ ddownloader-0.4.0.dist-info/entry_points.txt,sha256=36xFMHKWyVvFKBCCMd3ctyd6tyujf685-qilrMpsA1E,53
17
+ ddownloader-0.4.0.dist-info/LICENSE,sha256=cnjTim3BMjb9cVC_b3oS41FESKLuvuDsufVHa_ymZRw,1090
18
+ ddownloader-0.4.0.dist-info/METADATA,sha256=yjYFF7BQku2Xu0y46eMsgME-ZdJNcosgwLVeJ-djoxI,4906
19
+ ddownloader-0.4.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
20
+ ddownloader-0.4.0.dist-info/RECORD,,