Taylor Fox Dahlin
commited on
Docstring improvement (#980)
Browse files* Add docstring about max_retried to stream.download() method
- pytube/streams.py +4 -1
pytube/streams.py
CHANGED
@@ -229,8 +229,11 @@ class Stream:
|
|
229 |
(optional) Skip existing files, defaults to True
|
230 |
:type skip_existing: bool
|
231 |
:param timeout:
|
232 |
-
(optional) Request timeout length in seconds
|
233 |
:type timeout: int
|
|
|
|
|
|
|
234 |
:returns:
|
235 |
Path to the saved video
|
236 |
:rtype: str
|
|
|
229 |
(optional) Skip existing files, defaults to True
|
230 |
:type skip_existing: bool
|
231 |
:param timeout:
|
232 |
+
(optional) Request timeout length in seconds. Uses system default.
|
233 |
:type timeout: int
|
234 |
+
:param max_retries:
|
235 |
+
(optional) Number of retries to attempt after socket timeout. Defaults to 0.
|
236 |
+
:type max_retries: int
|
237 |
:returns:
|
238 |
Path to the saved video
|
239 |
:rtype: str
|