diff --git a/videoarchiver/processor/reactions.py b/videoarchiver/processor/reactions.py index 84aba27..a168cfc 100644 --- a/videoarchiver/processor/reactions.py +++ b/videoarchiver/processor/reactions.py @@ -7,13 +7,24 @@ from typing import List, Optional import discord # type: ignore from urllib.parse import urlparse -from ..processor.constants import ( - REACTIONS, - ReactionType, - get_reaction, - get_progress_emoji, -) -from ..database.video_archive_db import VideoArchiveDB +try: + # Try relative imports first + from ..processor.constants import ( + REACTIONS, + ReactionType, + get_reaction, + get_progress_emoji, + ) + from ..database.video_archive_db import VideoArchiveDB +except ImportError: + # Fall back to absolute imports if relative imports fail + from videoarchiver.processor.constants import ( + REACTIONS, + ReactionType, + get_reaction, + get_progress_emoji, + ) + from videoarchiver.database.video_archive_db import VideoArchiveDB logger = logging.getLogger("VideoArchiver")