From 1e7b9b3d8d1b810d69e8d24eee926db5ed68f1bb Mon Sep 17 00:00:00 2001 From: bytedream <bytedream@protonmail.com> Date: Sat, 23 Oct 2021 23:07:27 +0200 Subject: [PATCH] Fixed empty supported website --- README.md | 4 +--- build.py | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11e9072..5befceb 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,7 @@ Supported streaming providers (for a complete list of all supported websites, se <li><a href="https://vivo.st">vivo.st</a></li> <li><a href="https://vivo.sx">vivo.sx</a></li> <li><a href="https://voe.sx">voe.sx</a></li> - <li><a href="https://vupload.com">vupload.com</a></li> - <li><a href="https://"></a></li> - </ul> + <li><a href="https://vupload.com">vupload.com</a></li></ul> </details> --- diff --git a/build.py b/build.py index 4deff10..2a1e513 100644 --- a/build.py +++ b/build.py @@ -69,7 +69,8 @@ def write_readme(): # adds all available websites all_providers_regex = r'(?<=<ul>\n)(.+?)(?=</ul>)' - all_providers = '\n'.join(f'\t\t<li><a href="https://{provider}">{provider}</a></li>' for provider in open('SUPPORTED', 'r').read().split('\n')) + '\n\t' + domains = filter(lambda domain: domain != '', open('SUPPORTED', 'r').read().split('\n')) + all_providers = '\n'.join(f'\t\t<li><a href="https://{supported}">{supported}</a></li>' for supported in domains) readme = re.sub(all_providers_regex, all_providers, readme, flags=re.DOTALL) # adds all installed browsers to the tested browser section. i'm just to lazy to seek out all browser versions manually