https://github.com/nficano/pytube/issues/497
Nous l'avons créé sur la base de ce contenu.
Modifier le code source de main.py length(self) Correction de la valeur de retour
Changer avant return self.player_config_args['length_seconds']
Après le changement return self.player_config_args['player_response']['videoDetails']['lengthSeconds']
__main__.py
@property
def length(self):
"""Get the video length in seconds.
:rtype: str
"""
return self.player_config_args['length_seconds']
__main__.py
@property
def length(self):
"""Get the video length in seconds.
:rtype: str
"""
return self.player_config_args["player_response"]["videoDetails"]['lengthSeconds']
Recommended Posts