DDownloader 0.3.3__py3-none-any.whl → 0.3.4__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.
DDownloader/main.py CHANGED
@@ -46,7 +46,7 @@ def process_media_info(directory="downloads", log_dir="logs"):
46
46
  with open(log_file_path, "w", encoding="utf-8") as log_file:
47
47
  json.dump(media_info, log_file, indent=4)
48
48
  logger.info(f"Saved media information to: {log_file_path}")
49
- print(Fore.RED + "═" * 80 + Fore.RESET + "\n")
49
+ print(Fore.RED + "═" * 100 + Fore.RESET + "\n")
50
50
 
51
51
  except Exception as e:
52
52
  logger.error(f"Failed to process {file_path}: {e}")
@@ -56,8 +56,8 @@ def process_media_info(directory="downloads", log_dir="logs"):
56
56
  def main():
57
57
  clear_and_print()
58
58
  platform_name = detect_platform()
59
- logger.info("Downloading binaries... Please wait!")
60
- print(Fore.MAGENTA + "=" * 100 + Fore.RESET)
59
+ logger.info("Please be patient...")
60
+ print(Fore.RED + "" * 100 + Fore.RESET)
61
61
  time.sleep(1)
62
62
  bin_dir = Path(__file__).resolve().parent / "bin"
63
63
  download_binaries(bin_dir, platform_name)
@@ -72,47 +72,65 @@ def main():
72
72
 
73
73
  downloader = DOWNLOADER()
74
74
 
75
- if re.search(r"\.mpd\b", args.url, re.IGNORECASE):
76
- logger.info("DASH stream detected. Initializing DASH downloader...")
77
- elif re.search(r"\.m3u8\b", args.url, re.IGNORECASE):
78
- logger.info("HLS stream detected. Initializing HLS downloader...")
79
- elif re.search(r"\.ism\b", args.url, re.IGNORECASE):
80
- logger.info("ISM (Smooth Streaming) detected. Initializing ISM downloader...")
81
- else:
82
- logger.error("Unsupported URL format. Please provide a valid DASH (.mpd), HLS (.m3u8), or ISM (.ism) URL.")
83
- exit(1)
84
-
85
- downloader.manifest_url = args.url
86
- downloader.output_name = args.output
87
- downloader.decryption_keys = args.key or []
88
- downloader.headers = args.header or []
89
- downloader.proxy = args.proxy
90
-
91
- if downloader.proxy:
92
- if not downloader.proxy.startswith("http://"):
93
- downloader.proxy = f"http://{downloader.proxy}"
94
- logger.info(f"Proxy: {downloader.proxy}")
95
- print(Fore.RED + "═" * 80 + Fore.RESET + "\n")
96
-
97
- if downloader.headers:
98
- logger.info("Headers:")
99
- for header in downloader.headers:
100
- logger.info(f" - {header}")
101
- print(Fore.RED + "═" * 80 + Fore.RESET + "\n")
102
-
103
- if downloader.decryption_keys:
104
- logger.info("Decryption keys:")
105
- for key in downloader.decryption_keys:
106
- logger.info(f" - {key}")
107
- print(Fore.RED + "═" * 80 + Fore.RESET + "\n")
75
+ # Handle downloading if URL is provided
76
+ if args.url:
77
+ if re.search(r"\.mpd\b", args.url, re.IGNORECASE):
78
+ logger.info("DASH stream detected. Initializing DASH downloader...")
79
+ elif re.search(r"\.m3u8\b", args.url, re.IGNORECASE):
80
+ logger.info("HLS stream detected. Initializing HLS downloader...")
81
+ elif re.search(r"\.ism\b", args.url, re.IGNORECASE):
82
+ logger.info("ISM (Smooth Streaming) detected. Initializing ISM downloader...")
83
+ else:
84
+ logger.error("Unsupported URL format. Please provide a valid DASH (.mpd), HLS (.m3u8), or ISM (.ism) URL.")
85
+ exit(1)
86
+
87
+ downloader.manifest_url = args.url
88
+ downloader.output_name = args.output
89
+ downloader.decryption_keys = args.key or []
90
+ downloader.headers = args.header or []
91
+ downloader.proxy = args.proxy
92
+
93
+ if downloader.proxy:
94
+ if not downloader.proxy.startswith("http://"):
95
+ downloader.proxy = f"http://{downloader.proxy}"
96
+ logger.info(f"Proxy: {downloader.proxy}")
97
+ print(Fore.RED + "═" * 100 + Fore.RESET + "\n")
98
+
99
+ if downloader.headers:
100
+ logger.info("Headers:")
101
+ for header in downloader.headers:
102
+ logger.info(f" - {header}")
103
+ print(Fore.RED + "═" * 100 + Fore.RESET + "\n")
104
+
105
+ if downloader.decryption_keys:
106
+ logger.info("Decryption keys:")
107
+ for key in downloader.decryption_keys:
108
+ logger.info(f" - {key}")
109
+ print(Fore.RED + "═" * 100 + Fore.RESET + "\n")
108
110
 
109
- try:
110
- downloader.drm_downloader()
111
- except Exception as e:
112
- logger.error(f"An error occurred during the download process: {e}")
113
- exit(1)
114
-
115
- process_media_info(downloads_dir)
111
+ try:
112
+ downloader.drm_downloader()
113
+ except Exception as e:
114
+ logger.error(f"An error occurred during the download process: {e}")
115
+ exit(1)
116
+
117
+ process_media_info(downloads_dir)
118
+
119
+ if args.input and args.quality:
120
+ logger.info(f"Starting re-encode process for {args.input} to {args.quality.upper()} quality...")
121
+ output_file = downloader.re_encode_content(
122
+ input_file=args.input,
123
+ quality=args.quality,
124
+ codec="libx265",
125
+ crf=20,
126
+ preset="medium"
127
+ )
128
+
129
+ if output_file:
130
+ logger.info(f"Re-encoding completed successfully! Output saved to: {output_file}")
131
+ else:
132
+ logger.error("Re-encoding failed.")
133
+ exit(1)
116
134
 
117
135
  # =========================================================================================================== #
118
136
 
@@ -1 +1 @@
1
- __version__ = "0.3.3"
1
+ __version__ = "0.3.4"
@@ -10,11 +10,13 @@ def parse_arguments():
10
10
  )
11
11
 
12
12
  # Add arguments (these will not include the default descriptions)
13
- parser.add_argument("-u", "--url", required=True, help=argparse.SUPPRESS)
13
+ parser.add_argument("-u", "--url", help=argparse.SUPPRESS)
14
14
  parser.add_argument("-p", "--proxy", help=argparse.SUPPRESS)
15
- parser.add_argument("-o", "--output", required=True, help=argparse.SUPPRESS)
15
+ parser.add_argument("-o", "--output", help=argparse.SUPPRESS)
16
16
  parser.add_argument("-k", "--key", action="append", help=argparse.SUPPRESS)
17
17
  parser.add_argument("-H", "--header", action="append", help=argparse.SUPPRESS)
18
+ parser.add_argument("-i", "--input", help=argparse.SUPPRESS)
19
+ parser.add_argument("-q", "--quality", help=argparse.SUPPRESS)
18
20
  parser.add_argument(
19
21
  "-h", "--help",
20
22
  action="help",
@@ -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}Download DASH or HLS streams with decryption keys. - {Fore.RED}[V0.3.3] \n{Fore.RESET}")
26
+ print(f"{Fore.YELLOW}[DDownloader] - {Fore.GREEN}A DRM-Protected Content Downloader - {Fore.RED}[V0.3.4] \n{Fore.RESET}")
27
27
 
28
28
  # =========================================================================================================== #
29
29
 
@@ -37,16 +37,19 @@ def clear_and_print():
37
37
  def display_help():
38
38
  """Display custom help message with emoji."""
39
39
  print(
40
- f"{Fore.WHITE}+" + "=" * 100 + f"+{Style.RESET_ALL}\n"
40
+ f"{Fore.RED}.++" + "" * 100 + f"++.{Style.RESET_ALL}\n"
41
41
  f"{Fore.CYAN}{'Option':<40}{'Description':<90}{Style.RESET_ALL}\n"
42
- f"{Fore.WHITE}+" + "=" * 100 + f"+{Style.RESET_ALL}\n"
43
- f" {Fore.GREEN}-u, --url{' ' * 22}{Style.RESET_ALL}URL of the manifest (mpd/m3u8) 🌐\n"
42
+ f"{Fore.RED}.++" + "" * 100 + f"++.{Style.RESET_ALL}\n"
43
+ f" {Fore.GREEN}-u, --url{' ' * 22}{Style.RESET_ALL}URL of the manifest (mpd/m3u8/ism) 🌐\n"
44
44
  f" {Fore.GREEN}-p, --proxy{' ' * 20}{Style.RESET_ALL}A proxy with protocol (http://ip:port) 🌍\n"
45
45
  f" {Fore.GREEN}-o, --output{' ' * 19}{Style.RESET_ALL}Name of the output file 💾\n"
46
46
  f" {Fore.GREEN}-k, --key{' ' * 22}{Style.RESET_ALL}Decryption key in KID:KEY format 🔑\n"
47
47
  f" {Fore.GREEN}-H, --header{' ' * 19}{Style.RESET_ALL}Custom HTTP headers (e.g., User-Agent: value) 📋\n"
48
+ f"{Fore.RED}.++" + "═" * 100 + f"++.{Style.RESET_ALL}\n"
49
+ f" {Fore.GREEN}-i, --input{' ' * 20}{Style.RESET_ALL}Input file for re-encoding. 📂\n"
50
+ f" {Fore.GREEN}-q, --quality{' ' * 18}{Style.RESET_ALL}Target quality: HD, FHD, UHD. 🎥\n"
48
51
  f" {Fore.GREEN}-h, --help{' ' * 21}{Style.RESET_ALL}Show this help message and exit ❓\n"
49
- f"{Fore.WHITE}+" + "=" * 100 + f"+{Style.RESET_ALL}\n"
52
+ f"{Fore.RED}.++" + "" * 100 + f"++.{Style.RESET_ALL}\n"
50
53
  )
51
54
 
52
55
  # =========================================================================================================== #
@@ -5,7 +5,7 @@ import platform
5
5
  import coloredlogs
6
6
  from colorama import Fore
7
7
 
8
- logger = logging.getLogger(Fore.RED + "+ DASH + ")
8
+ logger = logging.getLogger(Fore.RED + "+ DDOWNLOADER + ")
9
9
  coloredlogs.install(level='DEBUG', logger=logger)
10
10
 
11
11
  class DOWNLOADER:
@@ -15,31 +15,38 @@ class DOWNLOADER:
15
15
  self.proxy = None
16
16
  self.decryption_keys = []
17
17
  self.headers = []
18
- self.binary_path = self._get_binary_path()
18
+ self.binary_path = None
19
19
 
20
20
  # =========================================================================================================== #
21
21
 
22
- def _get_binary_path(self):
22
+ def _get_binary_path(self, binary_type):
23
23
  base_dir = os.path.dirname(os.path.abspath(__file__))
24
24
  project_root = os.path.dirname(base_dir)
25
25
  bin_dir = os.path.join(project_root, 'bin')
26
26
 
27
- binary_name = 'N_m3u8DL-RE.exe' if platform.system() == 'Windows' else 'N_m3u8DL-RE'
28
- binary = os.path.join(bin_dir, binary_name)
27
+ if binary_type == 'N_m3u8DL-RE':
28
+ binary_name = 'N_m3u8DL-RE.exe' if platform.system() == 'Windows' else 'N_m3u8DL-RE'
29
+ elif binary_type == 'ffmpeg':
30
+ binary_name = 'ffmpeg.exe' if platform.system() == 'Windows' else 'ffmpeg'
31
+ else:
32
+ raise ValueError(f"Unknown binary type: {binary_type}")
29
33
 
30
- if not os.path.isfile(binary):
31
- logger.error(f"Binary not found: {binary}")
32
- raise FileNotFoundError(f"Binary not found: {binary}")
34
+ binary_path = os.path.join(bin_dir, binary_name)
35
+
36
+ if not os.path.isfile(binary_path):
37
+ logger.error(f"Binary not found: {binary_path}")
38
+ raise FileNotFoundError(f"Binary not found: {binary_path}")
33
39
 
34
40
  if platform.system() == 'Linux':
35
- chmod_command = ['chmod', '+x', binary]
41
+ chmod_command = ['chmod', '+x', binary_path]
36
42
  try:
37
43
  subprocess.run(chmod_command, check=True)
38
- logger.info(Fore.CYAN + f"Set executable permission for: {binary}" + Fore.RESET)
44
+ logger.info(Fore.CYAN + f"Set executable permission for: {binary_path}" + Fore.RESET)
39
45
  except subprocess.CalledProcessError as e:
40
- logger.error(Fore.RED + f"Failed to set executable permissions for: {binary}" + Fore.RESET)
41
- raise RuntimeError(f"Could not set executable permissions for: {binary}") from e
42
- return binary
46
+ logger.error(Fore.RED + f"Failed to set executable permissions for: {binary_path}" + Fore.RESET)
47
+ raise RuntimeError(f"Could not set executable permissions for: {binary_path}") from e
48
+
49
+ return binary_path
43
50
 
44
51
  # =========================================================================================================== #
45
52
 
@@ -53,6 +60,7 @@ class DOWNLOADER:
53
60
  # =========================================================================================================== #
54
61
 
55
62
  def _build_command(self):
63
+ self.binary_path = self._get_binary_path("N_m3u8DL-RE")
56
64
  command = [
57
65
  self.binary_path,
58
66
  f'"{self.manifest_url}"',
@@ -88,10 +96,64 @@ class DOWNLOADER:
88
96
 
89
97
  if result == 0:
90
98
  logger.info(Fore.GREEN + "Downloaded successfully. Bye!" + Fore.RESET)
99
+ print(Fore.RED + "═" * 100 + Fore.RESET + "\n")
91
100
  else:
92
101
  pass
93
102
 
94
103
  except Exception as e:
95
104
  logger.error(Fore.RED + f"An unexpected error occurred: {e}" + Fore.RESET)
96
-
105
+
97
106
  # =========================================================================================================== #
107
+
108
+ def re_encode_content(self, input_file, quality, codec="libx265", crf=20, preset="medium", audio_bitrate="256k"):
109
+ resolutions = {
110
+ "HD": "1280:720",
111
+ "FHD": "1920:1080",
112
+ "UHD": "3840:2160"
113
+ }
114
+
115
+ quality = quality.upper()
116
+ if quality not in resolutions:
117
+ logger.error(f"Invalid quality '{quality}'. Choose from: HD, FHD, UHD.")
118
+ return None
119
+
120
+ input_file = os.path.abspath(input_file)
121
+ if not os.path.isfile(input_file):
122
+ logger.error(f"Input file does not exist: {input_file}")
123
+ return None
124
+
125
+ resolution = resolutions[quality]
126
+ base_name, ext = os.path.splitext(input_file)
127
+ output_file = os.path.abspath(f"{base_name}_{quality.lower()}{ext}")
128
+
129
+ self.binary_path = self._get_binary_path("ffmpeg")
130
+
131
+ logger.info(f"Re-encoding {input_file} to {quality} ({resolution}) using codec {codec}...")
132
+ logger.info(f"Output file: {output_file}")
133
+
134
+ os.makedirs(os.path.dirname(output_file), exist_ok=True)
135
+
136
+ # Build the ffmpeg command
137
+ command = [
138
+ self.binary_path,
139
+ "-i", f"\"{input_file}\"",
140
+ "-vf", f"scale={resolution}",
141
+ "-c:v", codec,
142
+ "-crf", str(crf),
143
+ "-preset", preset,
144
+ "-c:a", "aac",
145
+ "-b:a", audio_bitrate,
146
+ "-movflags", "+faststart",
147
+ f"\"{output_file}\""
148
+ ]
149
+
150
+ # Execute the command using `_execute_command`
151
+ self._execute_command(command)
152
+
153
+ # Check if output file exists to confirm success
154
+ if os.path.isfile(output_file):
155
+ logger.info(f"Re-encoding to {quality} completed successfully. Output saved to: {output_file}")
156
+ return output_file
157
+ else:
158
+ logger.error(f"Re-encoding failed. Output file not created: {output_file}")
159
+ return None
@@ -0,0 +1,130 @@
1
+ Metadata-Version: 2.2
2
+ Name: DDownloader
3
+ Version: 0.3.4
4
+ Summary: A downloader for DRM-protected content.
5
+ Author-email: ThatNotEasy <apidotmy@proton.me>
6
+ License: MIT License
7
+
8
+ Copyright (c) [2024] [DDownloader]
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following condition:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26
+ IN THE SOFTWARE.
27
+ Classifier: Programming Language :: Python :: 3
28
+ Classifier: Programming Language :: Python :: 3.7
29
+ Classifier: Programming Language :: Python :: 3.8
30
+ Classifier: Programming Language :: Python :: 3.9
31
+ Classifier: Programming Language :: Python :: 3.10
32
+ Classifier: Programming Language :: Python :: 3.11
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Requires-Python: >=3.7
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+
39
+ # DDownloader
40
+ _DDownloader is a powerful Python-based tool and library designed to download and decrypt DRM-protected content from DASH, HLS, and ISM manifests. It provides seamless support for encrypted media streams, extracting metadata and ensuring high compatibility with various DRM standards._
41
+
42
+ ## Features
43
+ - **Download and Decrypt**: Supports DASH, HLS, and ISM manifests with seamless decryption using provided keys.
44
+ - **Automatic Detection**: Automatically detects manifest types (.mpd, .m3u8, .ism) and processes accordingly.
45
+ - **Media Information Extraction**: Extracts metadata (e.g., codec, resolution, duration) for .mp4 files and saves it in a `logs/` directory.
46
+ - **CLI and Library Support**: Flexible usage via command-line or Python library.
47
+ - **Detailed Logging**: Provides real-time progress and logs errors for debugging.
48
+
49
+ ## Requirements
50
+
51
+ - **Python**: Version 3.7 or higher.
52
+ - **Required binaries**:
53
+
54
+ - `N_m3u8DL-RE` for downloading protected DRM content.
55
+ - `mp4decrypt` for decrypting protected media files.
56
+ - `ffmpeg` for re-encoding and muxer method
57
+ - a proper environment variable configuration for binaries.
58
+
59
+ ## Installation
60
+ - Install `DDownloader` using pip:
61
+
62
+ ```bash
63
+ pip install DDownloader
64
+ ```
65
+
66
+ ## Usage
67
+ - Download Content:
68
+
69
+ ```python
70
+ from DDownloader.modules.downloader import DOWNLOADER
71
+
72
+ downloader = DOWNLOADER()
73
+ downloader.manifest_url = "https://example.com/path/to/manifest" # DASH, HLS, or ISM manifest URL
74
+ downloader.output_name = "output.mp4" # Desired output file name
75
+ downloader.decryption_keys = ["12345:678910"] # Provide decryption keys if needed
76
+ downloader.download() # Start the downloading and decryption process
77
+ ```
78
+
79
+ - Extract Media Information:
80
+
81
+ ```python
82
+ from DDownloader.modules.helper import get_media_info
83
+
84
+ file_path = "downloads/example.mp4"
85
+ media_info = get_media_info(file_path)
86
+ print(media_info)
87
+ ```
88
+
89
+ - Re-encoding:
90
+
91
+ ```python
92
+ from DDownloader.modules.downloader import DOWNLOADER
93
+
94
+ re_encode = DOWNLOADER()
95
+ quality = ["HD", "FHD", "UHD"]
96
+ input_content = "downloads/example.mp4"
97
+ output_content = "/path/to/output.mp4"
98
+ re_encode.re_encode_content(input_file=input_content,quality=quality,codec="libx265",crf=20,preset="medium")
99
+ ```
100
+
101
+ ## CLI Usage
102
+ - Download Media
103
+
104
+ ```bash
105
+ DDownloader -u https://example.com/path/to/manifest -o output.mp4
106
+ ```
107
+
108
+ - Specify Decryption Keys
109
+
110
+ ```bash
111
+ DDownloader -u https://example.com/path/to/manifest -o output.mp4 -k 12345:678910
112
+ ```
113
+
114
+ - Re-encoding
115
+
116
+ ```bash
117
+ DDownloader -i "input.mp4" -o "output.mp4" -q "HD, FHD, UHD"
118
+ ```
119
+
120
+
121
+ - Display Help
122
+
123
+ ```bash
124
+ DDownloader -h
125
+ ```
126
+
127
+ - ![image](https://github.com/user-attachments/assets/5698d535-b818-4566-80f2-44f588646c0f)
128
+
129
+ ## THIS PROJECT STILL IN DEVELOPMENT
130
+ - Contributions are welcome! Feel free to open issues, create pull requests, or provide suggestions.
@@ -0,0 +1,14 @@
1
+ DDownloader/__init__.py,sha256=lVZwmZNId0Dai7XBQpxglmJtIxAtZplRHDsvobL2UNo,33
2
+ DDownloader/main.py,sha256=TQ58NNmigBGKGxMm-PAPL0RG5w8WOpBq0g4J6xQtoSg,5480
3
+ DDownloader/modules/__init__.py,sha256=UwIhDBoqqZjYW7sIs3nj3FDOHCGSvF-VwNKHwkA_fmI,21
4
+ DDownloader/modules/args_parser.py,sha256=Xc9ZzBu-QPFrBURIcq7rl8IJbrdPMy7EMWc-odVM2QU,1105
5
+ DDownloader/modules/banners.py,sha256=o178PwNttHPTlGvnciWG-0wU9NUa57o5sH6SMrd6Sec,5772
6
+ DDownloader/modules/downloader.py,sha256=PaM-khHiW5jIgfOR5_mMnjbJPWk5js3JKQTFBprQY8o,6031
7
+ DDownloader/modules/helper.py,sha256=b8h-h4_JqE02D26qBzSRW11LWhYUTnBkNIeYlWRO-ZY,5951
8
+ DDownloader/modules/streamlink.py,sha256=t7aaHCnINzSFybTmAd-dvfGFQkepFHJwrOBcNxyJviY,504
9
+ DDownloader-0.3.4.dist-info/LICENSE,sha256=cnjTim3BMjb9cVC_b3oS41FESKLuvuDsufVHa_ymZRw,1090
10
+ DDownloader-0.3.4.dist-info/METADATA,sha256=pZXGWFkU3dhIMevBrUGDHV-sU0OQMEiBh_cHqlxKdnU,4872
11
+ DDownloader-0.3.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
12
+ DDownloader-0.3.4.dist-info/entry_points.txt,sha256=tCZVr_SRONlWlMFsVKgcPj3lxe9gBtWD4GuWukMv75g,54
13
+ DDownloader-0.3.4.dist-info/top_level.txt,sha256=INZYgY1vEHV1MIWTPXKJL8j8-ZXjWb8u4XLuU3S8umY,12
14
+ DDownloader-0.3.4.dist-info/RECORD,,
@@ -1,89 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: DDownloader
3
- Version: 0.3.3
4
- Summary: A downloader for DRM-protected content.
5
- Author-email: ThatNotEasy <apidotmy@proton.me>
6
- License: MIT License
7
-
8
- Copyright (c) [2024] [DDownloader]
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following condition:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26
- IN THE SOFTWARE.
27
- Classifier: Programming Language :: Python :: 3
28
- Classifier: Programming Language :: Python :: 3.7
29
- Classifier: Programming Language :: Python :: 3.8
30
- Classifier: Programming Language :: Python :: 3.9
31
- Classifier: Programming Language :: Python :: 3.10
32
- Classifier: Programming Language :: Python :: 3.11
33
- Classifier: License :: OSI Approved :: MIT License
34
- Classifier: Operating System :: OS Independent
35
- Requires-Python: >=3.7
36
- Description-Content-Type: text/markdown
37
- License-File: LICENSE
38
-
39
- # DDownloader
40
- - DDownloader is a Python library to download HLS and DASH manifests and decrypt media files.
41
-
42
- # Features
43
- - Download HLS streams using N_m3u8DL-RE.
44
- - Download DASH manifests and segments.
45
- - Decrypt media files using mp4decrypt.
46
-
47
- # Footprints Notes:
48
- - It is better if you have set your own environment variables.
49
-
50
- # Installation
51
- Use the package manager pip to install DDownloader.
52
- ```pip install DDownloader```
53
-
54
- # Usage
55
-
56
- - Download DASH content using the library:
57
-
58
- ```python
59
- from DDownloader.dash_downloader import DASH
60
-
61
- dash_downloader = DASH()
62
- dash_downloader.manifest_url = "https://example.com/path/to/manifest.mpd" # Set your DASH manifest URL
63
- dash_downloader.output_name = "output.mp4" # Set desired output name
64
- dash_downloader.decryption_key = "12345:678910" # Set decryption key if needed
65
- dash_downloader.dash_downloader()
66
- ```
67
-
68
- - Download HLS content using the library:
69
- ```python
70
- from DDownloader.hls_downloader import HLS
71
-
72
- hls_downloader = HLS()
73
- hls_downloader.manifest_url = "https://example.com/path/to/manifest.m3u8" # Set your HLS manifest URL
74
- hls_downloader.output_name = "output.mp4" # Set desired output name
75
- hls_downloader.decryption_key = "12345:678910" # Set decryption key if needed
76
- hls_downloader.hls_downloader() # Call the downloader method
77
- ```
78
-
79
- - CLI Usage:
80
- ```bash
81
- DDownloader -h
82
- ```
83
-
84
- - ![image](https://github.com/user-attachments/assets/5abdee78-2bb3-45be-b784-c8de86dac237)
85
-
86
-
87
- ## THIS PROJECT STILL IN DEVELOPMENT
88
-
89
- - Contributions are welcome! Feel free to open issues, create pull requests, or provide suggestions.
@@ -1,14 +0,0 @@
1
- DDownloader/__init__.py,sha256=lVZwmZNId0Dai7XBQpxglmJtIxAtZplRHDsvobL2UNo,33
2
- DDownloader/main.py,sha256=DO7N-haY_jLt58zUvfQUIhayC4HvxMcc50k_ooYTKhM,4731
3
- DDownloader/modules/__init__.py,sha256=G3p10uWMvNQiA3ZdxMz0QlmyKECmnauS0Ym9wMP2tEI,21
4
- DDownloader/modules/args_parser.py,sha256=DK_oNrR2c8hZO8Bn4IscHbzfwzM8x4RbZ54fPeF9X5M,1001
5
- DDownloader/modules/banners.py,sha256=kEmaj6EeHAU-cQK8Z3PnFcSizXVtxOij-SHV9hHJBhg,5502
6
- DDownloader/modules/downloader.py,sha256=P3e2VsV6e-GTdBFl8TdWz51WhXkhgouKCOjU8-i2_P0,3629
7
- DDownloader/modules/helper.py,sha256=b8h-h4_JqE02D26qBzSRW11LWhYUTnBkNIeYlWRO-ZY,5951
8
- DDownloader/modules/streamlink.py,sha256=t7aaHCnINzSFybTmAd-dvfGFQkepFHJwrOBcNxyJviY,504
9
- DDownloader-0.3.3.dist-info/LICENSE,sha256=cnjTim3BMjb9cVC_b3oS41FESKLuvuDsufVHa_ymZRw,1090
10
- DDownloader-0.3.3.dist-info/METADATA,sha256=LSwR2XRuOF_0wpk6tF0FszzjGkE2bGKplL1DICllhsc,3529
11
- DDownloader-0.3.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
12
- DDownloader-0.3.3.dist-info/entry_points.txt,sha256=tCZVr_SRONlWlMFsVKgcPj3lxe9gBtWD4GuWukMv75g,54
13
- DDownloader-0.3.3.dist-info/top_level.txt,sha256=INZYgY1vEHV1MIWTPXKJL8j8-ZXjWb8u4XLuU3S8umY,12
14
- DDownloader-0.3.3.dist-info/RECORD,,