diff --git a/UTXOracle.py b/UTXOracle.py index 04c1890..1ff5f2b 100644 --- a/UTXOracle.py +++ b/UTXOracle.py @@ -128,6 +128,7 @@ def print_help(): -d YYYY/MM/DD Specify a UTC date to evaluate -p /path/to/dir Specify the data directory for blk files -rb Use last 144 recent blocks instead of date mode + --no-embed Replace the live-stream video with a link (no external requests) """ print(help_text) sys.exit(0) @@ -153,6 +154,10 @@ def print_help(): date_mode = False block_mode = True +#did user ask to replace the embedded live-stream video with a plain link? +#(so the saved/served page makes no external requests, e.g. for private viewing) +no_embed = "--no-embed" in sys.argv + # Look for bitcoin.conf or bitcoin_rw.conf conf_path = None conf_candidates = ["bitcoin.conf", "bitcoin_rw.conf"] @@ -1457,6 +1462,17 @@ def find_central_output(r2, price_min, price_max): bottom_note2 = "may have node dependent differences data on the chain tip" +# The footer promotes the live-updating oracle. By default it embeds the live +# stream; --no-embed swaps the iframe for a plain link so the page makes no +# external (YouTube/Google) requests. +live_url = "https://www.youtube.com/channel/UCXN7Xa_BF7dqLErzOmS-B7Q/live" +live_embed = f'' +live_link = f'
Watch the live UTXOracle on YouTube
' +live_section = f'''