DDownloader 0.1.0__tar.gz → 0.1.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DDownloader
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A library to download HLS and DASH manifests and decrypt media files.
5
5
  Author: Pari Malam
6
6
  Author-email: shafiqsamsuri@serasi.tech
@@ -8,3 +8,4 @@ Classifier: Programming Language :: Python :: 3
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.9
11
+ Requires-Dist: requests
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: DDownloader
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A library to download HLS and DASH manifests and decrypt media files.
5
5
  Author: Pari Malam
6
6
  Author-email: shafiqsamsuri@serasi.tech
@@ -8,3 +8,4 @@ Classifier: Programming Language :: Python :: 3
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Operating System :: OS Independent
10
10
  Requires-Python: >=3.9
11
+ Requires-Dist: requests
@@ -0,0 +1,64 @@
1
+ # DDownloader
2
+
3
+ **DDownloader** is a Python library to download HLS and DASH manifests and decrypt media files.
4
+
5
+ ## Features
6
+ - Download HLS streams using `N_m3u8DL-RE`.
7
+ - Download DASH manifests and segments.
8
+ - Decrypt media files using `mp4decrypt`.
9
+
10
+ ## Installation
11
+
12
+ Use the package manager [pip](https://pypi.org/project/DDownloader/0.1.0/) to install DDownloader.
13
+
14
+ ```bash
15
+ pip install DDownloader==0.1.0
16
+ ```
17
+
18
+ ## Usage
19
+ - Download HLS content using the library:
20
+ ```python
21
+ from manifest_downloader import HLSDownloader
22
+
23
+ hls_downloader = HLSDownloader("https://example.com/playlist.m3u8")
24
+ hls_downloader.download_with_n_m3u8dl()
25
+ ```
26
+ - Download Dash content using the library:
27
+ ```python
28
+ from manifest_downloader import DASHDownloader
29
+
30
+ dash_downloader = DASHDownloader("https://example.com/manifest.mpd")
31
+ dash_downloader.download_with_n_m3u8dl()
32
+ ```
33
+ - To decrypt media files after downloading:
34
+ ```python
35
+ from manifest_downloader import DecryptDownloader
36
+
37
+ decrypt_downloader = DecryptDownloader()
38
+ decrypt_downloader.set_manifest_url("https://example.com/manifest.mpd")
39
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
40
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
41
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
42
+ ```
43
+ - Here's a complete example demonstrating the use of all features:
44
+ ```python
45
+ from manifest_downloader import HLSDownloader, DASHDownloader, DecryptDownloader
46
+
47
+ # HLS Download Example
48
+ hls_url = "https://example.com/playlist.m3u8"
49
+ hls_downloader = HLSDownloader(hls_url)
50
+ hls_downloader.download_with_n_m3u8dl()
51
+
52
+ # DASH Download Example
53
+ dash_url = "https://example.com/manifest.mpd"
54
+ dash_downloader = DASHDownloader(dash_url)
55
+ dash_downloader.download_with_n_m3u8dl()
56
+
57
+ # Decrypting Example
58
+ decrypt_downloader = DecryptDownloader()
59
+ decrypt_downloader.set_manifest_url(dash_url)
60
+ decrypt_downloader.set_decryption_key("0123456789abcdef0123456789abcdef")
61
+ decrypt_downloader.set_kid("1:0123456789abcdef0123456789abcdef")
62
+ decrypt_downloader.download_and_decrypt("encrypted_file.mp4", "decrypted_file.mp4")
63
+
64
+ ```
@@ -5,7 +5,7 @@ here = os.path.abspath(os.path.dirname(__file__))
5
5
 
6
6
  setup(
7
7
  name='DDownloader',
8
- version='0.1.0',
8
+ version='0.1.1',
9
9
  description='A library to download HLS and DASH manifests and decrypt media files.',
10
10
  author='Pari Malam',
11
11
  author_email='shafiqsamsuri@serasi.tech',
File without changes
File without changes