Compare commits

...

6 Commits
1.4.16 ... main

Author SHA1 Message Date
780b7f9287 Bump version: 1.4.18 → 1.4.19
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 4m10s
2025-09-05 14:33:19 +01:00
6750ee98e9 try fix cache issue 2025-09-05 14:31:37 +01:00
3d19ec2850 Bump version: 1.4.17 → 1.4.18
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m26s
2025-08-18 15:47:10 +01:00
a3e033b7e8 revert to correct key 2025-08-18 15:47:07 +01:00
32900d89e3 Bump version: 1.4.16 → 1.4.17
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m23s
2025-08-18 15:41:43 +01:00
0e4379d40d fix config key? 2025-08-18 15:41:36 +01:00
4 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "1.4.16"
current_version = "1.4.19"
commit = true
tag = true
tag_name = "{new_version}"

View File

@ -1 +1 @@
1.4.16
1.4.19

1
app.py
View File

@ -558,6 +558,7 @@ def _update_npm_config(credentials=None):
print("Unauthorized attempt to update NPM config.")
return False
credentials = session.get("auth_credentials")
# If credentials are provided, we skip the session check as the user has already been authenticated
npm = NginxProxyManager(app.config['NPM_HOST'], app.config['NPM_EMAIL'], app.config['NPM_PASSWORD'])
npm.login()

View File

@ -2,6 +2,7 @@ import requests
import json
from datetime import datetime
from typing import List, Dict, Any, Optional
import time
# Create a session object to reuse TCP connections
session = requests.Session()
@ -40,13 +41,16 @@ def _make_api_request(
def get_urls(base_url: str, auth: str) -> List[Dict[str, Any]]:
"""Retrieves user account streams from the API."""
response = _make_api_request("GET", base_url, auth, "getUserAccounts/streams")
endpoint = f"getUserAccounts/streams?_t={int(time.time())}"
response = _make_api_request("GET", base_url, auth, endpoint)
return response.json() if response else []
def get_user_accounts(base_url: str, auth: str) -> List[Dict[str, Any]]:
"""Retrieves user accounts from the API."""
response = _make_api_request("GET", base_url, auth, "getUserAccounts")
# Add cache-busting parameter to ensure fresh data
endpoint = f"getUserAccounts?_t={int(time.time())}"
response = _make_api_request("GET", base_url, auth, endpoint)
if not response:
return []