A few minor tweaks in preparation for release.

This commit is contained in:
Storm Dragon
2025-07-13 15:31:57 -04:00
2 changed files with 7 additions and 3 deletions

View File

@ -147,8 +147,12 @@ class command:
curl_match = re.search( curl_match = re.search(
r"(\d+\s+\d+\s+\d+\s+\d+.*?(?:k|M|G)?.*?--:--:--|Speed)", text r"(\d+\s+\d+\s+\d+\s+\d+.*?(?:k|M|G)?.*?--:--:--|Speed)", text
) )
# Pattern 1e: General transfer progress (size, rate, time patterns)
transfer_match = re.search(
r"\d+\s+\d+[kMGT]?\s+\d+\s+\d+[kMGT]?.*?\d+\.\d+[kMGT].*?\d+:\d+:\d+", text
)
if time_match or token_match or dd_match or curl_match: if time_match or token_match or dd_match or curl_match or transfer_match:
# For non-percentage progress, use a single activity beep every 2 # For non-percentage progress, use a single activity beep every 2
# seconds # seconds
if ( if (
@ -183,7 +187,7 @@ class command:
# Pattern 3: Progress bars ([#### ], [====> ], etc.) # Pattern 3: Progress bars ([#### ], [====> ], etc.)
# Improved pattern to avoid matching IRC channels like [#channel] # Improved pattern to avoid matching IRC channels like [#channel]
bar_match = re.search(r"\[([#=\-\*]+)([\s\.]*)\]", text) bar_match = re.search(r"\[([#=\*]+)([\s\.\-]*)\]", text)
if bar_match: if bar_match:
filled = len(bar_match.group(1)) filled = len(bar_match.group(1))
unfilled = len(bar_match.group(2)) unfilled = len(bar_match.group(2))

View File

@ -4,5 +4,5 @@
# Fenrir TTY screen reader # Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributors. # By Chrys, Storm Dragon, and contributors.
version = "2025.07.09" version = "2025.07.13"
code_name = "master" code_name = "master"