Repository: dandi/dandi-cli
Issue: etelemetry doesn't seem to run consistently

this line https://github.com/dandi/dandi-cli/blob/master/dandi/__init__.py#L44 returns `False` when dandi cli is called in the terminal.

```
{'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x107f7b250>, 
'__spec__': None, '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, 
'__file__': '/Users/satra/software/miniconda3/envs/dandi/bin/dandi', '__cached__': None,
 're': <module 're' from '/Users/satra/software/miniconda3/envs/dandi/lib/python3.7/re.py'>, 
'sys': <module 'sys' (built-in)>}
```

so possibly remove the if statement and call it anytime?

Changed files:
dandi/download.py, dandi/cli/command.py, dandi/__init__.py

diff --git a/dandi/__init__.py b/dandi/__init__.py
index 83b87da..a6caf46 100644
--- a/dandi/__init__.py
+++ b/dandi/__init__.py
@@ -36,18 +36,3 @@ lgr = get_logger()
 set_logger_level(lgr, os.environ.get("DANDI_LOG_LEVEL", logging.INFO))
 FORMAT = "%(asctime)-15s [%(levelname)8s] %(message)s"
 logging.basicConfig(format=FORMAT)
-
-# Run telemetry on import for interactive sessions, such as IPython, Jupyter
-# notebooks, Python REPL
-import __main__
-
-if not hasattr(__main__, "__file__"):
-    try:
-        import etelemetry
-
-        etelemetry.check_available_version("dandi/dandi-cli", __version__, lgr=lgr)
-    except Exception as exc:
-        lgr.warning(
-            "Failed to check for a more recent version available with etelemetry: %s",
-            exc,
-        )
diff --git a/dandi/cli/command.py b/dandi/cli/command.py
index bc6c1df..e4d4aa8 100644
--- a/dandi/cli/command.py
+++ b/dandi/cli/command.py
@@ -175,6 +175,15 @@ def main(log_level, pdb=False):
         from ..utils import setup_exceptionhook
 
         setup_exceptionhook()
+    try:
+        import etelemetry
+
+        etelemetry.check_available_version("dandi/dandi-cli", __version__, lgr=lgr)
+    except Exception as exc:
+        lgr.warning(
+            "Failed to check for a more recent version available with etelemetry: %s",
+            exc,
+        )
 
 
 #
diff --git a/dandi/download.py b/dandi/download.py
index 6bb07db..4a227e0 100644
--- a/dandi/download.py
+++ b/dandi/download.py
@@ -25,7 +25,7 @@ class _dandi_url_parser:
         "https?://[^/]*dandiarchive-org.netlify.app/.*": {"map_instance": "dandi"},
         # Girder-inflicted urls to folders etc based on the IDs
         # For those we will completely ignore domain - it will be "handled"
-        f"{server_grp}#.*/(?P<asset_type>folder|collection|dandiset-meta)/{id_grp}$": {},
+        f"{server_grp}#.*/(?P<asset_type>folder|collection|dandiset)/{id_grp}$": {},
         # Nothing special
         # Multiple items selected - will need custom handling of 'multiitem'
         f"{server_grp}#/folder/{id_regex}/selected(?P<multiitem>(/item\\\\+{id_grp})+)$": {},
@@ -33,7 +33,7 @@ class _dandi_url_parser:
         f"{server_grp}api/v1/(?P<asset_type>item)/{id_grp}/download$": {},
     }
     # We might need to remap some assert_types
-    map_asset_types = {"dandiset-meta": "folder"}
+    map_asset_types = {"dandiset": "folder"}
     # And lets create our mapping into girder instances from known_instances:
     map_to_girder = {}
     for girder, *_ in known_instances.values():
@@ -57,7 +57,7 @@ class _dandi_url_parser:
           https://gui.dandiarchive.org/#/folder/5dab0830f377535c7d96c2b4
           https://girder.dandiarchive.org/#collection/5daa5ca7e3489855a3027682/folder/5dab0830f377535c7d96c2b4
         - Dataset landing page metadata
-          https://gui.dandiarchive.org/#/dandiset-meta/5e6d5c6976569eb93f451e4f
+          https://gui.dandiarchive.org/#/dandiset/5e6d5c6976569eb93f451e4f
 
         Individual and multiple files:
           - dandi???