diff --git a/API.md b/API.md index 2d2cbad3..9e02e5cf 100644 --- a/API.md +++ b/API.md @@ -342,18 +342,7 @@ Returns: "timezone": "America/Los_Angeles", "latitude": 37.386, "longitude": -122.0838, - "accuracy": 1000, - "net": [{"description": "Google Inc.", - "address": "1600 Amphitheatre Parkway", - "city": "Mountain View", - "state": "CA", - "postal_code": "94043", - "country": "United States", - ... - }, - {...} - ] - + "accuracy": 1000 } json: {"error": "The address 127.0.0.1 is not in the database." @@ -1716,6 +1705,34 @@ Returns: ``` +### get_whois_lookup +Get the ISP info for an IP address. + +``` +Required parameters: + ip_address + +Optional parameters: + None + +Returns: + json: + [{"description": "Google Inc.", + "address": "1600 Amphitheatre Parkway", + "city": "Mountain View", + "state": "CA", + "postal_code": "94043", + "country": "United States", + ... + }, + {...} + ] + json: + {"error": "The address 127.0.0.1 is not in the database." + } +``` + + ### import_database Import a PlexWatch or Plexivity database into PlexPy. diff --git a/data/interfaces/default/css/plexpy.css b/data/interfaces/default/css/plexpy.css index c77c4270..60d33cb6 100644 --- a/data/interfaces/default/css/plexpy.css +++ b/data/interfaces/default/css/plexpy.css @@ -3009,8 +3009,10 @@ a:hover .overlay-refresh-image { a:hover .overlay-refresh-image:hover { opacity: .9; } -#ip_error { +#ip_error, #isp_error { color: #aaa; display: none; text-align: center; + padding-top: 10px; + padding-bottom: 10px; } \ No newline at end of file diff --git a/data/interfaces/default/ip_address_modal.html b/data/interfaces/default/ip_address_modal.html index 39c5f310..2f7e263a 100644 --- a/data/interfaces/default/ip_address_modal.html +++ b/data/interfaces/default/ip_address_modal.html @@ -13,10 +13,10 @@