hbmartin commited on
Commit
9cbeeca
·
1 Parent(s): c3ecb1d

formatting

Browse files
Files changed (1) hide show
  1. pytube/__main__.py +8 -5
pytube/__main__.py CHANGED
@@ -316,11 +316,14 @@ class YouTube:
316
  :rtype: str
317
 
318
  """
319
- return int(self.player_config_args.get("length_seconds") or (
320
- self.player_config_args.get("player_response", {})
321
- .get("videoDetails", {})
322
- .get("lengthSeconds")
323
- ))
 
 
 
324
 
325
  @property
326
  def views(self) -> int:
 
316
  :rtype: str
317
 
318
  """
319
+ return int(
320
+ self.player_config_args.get("length_seconds")
321
+ or (
322
+ self.player_config_args.get("player_response", {})
323
+ .get("videoDetails", {})
324
+ .get("lengthSeconds")
325
+ )
326
+ )
327
 
328
  @property
329
  def views(self) -> int: