junepark678 / GIRRewrite

Blank line contains whitespace FLK-W293
Style
Minor
a year agoa year old
blank line contains whitespace
 408    @property
 409    def is_playing(self):
 410        return self.voice and self.current
 411     412    # Function for seeking
 413    async def seek(self, seconds, isLocal, isDirectLink):
 414        # Stop the current playing song
blank line contains whitespace
 281            durations.append(("0" if days and hours < 10 else "") + f"{hours}")
 282        durations.append(("0" if hours and minutes < 10 else "") + f"{minutes}")
 283        durations.append(("0" if seconds < 10 else "") + f"{seconds}")
 284         285        return ':'.join(durations)
 286
 287class Song:
blank line contains whitespace
 273        minutes, seconds = divmod(duration, 60)
 274        hours, minutes = divmod(minutes, 60)
 275        days, hours = divmod(hours, 24)
 276         277        durations = []
 278        if days > 0:
 279            durations.append(str(days))
blank line contains whitespace
 266            duration.append(f"{seconds} {loc['second']}")
 267
 268        return " ".join(duration)
 269     270    # Parse the duration to 00:00:00:00
 271    @staticmethod
 272    def parse_duration_raw(duration: int):
blank line contains whitespace
 156            durations.append(("0" if days and hours < 10 else "") + f"{hours}")
 157        durations.append(("0" if hours and minutes < 10 else "") + f"{minutes}")
 158        durations.append(("0" if seconds < 10 else "") + f"{seconds}")
 159         160        return ':'.join(durations)
 161
 162class YTDLSource(discord.PCMVolumeTransformer):