fix: am source thing
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
9d0dcb412b
commit
08b9492455
@ -403,6 +403,7 @@ class Page:
|
|||||||
self.LOGGER.info(f"{song.option_string} already exists, thus not downloading again.")
|
self.LOGGER.info(f"{song.option_string} already exists, thus not downloading again.")
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
source = None
|
||||||
if not found_on_disc:
|
if not found_on_disc:
|
||||||
for source in sources:
|
for source in sources:
|
||||||
r = self.download_song_to_target(source=source, target=temp_target, desc=song.option_string)
|
r = self.download_song_to_target(source=source, target=temp_target, desc=song.option_string)
|
||||||
|
@ -19,8 +19,13 @@ def _apply_color(msg: str, color: BColors) -> str:
|
|||||||
if not isinstance(msg, str):
|
if not isinstance(msg, str):
|
||||||
msg = str(msg)
|
msg = str(msg)
|
||||||
|
|
||||||
|
endc = BColors.ENDC.value
|
||||||
|
|
||||||
if color is BColors.ENDC:
|
if color is BColors.ENDC:
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
msg = msg.replace(BColors.ENDC.value, BColors.ENDC.value + color.value)
|
||||||
|
|
||||||
return color.value + msg + BColors.ENDC.value
|
return color.value + msg + BColors.ENDC.value
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user