diff --git a/app.py b/app.py index 93c7d6b..7adbafd 100644 --- a/app.py +++ b/app.py @@ -1508,6 +1508,17 @@ def index(): @app.route('/logo.png') def r_logo(): + logo = Path(__file__).with_name('PiCopy_Logo.png') + if not logo.exists(): + try: + data = _urlreq.urlopen(f'{RAW_BASE}/PiCopy_Logo.png', timeout=15).read() + logo.write_bytes(data) + except Exception: + return '', 404 + return send_file(logo, mimetype='image/png') + +@app.route('/favicon.ico') +def r_favicon(): logo = Path(__file__).with_name('PiCopy_Logo.png') if logo.exists(): return send_file(logo, mimetype='image/png') diff --git a/version.txt b/version.txt index ef3b2e2..52fe959 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.64 \ No newline at end of file +1.0.65 \ No newline at end of file