androidtvremote2 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. {androidtvremote2-0.1.0/src/androidtvremote2.egg-info → androidtvremote2-0.1.1}/PKG-INFO +1 -1
  2. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/pyproject.toml +1 -1
  3. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/androidtv_remote.py +2 -1
  4. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1/src/androidtvremote2.egg-info}/PKG-INFO +1 -1
  5. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/LICENSE +0 -0
  6. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/README.md +0 -0
  7. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/setup.cfg +0 -0
  8. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/__init__.py +0 -0
  9. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/base.py +0 -0
  10. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/certificate_generator.py +0 -0
  11. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/const.py +0 -0
  12. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/exceptions.py +0 -0
  13. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/pairing.py +0 -0
  14. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/polo_pb2.py +0 -0
  15. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/polo_pb2.pyi +0 -0
  16. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/remote.py +0 -0
  17. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/remotemessage_pb2.py +0 -0
  18. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2/remotemessage_pb2.pyi +0 -0
  19. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2.egg-info/SOURCES.txt +0 -0
  20. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2.egg-info/dependency_links.txt +0 -0
  21. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2.egg-info/requires.txt +0 -0
  22. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/androidtvremote2.egg-info/top_level.txt +0 -0
  23. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/src/demo.py +0 -0
  24. {androidtvremote2-0.1.0 → androidtvremote2-0.1.1}/tests/test_androidtv_remote.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: androidtvremote2
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A Python library for interacting with Android TV using the Android TV Remote protocol v2
5
5
  Author-email: tronikos <tronikos@gmail.com>
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "androidtvremote2"
3
- version = "0.1.0"
3
+ version = "0.1.1"
4
4
  license = {text = "Apache-2.0"}
5
5
  authors = [
6
6
  { name="tronikos", email="tronikos@gmail.com" },
@@ -6,6 +6,7 @@ import asyncio
6
6
  from collections.abc import Callable
7
7
  import os
8
8
  import ssl
9
+ from urllib.parse import urlparse
9
10
 
10
11
  import aiofiles
11
12
  from cryptography import x509
@@ -397,7 +398,7 @@ class AndroidTVRemote:
397
398
  if not self._remote_message_protocol:
398
399
  LOGGER.debug("Called send_launch_app_command after disconnect")
399
400
  raise ConnectionClosed("Called send_launch_app_command after disconnect")
400
- prefix = "" if "://" in app_link_or_app_id else "market://launch?id="
401
+ prefix = "" if urlparse(app_link_or_app_id).scheme else "market://launch?id="
401
402
  self._remote_message_protocol.send_launch_app_command(
402
403
  f"{prefix}{app_link_or_app_id}"
403
404
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: androidtvremote2
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: A Python library for interacting with Android TV using the Android TV Remote protocol v2
5
5
  Author-email: tronikos <tronikos@gmail.com>
6
6
  License: Apache-2.0