updating domains - panuozzo77/StreamingCommunity GitHub Wiki
This document explains how to update the domains for the supported streaming sites in StreamingCommunity. As streaming sites frequently change their domain names to avoid blocking, keeping these domains updated is essential for the application to function properly.
StreamingCommunity offers two methods for updating the domains of supported websites:
-
Using Local Configuration: Create and maintain a local
domains.json
file - Using API (Legacy): Use the built-in API to fetch domain updates
This is the recommended method as it gives you full control over the domain configuration.
-
Create a domains.json file in the root directory of the project (same level as
config.json
) -
Add your domain configuration in the following format:
{ "altadefinizione": { "domain": "si", "full_url": "https://altadefinizione.si/" }, "animeunity": { "domain": "it", "full_url": "https://animeunity.it/" }, "animeworld": { "domain": "bz", "full_url": "https://www.animeworld.bz/" } }
-
Set
use_api
tofalse
in theDEFAULT
section of yourconfig.json
:{ "DEFAULT": { "use_api": false } }
For each site, you need to specify:
- domain: The domain extension or identifier (e.g., "si", "it", "bz")
- full_url: The complete URL including protocol and path
To find the current domains for streaming sites:
- Search engines: Search for the site name and look for recent results
- Social media: Check the official social media accounts of the sites
- Forums: Check forums like Reddit where users share updated domains
- Discord: Join the StreamingCommunity Discord for the latest domain information
The API-based domain updates are currently deprecated but still functional.
-
Set
use_api
totrue
in theDEFAULT
section of yourconfig.json
:{ "DEFAULT": { "use_api": true } }
-
Run the application - it will automatically fetch domain updates from the API
- The API may not always have the most up-to-date domains
- API updates depend on the maintainers keeping the API current
- Some sites may not be included in the API
The application includes an update script that can help keep domains current:
# On Windows
python update.py
# On Linux/macOS
python3 update.py
This script attempts to:
- Update the application code from GitHub
- Check for domain updates
- Apply any available updates
-
"Site not available" errors
- The domain may have changed
- Try updating your domains.json file with the latest domain
- Check if the site is actually down
-
"Connection refused" or timeout errors
- The site may be blocking requests from the application
- Try using a different domain for the same site
- Some sites may implement anti-scraping measures
-
"Invalid domain configuration" errors
- Check your domains.json syntax
- Ensure all required fields are present
- Verify the URLs are correctly formatted with protocol (http:// or https://)
If you want to add a new site to the legacy API:
- Message the maintainers on the Discord server
- Provide the site name and current domain
- The maintainers will evaluate and potentially add it to the API
- Regular Updates: Check for domain updates regularly
- Backup Your Configuration: Keep a backup of your working domains.json file
- Multiple Domains: For some sites, you might want to keep multiple alternative domains in case one becomes unavailable
- Community Resources: Stay connected with the community for the latest domain information
- Configuration Overview - Learn about general configuration options
- Common Issues - Troubleshoot other common problems
- Site-Specific Search - Learn about searching on individual sites