DDownloader 0.1.1__py3-none-any.whl → 0.1.3__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.
@@ -0,0 +1,77 @@
1
+ Metadata-Version: 2.1
2
+ Name: DDownloader
3
+ Version: 0.1.3
4
+ Summary: A library to download HLS and DASH manifests and decrypt media files.
5
+ Author: Pari Malam
6
+ Author-email: shafiqsamsuri@serasi.tech
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+
14
+ # DDownloader
15
+
16
+ **DDownloader** is a Python library to download HLS and DASH manifests and decrypt media files.
17
+
18
+ ## Features
19
+ - Download HLS streams using `N_m3u8DL-RE`.
20
+ - Download DASH manifests and segments.
21
+ - Decrypt media files using `mp4decrypt`.
22
+
23
+ ## Installation
24
+
25
+ Use the package manager [pip](https://pypi.org/project/DDownloader/0.1.3/) to install DDownloader.
26
+
27
+ ```bash
28
+ pip install DDownloader==0.1.3
29
+ ```
30
+
31
+ ## Usage
32
+ - Download HLS content using the library:
33
+ ```python
34
+ from DDownloader import HLSDownloader
35
+
36
+ hls_downloader = HLSDownloader("https://example.com/playlist.m3u8")
37
+ hls_downloader.download_with_n_m3u8dl()
38
+ ```
39
+ - Download Dash content using the library:
40
+ ```python
41
+ from DDownloader import DASHDownloader
42
+
43
+ dash_downloader = DASHDownloader("https://example.com/manifest.mpd")
44
+ dash_downloader.download_with_n_m3u8dl()
45
+ ```
46
+ - To decrypt media files after downloading:
47
+ ```python
48
+ from DDownloader import DecryptDownloader
49
+
50
+ decrypt_downloader = DecryptDownloader()
51
+ decrypt_downloader.set_manifest_url("https://example.com/manifest.mpd")
52
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
53
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
54
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
55
+ ```
56
+ - Here's a complete example demonstrating the use of all features:
57
+ ```python
58
+ from DDownloader import HLSDownloader, DASHDownloader, DecryptDownloader
59
+
60
+ # HLS Download Example
61
+ hls_url = "https://example.com/playlist.m3u8"
62
+ hls_downloader = HLSDownloader(hls_url)
63
+ hls_downloader.download_with_n_m3u8dl()
64
+
65
+ # DASH Download Example
66
+ dash_url = "https://example.com/manifest.mpd"
67
+ dash_downloader = DASHDownloader(dash_url)
68
+ dash_downloader.download_with_n_m3u8dl()
69
+
70
+ # Decrypting Example
71
+ decrypt_downloader = DecryptDownloader()
72
+ decrypt_downloader.set_manifest_url(dash_url)
73
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
74
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
75
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
76
+
77
+ ```
@@ -2,8 +2,7 @@ DDownloader/__init__.py,sha256=o3loo1Z5ZdvQYZIjgdgZarMVMIz5pHRRZ_x0IXYA6nU,135
2
2
  DDownloader/dash_downloader.py,sha256=MTaM_8lmLJ9nFQKY-Q_akr9qsT88nlCy1bODCBV1Io8,1730
3
3
  DDownloader/decrypt_downloader.py,sha256=LdjZkVgyPile6TRueFMNcRdZkkNVwoTL5qNp5i0De_c,1233
4
4
  DDownloader/hls_downloader.py,sha256=OiTw2xdva5eM1QaxKgcRCpvkMaBpdjQrwtYtwvLZm4g,1435
5
- DDownloader-0.1.1.dist-info/METADATA,sha256=feuHwUN1fRZ1onpD6nxIr8eiQYzIBEdnSAbCRy2V1VY,387
6
- DDownloader-0.1.1.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
7
- DDownloader-0.1.1.dist-info/entry_points.txt,sha256=No1ydBHwuyjy4I_ySPjMQAmZ-KMuuemGlEQvkv4rGyw,58
8
- DDownloader-0.1.1.dist-info/top_level.txt,sha256=INZYgY1vEHV1MIWTPXKJL8j8-ZXjWb8u4XLuU3S8umY,12
9
- DDownloader-0.1.1.dist-info/RECORD,,
5
+ DDownloader-0.1.3.dist-info/METADATA,sha256=hqx_gFsxL7XE_fD9Of1mp5IAre54ioOZvYaMHO35IbU,2487
6
+ DDownloader-0.1.3.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
7
+ DDownloader-0.1.3.dist-info/top_level.txt,sha256=INZYgY1vEHV1MIWTPXKJL8j8-ZXjWb8u4XLuU3S8umY,12
8
+ DDownloader-0.1.3.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: DDownloader
3
- Version: 0.1.1
4
- Summary: A library to download HLS and DASH manifests and decrypt media files.
5
- Author: Pari Malam
6
- Author-email: shafiqsamsuri@serasi.tech
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: License :: OSI Approved :: MIT License
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
11
- Requires-Dist: requests
12
-
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- d-downloader = manifest_downloader:main