# Standard library imports # PyQt imports # Third party imports import vlc # type: ignore # App imports from classes import singleton @singleton class VLCManager: """ Singleton class to ensure we only ever have one vlc Instance """ def __init__(self) -> None: self.vlc_instance = vlc.Instance() def get_instance(self) -> vlc.Instance: return self.vlc_instance