From bae2939943c4589904acd767b358dd44e16b595f Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Tue, 4 Jun 2019 10:23:04 -0400 Subject: [PATCH] change a few instances of lbry.io to lbry.com. fixes #2135 --- .github/ISSUE_TEMPLATE.md | 2 +- README.md | 2 +- lbrynet/conf.py | 2 +- lbrynet/extras/daemon/Components.py | 2 +- lbrynet/extras/daemon/exchange_rate_manager.py | 8 ++++---- lbrynet/schema/url.py | 2 +- lbrynet/utils.py | 6 +++--- mkdocs.yml | 2 +- scripts/download_blob_from_peer.py | 2 +- scripts/time_to_first_byte.py | 2 +- setup.py | 4 ++-- 11 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 76e7a7135..8dd467733 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -7,7 +7,7 @@ Before reporting any issues, please make sure that you're using the latest versi - App: https://github.com/lbryio/lbry-desktop/releases - Daemon: https://github.com/lbryio/lbry/releases -We are also available on Discord at https://chat.lbry.io +We are also available on Discord at https://chat.lbry.com --> diff --git a/README.md b/README.md index 6268a823b..c487e0e42 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ This project is MIT licensed. For the full license, see [LICENSE](LICENSE). ## Security -We take security seriously. Please contact security@lbry.com regarding any security issues. [Our GPG key is here](https://lbry.io/faq/gpg-key) if you need it. +We take security seriously. Please contact security@lbry.com regarding any security issues. [Our GPG key is here](https://lbry.com/faq/gpg-key) if you need it. ## Contact diff --git a/lbrynet/conf.py b/lbrynet/conf.py index 11c2d50e9..78602187d 100644 --- a/lbrynet/conf.py +++ b/lbrynet/conf.py @@ -519,7 +519,7 @@ class Config(CLIConfig): # servers reflector_servers = Servers("Reflector re-hosting servers", [ - ('reflector.lbry.io', 5566) + ('reflector.lbry.com', 5566) ]) lbryum_servers = Servers("SPV wallet servers", [ ('lbryumx1.lbry.com', 50001), # US EAST diff --git a/lbrynet/extras/daemon/Components.py b/lbrynet/extras/daemon/Components.py index 73a7be8c3..ad12e9e7f 100644 --- a/lbrynet/extras/daemon/Components.py +++ b/lbrynet/extras/daemon/Components.py @@ -513,7 +513,7 @@ class UPnPComponent(Component): pass if external_ip == "0.0.0.0" or not external_ip: - log.warning("unable to get external ip from UPnP, checking lbry.io fallback") + log.warning("unable to get external ip from UPnP, checking lbry.com fallback") external_ip = await utils.get_external_ip() if self.external_ip and self.external_ip != external_ip: log.info("external ip changed from %s to %s", self.external_ip, external_ip) diff --git a/lbrynet/extras/daemon/exchange_rate_manager.py b/lbrynet/extras/daemon/exchange_rate_manager.py index 952396b10..31ddfc1a4 100644 --- a/lbrynet/extras/daemon/exchange_rate_manager.py +++ b/lbrynet/extras/daemon/exchange_rate_manager.py @@ -123,8 +123,8 @@ class LBRYioFeed(MarketFeed): def __init__(self): super().__init__( "BTCLBC", - "lbry.io", - "https://api.lbry.io/lbc/exchange_rate", + "lbry.com", + "https://api.lbry.com/lbc/exchange_rate", {}, 0.0, ) @@ -140,8 +140,8 @@ class LBRYioBTCFeed(MarketFeed): def __init__(self): super().__init__( "USDBTC", - "lbry.io", - "https://api.lbry.io/lbc/exchange_rate", + "lbry.com", + "https://api.lbry.com/lbc/exchange_rate", {}, 0.0, ) diff --git a/lbrynet/schema/url.py b/lbrynet/schema/url.py index 14edd150f..ef3ccf5e5 100644 --- a/lbrynet/schema/url.py +++ b/lbrynet/schema/url.py @@ -4,7 +4,7 @@ from typing import NamedTuple, Tuple def _create_url_regex(): - # see https://spec.lbry.io/ + # see https://spec.lbry.com/ def _named(name, regex): return "(?P<" + name + ">" + regex + ")" diff --git a/lbrynet/utils.py b/lbrynet/utils.py index 8bc8b7ae1..e8ec4083b 100644 --- a/lbrynet/utils.py +++ b/lbrynet/utils.py @@ -75,7 +75,7 @@ def obfuscate(plain): return rot13(base64.b64encode(plain).decode()) -def check_connection(server="lbry.io", port=80, timeout=5) -> bool: +def check_connection(server="lbry.com", port=80, timeout=5) -> bool: """Attempts to open a socket to server:port and returns True if successful.""" log.debug('Checking connection to %s:%s', server, port) try: @@ -102,7 +102,7 @@ def check_connection(server="lbry.io", port=80, timeout=5) -> bool: return False -async def async_check_connection(server="lbry.io", port=80, timeout=5) -> bool: +async def async_check_connection(server="lbry.com", port=80, timeout=5) -> bool: return await asyncio.get_event_loop().run_in_executor(None, check_connection, server, port, timeout) @@ -271,7 +271,7 @@ async def aiohttp_request(method, url, **kwargs) -> typing.AsyncContextManager[a async def get_external_ip() -> typing.Optional[str]: # used if upnp is disabled or non-functioning try: - async with aiohttp_request("get", "https://api.lbry.io/ip") as resp: + async with aiohttp_request("get", "https://api.lbry.com/ip") as resp: response = await resp.json() if response['success']: return response['data']['ip'] diff --git a/mkdocs.yml b/mkdocs.yml index ccaf8a094..bad4244cc 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -24,6 +24,6 @@ theme: - type: 'telegram' link: 'https://t.me/lbryofficial' - type: 'discord' - link: 'https://chat.lbry.io' + link: 'https://chat.lbry.com' - type: 'reddit' link: 'https://reddit.com/r/lbry' diff --git a/scripts/download_blob_from_peer.py b/scripts/download_blob_from_peer.py index a145de700..ab23883b5 100644 --- a/scripts/download_blob_from_peer.py +++ b/scripts/download_blob_from_peer.py @@ -47,7 +47,7 @@ async def main(blob_hash: str, url: str): if __name__ == "__main__": # usage: python download_blob_from_peer.py [host url:port] - url = 'reflector.lbry.io:5567' + url = 'reflector.lbry.com:5567' if len(sys.argv) > 2: url = sys.argv[2] asyncio.run(main(sys.argv[1], url)) diff --git a/scripts/time_to_first_byte.py b/scripts/time_to_first_byte.py index b762f44ba..d8f44b1e5 100644 --- a/scripts/time_to_first_byte.py +++ b/scripts/time_to_first_byte.py @@ -26,7 +26,7 @@ def extract_uris(response): async def get_frontpage_uris(): session = aiohttp.ClientSession() try: - response = await session.get("https://api.lbry.io/file/list_homepage", timeout=10.0) + response = await session.get("https://api.lbry.com/file/list_homepage", timeout=10.0) if response.status != 200: print("API returned non 200 code!!") return diff --git a/setup.py b/setup.py index c0a41efaf..6270727c1 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ setup( name=__name__, version=__version__, author="LBRY Inc.", - author_email="hello@lbry.io", - url="https://lbry.io", + author_email="hello@lbry.com", + url="https://lbry.com", description="A decentralized media library and marketplace", long_description=open(README_PATH, encoding='utf-8').read(), long_description_content_type="text/markdown",