change a few instances of lbry.io to lbry.com. fixes #2135

This commit is contained in:
Alex Grintsvayg 2019-06-04 10:23:04 -04:00
parent 7063138e3c
commit bae2939943
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
11 changed files with 17 additions and 17 deletions

View file

@ -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 - App: https://github.com/lbryio/lbry-desktop/releases
- Daemon: https://github.com/lbryio/lbry/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
--> -->

View file

@ -41,7 +41,7 @@ This project is MIT licensed. For the full license, see [LICENSE](LICENSE).
## Security ## 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 ## Contact

View file

@ -519,7 +519,7 @@ class Config(CLIConfig):
# servers # servers
reflector_servers = Servers("Reflector re-hosting servers", [ reflector_servers = Servers("Reflector re-hosting servers", [
('reflector.lbry.io', 5566) ('reflector.lbry.com', 5566)
]) ])
lbryum_servers = Servers("SPV wallet servers", [ lbryum_servers = Servers("SPV wallet servers", [
('lbryumx1.lbry.com', 50001), # US EAST ('lbryumx1.lbry.com', 50001), # US EAST

View file

@ -513,7 +513,7 @@ class UPnPComponent(Component):
pass pass
if external_ip == "0.0.0.0" or not external_ip: 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() external_ip = await utils.get_external_ip()
if self.external_ip and self.external_ip != 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) log.info("external ip changed from %s to %s", self.external_ip, external_ip)

View file

@ -123,8 +123,8 @@ class LBRYioFeed(MarketFeed):
def __init__(self): def __init__(self):
super().__init__( super().__init__(
"BTCLBC", "BTCLBC",
"lbry.io", "lbry.com",
"https://api.lbry.io/lbc/exchange_rate", "https://api.lbry.com/lbc/exchange_rate",
{}, {},
0.0, 0.0,
) )
@ -140,8 +140,8 @@ class LBRYioBTCFeed(MarketFeed):
def __init__(self): def __init__(self):
super().__init__( super().__init__(
"USDBTC", "USDBTC",
"lbry.io", "lbry.com",
"https://api.lbry.io/lbc/exchange_rate", "https://api.lbry.com/lbc/exchange_rate",
{}, {},
0.0, 0.0,
) )

View file

@ -4,7 +4,7 @@ from typing import NamedTuple, Tuple
def _create_url_regex(): def _create_url_regex():
# see https://spec.lbry.io/ # see https://spec.lbry.com/
def _named(name, regex): def _named(name, regex):
return "(?P<" + name + ">" + regex + ")" return "(?P<" + name + ">" + regex + ")"

View file

@ -75,7 +75,7 @@ def obfuscate(plain):
return rot13(base64.b64encode(plain).decode()) 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.""" """Attempts to open a socket to server:port and returns True if successful."""
log.debug('Checking connection to %s:%s', server, port) log.debug('Checking connection to %s:%s', server, port)
try: try:
@ -102,7 +102,7 @@ def check_connection(server="lbry.io", port=80, timeout=5) -> bool:
return False 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) 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 async def get_external_ip() -> typing.Optional[str]: # used if upnp is disabled or non-functioning
try: 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() response = await resp.json()
if response['success']: if response['success']:
return response['data']['ip'] return response['data']['ip']

View file

@ -24,6 +24,6 @@ theme:
- type: 'telegram' - type: 'telegram'
link: 'https://t.me/lbryofficial' link: 'https://t.me/lbryofficial'
- type: 'discord' - type: 'discord'
link: 'https://chat.lbry.io' link: 'https://chat.lbry.com'
- type: 'reddit' - type: 'reddit'
link: 'https://reddit.com/r/lbry' link: 'https://reddit.com/r/lbry'

View file

@ -47,7 +47,7 @@ async def main(blob_hash: str, url: str):
if __name__ == "__main__": # usage: python download_blob_from_peer.py <blob_hash> [host url:port] if __name__ == "__main__": # usage: python download_blob_from_peer.py <blob_hash> [host url:port]
url = 'reflector.lbry.io:5567' url = 'reflector.lbry.com:5567'
if len(sys.argv) > 2: if len(sys.argv) > 2:
url = sys.argv[2] url = sys.argv[2]
asyncio.run(main(sys.argv[1], url)) asyncio.run(main(sys.argv[1], url))

View file

@ -26,7 +26,7 @@ def extract_uris(response):
async def get_frontpage_uris(): async def get_frontpage_uris():
session = aiohttp.ClientSession() session = aiohttp.ClientSession()
try: 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: if response.status != 200:
print("API returned non 200 code!!") print("API returned non 200 code!!")
return return

View file

@ -9,8 +9,8 @@ setup(
name=__name__, name=__name__,
version=__version__, version=__version__,
author="LBRY Inc.", author="LBRY Inc.",
author_email="hello@lbry.io", author_email="hello@lbry.com",
url="https://lbry.io", url="https://lbry.com",
description="A decentralized media library and marketplace", description="A decentralized media library and marketplace",
long_description=open(README_PATH, encoding='utf-8').read(), long_description=open(README_PATH, encoding='utf-8').read(),
long_description_content_type="text/markdown", long_description_content_type="text/markdown",