diff --git a/app/arg_handler.py b/app/arg_handler.py index 18c8f4e..406c8e1 100644 --- a/app/arg_handler.py +++ b/app/arg_handler.py @@ -38,7 +38,8 @@ class HandleArgs: return if settings.IS_BUILD: - print("Catch me if you can! 😆💬") + print("Do the cha cha slide instead!") + print("https://www.youtube.com/watch?v=wZv62ShoStY") sys.exit(0) lastfm_key = settings.Keys.LASTFM_API diff --git a/app/migrations/v1_3_0/__init__.py b/app/migrations/v1_3_0/__init__.py index b1df7b2..d2f44d3 100644 --- a/app/migrations/v1_3_0/__init__.py +++ b/app/migrations/v1_3_0/__init__.py @@ -11,6 +11,8 @@ from app.migrations.base import Migration from app.settings import Paths from app.utils.decorators import coroutine from app.utils.hashing import create_hash +from app.telemetry import Telemetry +from app.utils.threading import background # playlists table # --------------- @@ -23,6 +25,11 @@ from app.utils.hashing import create_hash # 6: trackhashes +@background +def send_telemetry(): + Telemetry.send_app_installed() + + class RemoveSmallThumbnailFolder(Migration): """ Removes the small thumbnail folder. @@ -34,6 +41,7 @@ class RemoveSmallThumbnailFolder(Migration): @staticmethod def migrate(): + send_telemetry() thumbs_sm_path = Paths.get_sm_thumb_path() thumbs_lg_path = Paths.get_lg_thumb_path() diff --git a/app/telemetry.py b/app/telemetry.py index c726fe5..852244a 100644 --- a/app/telemetry.py +++ b/app/telemetry.py @@ -62,6 +62,13 @@ class Telemetry: if has_connection(): cls.posthog.capture(cls.user_id, event=f"v{Release.APP_VERSION}-{event}") + @classmethod + def send_app_installed(cls): + """ + Sends an event to posthog when the app is installed. + """ + cls.send_event("app-installed") + @classmethod def send_artist_visited(cls): """