formatting
Browse files- pytube/__main__.py +8 -5
pytube/__main__.py
CHANGED
@@ -316,11 +316,14 @@ class YouTube:
|
|
316 |
:rtype: str
|
317 |
|
318 |
"""
|
319 |
-
return int(
|
320 |
-
self.player_config_args.get("
|
321 |
-
|
322 |
-
|
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:
|