nficano commited on
Commit
c10c398
·
1 Parent(s): 69f5379

model cleanup

Browse files
Files changed (1) hide show
  1. pytube/models.py +4 -4
pytube/models.py CHANGED
@@ -46,7 +46,7 @@ class Video(object):
46
  self.audio_codec = audio_codec
47
  self.audio_bitrate = audio_bitrate
48
 
49
- def download(self, path='', chunk_size=8 * 1024, on_progress=None,
50
  on_finish=None, force_overwrite=False):
51
  """Downloads the video.
52
 
@@ -56,14 +56,14 @@ class Video(object):
56
  File size (in bytes) to write to buffer at a time. By default,
57
  this is set to 8 bytes.
58
  :param func on_progress:
59
- The function to be called every time the buffer is written
60
  to. Arguments passed are the bytes recieved, file size, and start
61
  datetime.
62
  :param func on_finish:
63
- The function to be called when the download is complete. Arguments
64
  passed are the full path to downloaded the file.
65
  :param bool force_overwrite:
66
- Force a file overwrite if conflicting one exists.
67
  """
68
  path = os.path.normpath(path)
69
  if os.path.isdir(path):
 
46
  self.audio_codec = audio_codec
47
  self.audio_bitrate = audio_bitrate
48
 
49
+ def download(self, path, chunk_size=8 * 1024, on_progress=None,
50
  on_finish=None, force_overwrite=False):
51
  """Downloads the video.
52
 
 
56
  File size (in bytes) to write to buffer at a time. By default,
57
  this is set to 8 bytes.
58
  :param func on_progress:
59
+ *Optional* function to be called every time the buffer is written
60
  to. Arguments passed are the bytes recieved, file size, and start
61
  datetime.
62
  :param func on_finish:
63
+ *Optional* callback function when download is complete. Arguments
64
  passed are the full path to downloaded the file.
65
  :param bool force_overwrite:
66
+ *Optional* force a file overwrite if conflicting one exists.
67
  """
68
  path = os.path.normpath(path)
69
  if os.path.isdir(path):