Fixed empty supported website

This commit is contained in:
bytedream 2021-10-23 23:07:27 +02:00
parent fbb9a1d67b
commit 1e7b9b3d8d
2 changed files with 3 additions and 4 deletions

View File

@ -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>
---

View File

@ -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