Corrected which property was called
This commit is contained in:
parent
01acaa3e51
commit
e318c27413
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class VoiceEntry:
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
fmt = '*{0.title}* uploaded by {0.uploader} and requested by {1.display_name}'
|
fmt = '*{0.title}* uploaded by {0.uploader} and requested by {1.display_name}'
|
||||||
duration = self.player.length
|
duration = self.length
|
||||||
if duration:
|
if duration:
|
||||||
fmt += ' [length: {0[0]}m {0[1]}s]'.format(divmod(round(duration, 0), 60))
|
fmt += ' [length: {0[0]}m {0[1]}s]'.format(divmod(round(duration, 0), 60))
|
||||||
return fmt.format(self.player, self.requester)
|
return fmt.format(self.player, self.requester)
|
||||||
|
|
Loading…
Reference in a new issue