From 99061ce7ec6d2194c346394a14910000a4ee3c72 Mon Sep 17 00:00:00 2001 From: "Niels G. W. Serup" Date: Tue, 1 Dec 2020 20:06:04 +0100 Subject: [PATCH] Host non-YouTube videos on a separate server --- scripts/generate-pages.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/generate-pages.py b/scripts/generate-pages.py index a99b377..63bade2 100755 --- a/scripts/generate-pages.py +++ b/scripts/generate-pages.py @@ -44,8 +44,6 @@ def setup_directory_structure(settings, base_dir, template_dir): site_new_dir = os.path.join(base_dir, 'site-new') shutil.rmtree(site_new_dir, ignore_errors=True) os.mkdir(site_new_dir) - extern_dir_site = os.path.join(site_new_dir, 'extern') - os.symlink(os.path.join('..', 'extern'), extern_dir_site) style = read(os.path.join(template_dir, 'style.css')) style_out = style.replace('{', '{{').replace('}', '}}') \ @@ -83,7 +81,7 @@ def generate_video_section_html(section_html, media): return html_out def extern_video(file_src): - url = '../extern/' + file_src + url = 'https://f000.backblazeb2.com/file/media-metanohi-name/media/' + file_src return '''\