smart-dl 3.17.0__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.
- smart_dl-3.17.0/LICENSE +201 -0
- smart_dl-3.17.0/PKG-INFO +326 -0
- smart_dl-3.17.0/README.md +285 -0
- smart_dl-3.17.0/pyproject.toml +74 -0
- smart_dl-3.17.0/setup.cfg +4 -0
- smart_dl-3.17.0/smart_dl/__init__.py +139 -0
- smart_dl-3.17.0/smart_dl/__main__.py +28 -0
- smart_dl-3.17.0/smart_dl/cli.py +982 -0
- smart_dl-3.17.0/smart_dl/core/__init__.py +1 -0
- smart_dl-3.17.0/smart_dl/core/browser_cookies.py +91 -0
- smart_dl-3.17.0/smart_dl/core/config.py +92 -0
- smart_dl-3.17.0/smart_dl/core/cookie_diag.py +82 -0
- smart_dl-3.17.0/smart_dl/core/cookies.py +279 -0
- smart_dl-3.17.0/smart_dl/core/cookies_file.py +123 -0
- smart_dl-3.17.0/smart_dl/core/downloader.py +343 -0
- smart_dl-3.17.0/smart_dl/core/engine.py +345 -0
- smart_dl-3.17.0/smart_dl/core/history.py +313 -0
- smart_dl-3.17.0/smart_dl/core/installer.py +304 -0
- smart_dl-3.17.0/smart_dl/core/logging.py +67 -0
- smart_dl-3.17.0/smart_dl/core/manager.py +142 -0
- smart_dl-3.17.0/smart_dl/core/net_utils.py +131 -0
- smart_dl-3.17.0/smart_dl/core/network.py +32 -0
- smart_dl-3.17.0/smart_dl/core/packaging_utils.py +83 -0
- smart_dl-3.17.0/smart_dl/core/parallel.py +236 -0
- smart_dl-3.17.0/smart_dl/core/paths.py +144 -0
- smart_dl-3.17.0/smart_dl/core/portable.py +61 -0
- smart_dl-3.17.0/smart_dl/core/proxy.py +312 -0
- smart_dl-3.17.0/smart_dl/core/queue.py +349 -0
- smart_dl-3.17.0/smart_dl/core/recorder.py +87 -0
- smart_dl-3.17.0/smart_dl/core/retry.py +324 -0
- smart_dl-3.17.0/smart_dl/core/sub_updates.py +261 -0
- smart_dl-3.17.0/smart_dl/core/subscriptions.py +274 -0
- smart_dl-3.17.0/smart_dl/extractors/__init__.py +1 -0
- smart_dl-3.17.0/smart_dl/extractors/aparat.py +270 -0
- smart_dl-3.17.0/smart_dl/extractors/castbox.py +158 -0
- smart_dl-3.17.0/smart_dl/extractors/courses.py +255 -0
- smart_dl-3.17.0/smart_dl/extractors/education/__init__.py +216 -0
- smart_dl-3.17.0/smart_dl/extractors/education/common.py +183 -0
- smart_dl-3.17.0/smart_dl/extractors/education/coursera.py +197 -0
- smart_dl-3.17.0/smart_dl/extractors/education/faradars.py +101 -0
- smart_dl-3.17.0/smart_dl/extractors/education/maktabkhooneh.py +41 -0
- smart_dl-3.17.0/smart_dl/extractors/faradars_next.py +114 -0
- smart_dl-3.17.0/smart_dl/extractors/gallery.py +147 -0
- smart_dl-3.17.0/smart_dl/extractors/general.py +189 -0
- smart_dl-3.17.0/smart_dl/extractors/persian.py +255 -0
- smart_dl-3.17.0/smart_dl/extractors/podcast.py +451 -0
- smart_dl-3.17.0/smart_dl/extractors/podcast_meta.py +217 -0
- smart_dl-3.17.0/smart_dl/extractors/subtitles.py +194 -0
- smart_dl-3.17.0/smart_dl/extractors/torrent.py +195 -0
- smart_dl-3.17.0/smart_dl/extractors/youtube.py +413 -0
- smart_dl-3.17.0/smart_dl/lang/__init__.py +352 -0
- smart_dl-3.17.0/smart_dl/main.py +303 -0
- smart_dl-3.17.0/smart_dl/settings.py +152 -0
- smart_dl-3.17.0/smart_dl/ui/__init__.py +22 -0
- smart_dl-3.17.0/smart_dl/ui/logo.py +43 -0
- smart_dl-3.17.0/smart_dl/ui/progress.py +82 -0
- smart_dl-3.17.0/smart_dl/ui/themes.py +191 -0
- smart_dl-3.17.0/smart_dl/utils.py +282 -0
- smart_dl-3.17.0/smart_dl/web.py +364 -0
- smart_dl-3.17.0/smart_dl.egg-info/PKG-INFO +326 -0
- smart_dl-3.17.0/smart_dl.egg-info/SOURCES.txt +95 -0
- smart_dl-3.17.0/smart_dl.egg-info/dependency_links.txt +1 -0
- smart_dl-3.17.0/smart_dl.egg-info/entry_points.txt +2 -0
- smart_dl-3.17.0/smart_dl.egg-info/requires.txt +12 -0
- smart_dl-3.17.0/smart_dl.egg-info/top_level.txt +1 -0
- smart_dl-3.17.0/tests/test_browser_cookies.py +86 -0
- smart_dl-3.17.0/tests/test_castbox.py +59 -0
- smart_dl-3.17.0/tests/test_cleanup_safety.py +47 -0
- smart_dl-3.17.0/tests/test_cli_flags.py +44 -0
- smart_dl-3.17.0/tests/test_cookie_diag.py +69 -0
- smart_dl-3.17.0/tests/test_cookies_file.py +49 -0
- smart_dl-3.17.0/tests/test_core.py +231 -0
- smart_dl-3.17.0/tests/test_core_logic.py +55 -0
- smart_dl-3.17.0/tests/test_coursera.py +90 -0
- smart_dl-3.17.0/tests/test_coursera_auth.py +92 -0
- smart_dl-3.17.0/tests/test_education.py +178 -0
- smart_dl-3.17.0/tests/test_education_v39.py +74 -0
- smart_dl-3.17.0/tests/test_entry_point.py +26 -0
- smart_dl-3.17.0/tests/test_faradars_next.py +42 -0
- smart_dl-3.17.0/tests/test_installer_relaunch.py +70 -0
- smart_dl-3.17.0/tests/test_net_utils.py +59 -0
- smart_dl-3.17.0/tests/test_packaging_utils.py +48 -0
- smart_dl-3.17.0/tests/test_parallel.py +158 -0
- smart_dl-3.17.0/tests/test_parallel_safety.py +42 -0
- smart_dl-3.17.0/tests/test_paths.py +68 -0
- smart_dl-3.17.0/tests/test_platforms.py +31 -0
- smart_dl-3.17.0/tests/test_podcast_meta.py +87 -0
- smart_dl-3.17.0/tests/test_proxy.py +232 -0
- smart_dl-3.17.0/tests/test_proxy_socks.py +63 -0
- smart_dl-3.17.0/tests/test_queue_safety.py +24 -0
- smart_dl-3.17.0/tests/test_retry_outcomes.py +105 -0
- smart_dl-3.17.0/tests/test_sub_updates.py +75 -0
- smart_dl-3.17.0/tests/test_utils.py +140 -0
- smart_dl-3.17.0/tests/test_v391_fixes.py +110 -0
- smart_dl-3.17.0/tests/test_v392.py +42 -0
- smart_dl-3.17.0/tests/test_web_thumbnail.py +19 -0
- smart_dl-3.17.0/tests/test_web_ui.py +6 -0
smart_dl-3.17.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
smart_dl-3.17.0/PKG-INFO
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: smart-dl
|
|
3
|
+
Version: 3.17.0
|
|
4
|
+
Summary: Resilient media downloader for unstable networks — YouTube, Aparat, podcasts, and 1800+ sites
|
|
5
|
+
Author-email: Hellch!ef <alisadeghil@gmail.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/alisadeghiaghili/smart-dl
|
|
8
|
+
Project-URL: Repository, https://github.com/alisadeghiaghili/smart-dl
|
|
9
|
+
Project-URL: Issues, https://github.com/alisadeghiaghili/smart-dl/issues
|
|
10
|
+
Keywords: downloader,youtube,aparat,podcast,yt-dlp,iran,proxy
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
14
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
15
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Capture/Recording
|
|
26
|
+
Classifier: Topic :: Multimedia :: Video :: Capture
|
|
27
|
+
Requires-Python: >=3.8
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Requires-Dist: yt-dlp>=2024.1.0
|
|
31
|
+
Requires-Dist: rich>=13.0
|
|
32
|
+
Requires-Dist: requests>=2.28
|
|
33
|
+
Provides-Extra: web
|
|
34
|
+
Requires-Dist: streamlit>=1.30; extra == "web"
|
|
35
|
+
Provides-Extra: dev
|
|
36
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
37
|
+
Requires-Dist: mypy>=1.0; extra == "dev"
|
|
38
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
39
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
40
|
+
Dynamic: license-file
|
|
41
|
+
|
|
42
|
+
# SmartDL v3.17.0
|
|
43
|
+
|
|
44
|
+
> **bad connection? hold my retry loop.**
|
|
45
|
+
|
|
46
|
+
A resilient, multi-threaded media downloader built for unstable networks.
|
|
47
|
+
Designed for users behind weak connections and VPNs — SmartDL never gives up.
|
|
48
|
+
|
|
49
|
+
[](https://www.python.org/)
|
|
50
|
+
[](LICENSE)
|
|
51
|
+
[](https://buymeacoffee.com/alisadeghil)
|
|
52
|
+
[](https://github.com/alisadeghiaghili/smart-dl/releases)
|
|
53
|
+
|
|
54
|
+
> If SmartDL saved you from a broken download at 3am — you know what to do. ☕
|
|
55
|
+
> **[buymeacoffee.com/alisadeghil](https://buymeacoffee.com/alisadeghil)**
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Features
|
|
60
|
+
|
|
61
|
+
### Core
|
|
62
|
+
- **YouTube** — full format list (all resolutions, all audio tracks), video info panel
|
|
63
|
+
- **Aparat** — native support for Iranian video platform (videos + playlists)
|
|
64
|
+
- **1800+ sites** — TikTok, Instagram, Twitter/X, Reddit, Twitch, Vimeo, SoundCloud, and more
|
|
65
|
+
- **Podcasts** — direct MP3/M4A links, RSS feeds, SoundCloud, and more
|
|
66
|
+
|
|
67
|
+
### Network Resilience
|
|
68
|
+
- **Infinite retry with backoff** — waits and retries on network failure; never fails silently
|
|
69
|
+
- **Resume downloads** — picks up exactly where it left off after a disconnect
|
|
70
|
+
- **Multi-threaded fragments** — up to 16 concurrent fragment downloads
|
|
71
|
+
- **Smart error diagnosis** — explains what went wrong and how to fix it
|
|
72
|
+
- **Proxy support** — configure HTTP/SOCKS5 proxy at runtime (v2ray, Clash, Hiddify, Nekoray)
|
|
73
|
+
|
|
74
|
+
### Download Features
|
|
75
|
+
- **Video clipping** — download only a segment (`--clip 00:01:30-00:05:00`)
|
|
76
|
+
- **SponsorBlock** — skip sponsor segments automatically
|
|
77
|
+
- **Subtitles** — download, search, and embed subtitles in 50+ languages
|
|
78
|
+
- **Thumbnails** — download and embed video thumbnails
|
|
79
|
+
- **Metadata** — embed title, artist, and other metadata
|
|
80
|
+
- **Audio extraction** — MP3, M4A, Opus, FLAC, WAV with quality control
|
|
81
|
+
- **Multiple formats** — MP4, MKV, WebM, AVI output
|
|
82
|
+
|
|
83
|
+
### Smart Mode
|
|
84
|
+
- **Save preferences** — set default quality, format, audio settings once
|
|
85
|
+
- **Auto-apply** — all downloads use your saved preferences
|
|
86
|
+
|
|
87
|
+
### Queue & History
|
|
88
|
+
- **Download queue** — add multiple URLs, process sequentially or in parallel
|
|
89
|
+
- **Download history** — SQLite database with search, filter, and export
|
|
90
|
+
- **Subscriptions** — follow channels and auto-download new uploads
|
|
91
|
+
|
|
92
|
+
### Extra Features
|
|
93
|
+
- **Image galleries** — download from Pixiv, DeviantArt, ArtStation, Flickr, Imgur
|
|
94
|
+
- **Torrent/magnet** — download torrents via aria2c, transmission, or qBittorrent
|
|
95
|
+
- **Portable mode** — run from USB stick without touching system directories
|
|
96
|
+
- **12 CLI themes** — Dracula, Catppuccin, Nord, Tokyo Night, and more
|
|
97
|
+
- **Persian/Farsi UI** — full Persian language support
|
|
98
|
+
- **CLI automation** — 40+ flags for scripting and automation
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Requirements
|
|
103
|
+
|
|
104
|
+
- Python 3.8+
|
|
105
|
+
- [ffmpeg](https://ffmpeg.org/) — required for HD video (merge) and MP3 conversion
|
|
106
|
+
|
|
107
|
+
### Install ffmpeg (Windows)
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
winget install Gyan.FFmpeg
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Then close and reopen your terminal.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Installation
|
|
118
|
+
|
|
119
|
+
### Option 1: pip (recommended)
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
pip install smart-dl
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Option 2: Windows portable EXE (no Python install)
|
|
126
|
+
|
|
127
|
+
Download `SmartDL-v*-win-x64.zip` from the [Releases](https://github.com/alisadeghiaghili/smart-dl/releases) page, verify `SHA256SUMS.txt`, extract, and run `SmartDL.exe`.
|
|
128
|
+
|
|
129
|
+
**If Windows SmartScreen appears:** the EXE is not code-signed. Choose **More info → Run anyway**, or install via pip instead. Antivirus false positives on PyInstaller onedir bundles are common; the zip hash on the release page lets you confirm the file you downloaded.
|
|
130
|
+
|
|
131
|
+
### Option 3: clone and run
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
git clone https://github.com/alisadeghiaghili/smart-dl.git
|
|
135
|
+
cd smart-dl
|
|
136
|
+
python smart_dl.py
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Python dependencies (`yt-dlp`, `rich`, `requests`) are declared in `pyproject.toml`. Install with `pip install -e .` (or `pip install smart-dl`). Optional auto-install on first interactive run is available via `SMARTDL_AUTO_DEPS=1`.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Usage
|
|
144
|
+
|
|
145
|
+
### Interactive Mode
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
python smart_dl.py
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
On startup:
|
|
152
|
+
1. Choose your **output folder** (default: `~/Downloads/SmartDL`)
|
|
153
|
+
2. Configure a **proxy** if needed (or press Enter to skip)
|
|
154
|
+
3. Paste a **URL** (YouTube, Aparat, podcast, or any supported site)
|
|
155
|
+
4. Select **quality/format** from the menu
|
|
156
|
+
5. Download starts — with resume, retry, and progress bar
|
|
157
|
+
|
|
158
|
+
### URL Prompt Shortcuts
|
|
159
|
+
|
|
160
|
+
| Key | Action |
|
|
161
|
+
|-----|--------|
|
|
162
|
+
| `q` | Quit |
|
|
163
|
+
| `p` | Proxy settings |
|
|
164
|
+
| `s` | Download settings (retries, fragment threads) |
|
|
165
|
+
| `c` | Cookie settings (browser auth) |
|
|
166
|
+
| `i` | Install dependencies (ffmpeg, Node.js) |
|
|
167
|
+
|
|
168
|
+
### CLI Mode
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
# Basic download
|
|
172
|
+
smart-dl "https://youtube.com/watch?v=abc123"
|
|
173
|
+
|
|
174
|
+
# Quality and format
|
|
175
|
+
smart-dl URL -q best -o ~/Downloads
|
|
176
|
+
smart-dl URL --format mkv
|
|
177
|
+
|
|
178
|
+
# Video clipping
|
|
179
|
+
smart-dl URL --clip 00:01:30-00:05:00
|
|
180
|
+
|
|
181
|
+
# Audio extraction
|
|
182
|
+
smart-dl URL --audio-only --audio-format flac --audio-quality 320
|
|
183
|
+
|
|
184
|
+
# SponsorBlock
|
|
185
|
+
smart-dl URL --sponsorblock
|
|
186
|
+
|
|
187
|
+
# Subtitles
|
|
188
|
+
smart-dl URL --subtitles en,fa --embed-subs
|
|
189
|
+
|
|
190
|
+
# Thumbnails and metadata
|
|
191
|
+
smart-dl URL --thumbnail --embed-thumbnail --embed-metadata
|
|
192
|
+
|
|
193
|
+
# Batch download
|
|
194
|
+
smart-dl --batch urls.txt -o ~/Downloads
|
|
195
|
+
|
|
196
|
+
# Queue management
|
|
197
|
+
smart-dl --queue add URL1 URL2 URL3
|
|
198
|
+
smart-dl --queue start
|
|
199
|
+
smart-dl --queue pause
|
|
200
|
+
smart-dl --queue resume
|
|
201
|
+
smart-dl --queue list
|
|
202
|
+
smart-dl --queue stats
|
|
203
|
+
|
|
204
|
+
# Download history
|
|
205
|
+
smart-dl --history list --sort date
|
|
206
|
+
smart-dl --history search "keyword"
|
|
207
|
+
smart-dl --history stats
|
|
208
|
+
|
|
209
|
+
# Subscriptions
|
|
210
|
+
smart-dl --subscribe https://youtube.com/@channel
|
|
211
|
+
smart-dl --check-updates # list new uploads
|
|
212
|
+
# SMARTDL_SUBS_AUTODL=1 smart-dl --check-updates # also download them
|
|
213
|
+
smart-dl --my-subs
|
|
214
|
+
|
|
215
|
+
# Smart Mode
|
|
216
|
+
smart-dl --smart-mode on
|
|
217
|
+
smart-dl --smart-mode config # interactive settings
|
|
218
|
+
|
|
219
|
+
# Image galleries
|
|
220
|
+
smart-dl https://www.pixiv.net/artworks/12345
|
|
221
|
+
|
|
222
|
+
# Education courses (Maktabkhooneh / Faradars / Coursera)
|
|
223
|
+
smart-dl "https://www.coursera.org/learn/machine-learning"
|
|
224
|
+
smart-dl "https://www.coursera.org/learn/machine-learning" --max-lessons 5
|
|
225
|
+
smart-dl "https://maktabkhooneh.org/course/..." --all # remove the 20-lesson default cap
|
|
226
|
+
|
|
227
|
+
# Torrent
|
|
228
|
+
smart-dl --torrent magnet:?xt=urn:btih:...
|
|
229
|
+
|
|
230
|
+
# Themes
|
|
231
|
+
smart-dl --theme catppuccin
|
|
232
|
+
smart-dl --list-themes
|
|
233
|
+
|
|
234
|
+
# Persian UI
|
|
235
|
+
smart-dl --lang fa
|
|
236
|
+
|
|
237
|
+
# Proxy
|
|
238
|
+
smart-dl --proxy socks5://127.0.0.1:10808
|
|
239
|
+
|
|
240
|
+
# Portable mode
|
|
241
|
+
smart-dl --portable
|
|
242
|
+
|
|
243
|
+
# Podcasts
|
|
244
|
+
smart-dl "https://feeds.npr.org/510289/podcast.xml"
|
|
245
|
+
smart-dl "https://example.com/show.xml" --all-episodes
|
|
246
|
+
smart-dl "https://castbox.fm/channel/id2386830" --all-episodes
|
|
247
|
+
smart-dl "https://soundcloud.com/user/track"
|
|
248
|
+
|
|
249
|
+
# Quiet mode with file logging
|
|
250
|
+
smart-dl URL --quiet --log download.log
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Notes
|
|
254
|
+
|
|
255
|
+
- Failed downloads exit with code `1` and do **not** print a success message.
|
|
256
|
+
- History records every download outcome (`--history list` / `--history stats`).
|
|
257
|
+
- Portable mode (`--portable` or a `portable.txt` next to the app) stores config and databases under `./data`.
|
|
258
|
+
- Dependency auto-install is off by default. Set `SMARTDL_AUTO_DEPS=1` only if you want first-run `pip install`.
|
|
259
|
+
|
|
260
|
+
### Authenticated courses (Maktabkhooneh / Coursera / Faradars)
|
|
261
|
+
|
|
262
|
+
Paid or enrolled lessons need a logged-in browser session:
|
|
263
|
+
|
|
264
|
+
1. Sign in to the site in Firefox/Edge/Chrome.
|
|
265
|
+
2. In SmartDL interactive mode press `c` and pick that browser (or set cookie browser in config).
|
|
266
|
+
3. Re-run the course URL. yt-dlp and the Coursera items API will reuse those cookies.
|
|
267
|
+
|
|
268
|
+
Faradars does not publish public lesson lists for most courses — use a course URL after login.
|
|
269
|
+
|
|
270
|
+
**Alternative:** export a Netscape `cookies.txt` from an extension and pass it:
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
smart-dl --cookies-file path/to/cookies.txt "https://www.youtube.com/watch?v=..."
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Supported Platforms
|
|
279
|
+
|
|
280
|
+
| Platform | Support |
|
|
281
|
+
|----------|---------|
|
|
282
|
+
| YouTube (videos, playlists, channels, Shorts) | ✅ |
|
|
283
|
+
| Aparat (videos, playlists) | ✅ |
|
|
284
|
+
| TikTok / Instagram / Twitter / Reddit / Twitch / Vimeo / … | via yt-dlp |
|
|
285
|
+
| 1800+ yt-dlp sites | via yt-dlp |
|
|
286
|
+
| Direct MP3/M4A links | ✅ |
|
|
287
|
+
| RSS podcast feeds | ✅ |
|
|
288
|
+
| Filimo / Namasha / Radio Javan | metadata + yt-dlp |
|
|
289
|
+
| Maktabkhooneh / Faradars | course outline + lessons via cookies (paid = your logged-in session) |
|
|
290
|
+
| Coursera | course title + weekly modules (public); lecture items when browser cookies are available |
|
|
291
|
+
| Udemy / Hotmart / Teachable / … | **public metadata only** — paid/DRM content is not downloadable without your own authorized access and will usually fail |
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## Network Resilience
|
|
296
|
+
|
|
297
|
+
Built specifically for unstable connections:
|
|
298
|
+
|
|
299
|
+
- Resumes partial downloads automatically (no re-downloading from scratch)
|
|
300
|
+
- Exponential backoff retry (5s → 7s → 11s → ... up to 5 min)
|
|
301
|
+
- 30-minute retry duration cap (configurable)
|
|
302
|
+
- Fatal errors (ffmpeg missing, private video, copyright block) fail immediately
|
|
303
|
+
- Connection drops are silently handled; download continues when network returns
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## Disclaimer
|
|
308
|
+
|
|
309
|
+
SmartDL is intended for **personal use only**. Downloading copyrighted content without permission may violate YouTube's Terms of Service and applicable laws in your country. The author is not responsible for any misuse of this tool. Always respect content creators and copyright holders.
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## ☕ Support
|
|
314
|
+
|
|
315
|
+
SmartDL is free and always will be.
|
|
316
|
+
Sponsorships fund faster releases, better diagnostics, and long-term maintenance.
|
|
317
|
+
|
|
318
|
+
[](https://www.buymeacoffee.com/alisadeghil)
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## License
|
|
323
|
+
|
|
324
|
+
[Apache-2.0](LICENSE) — permissive with an explicit patent grant; proprietary tools may link without copyleft.
|
|
325
|
+
|
|
326
|
+
See [ROADMAP.md](ROADMAP.md) for planned features.
|