That if chain is horrendous. You should have a config json file with an array of links and then use a for and check for each of them.
The advantage of having a config file is that it’s easily for others to see everything that can be changed dynamically without touching the code, and it’s much easier to maintain forks that change or extend the configurable behaviour.
Hard coding shit is bad because it’s actually harder to maintain. No programmer worth their salt has difficulty checking the json file that has the configuration for X list, hard coding an if chain is bad coding.
That if chain is horrendous. You should have a config json file with an array of links and then use a for and check for each of them.
The advantage of having a config file is that it’s easily for others to see everything that can be changed dynamically without touching the code, and it’s much easier to maintain forks that change or extend the configurable behaviour.
Hard coding shit is bad because it’s actually harder to maintain. No programmer worth their salt has difficulty checking the json file that has the configuration for X list, hard coding an if chain is bad coding.