"""Entrypoint for ``python -m r36s_dlna_browser``."""

from __future__ import annotations

import sys


def main() -> None:
    from r36s_dlna_browser.app import Application

    app = Application()
    try:
        app.run()
    except KeyboardInterrupt:
        pass
    finally:
        app.shutdown()
    sys.exit(0)


if __name__ == "__main__":
    main()
