Displaying warning when no drive is mounted.

This commit is contained in:
Roland 2026-05-14 15:51:32 -06:00
parent 1951ca548d
commit da340a00b3
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
12 changed files with 301 additions and 4 deletions

13
main.py
View file

@ -346,6 +346,19 @@ async def perpetual_have_internet_worker():
logger.error('Failed to check if internet is up', exc_info=e)
@perpetual_signal(sleep=30)
async def perpetual_media_mounted_worker():
try:
if flags._destinations_have_mounted_storage():
flags.media_mounted.set()
# Re-check less often once all destinations are covered.
await asyncio.sleep(float(Seconds.minute * 5))
else:
flags.media_mounted.clear()
except Exception as e:
logger.error('Failed to check media mount status', exc_info=e)
@perpetual_signal(sleep=30)
async def perpetual_start_video_missing_comments_download():
from modules.videos.video.lib import get_missing_videos_comments