regression
Browse files- pytube/__main__.py +2 -7
pytube/__main__.py
CHANGED
@@ -32,7 +32,7 @@ class YouTube(object):
|
|
32 |
|
33 |
def __init__(
|
34 |
self, url=None, defer_prefetch_init=False, on_progress_callback=None,
|
35 |
-
on_complete_callback=None,
|
36 |
):
|
37 |
"""Construct a :class:`YouTube <YouTube>`.
|
38 |
|
@@ -46,11 +46,6 @@ class YouTube(object):
|
|
46 |
:param func on_complete_callback:
|
47 |
(Optional) User defined callback function for stream download
|
48 |
complete events.
|
49 |
-
:param dict stream_monostate:
|
50 |
-
(Optional) A user defined stream monostate. This is necessary
|
51 |
-
for instances where instances of :class:`YouTube <YouTube>`
|
52 |
-
are created from a parent instance (necessary for playlist
|
53 |
-
support).
|
54 |
|
55 |
"""
|
56 |
self.js = None # js fetched by js_url
|
@@ -76,7 +71,7 @@ class YouTube(object):
|
|
76 |
|
77 |
# A dictionary shared between all instances of :class:`Stream <Stream>`
|
78 |
# (Borg pattern).
|
79 |
-
self.stream_monostate =
|
80 |
# user defined callback functions.
|
81 |
'on_progress': on_progress_callback,
|
82 |
'on_complete': on_complete_callback,
|
|
|
32 |
|
33 |
def __init__(
|
34 |
self, url=None, defer_prefetch_init=False, on_progress_callback=None,
|
35 |
+
on_complete_callback=None,
|
36 |
):
|
37 |
"""Construct a :class:`YouTube <YouTube>`.
|
38 |
|
|
|
46 |
:param func on_complete_callback:
|
47 |
(Optional) User defined callback function for stream download
|
48 |
complete events.
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
"""
|
51 |
self.js = None # js fetched by js_url
|
|
|
71 |
|
72 |
# A dictionary shared between all instances of :class:`Stream <Stream>`
|
73 |
# (Borg pattern).
|
74 |
+
self.stream_monostate = {
|
75 |
# user defined callback functions.
|
76 |
'on_progress': on_progress_callback,
|
77 |
'on_complete': on_complete_callback,
|