Skip to content

Commit d7e9485

Browse files
committed
Bump v3.2.7
1 parent 02086f7 commit d7e9485

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = 'StreamingCommunity'
2-
__version__ = '3.2.5'
2+
__version__ = '3.2.7'
33
__author__ = 'Arrowar'
44
__description__ = 'A command-line program to download film'
55
__copyright__ = 'Copyright 2025'

StreamingCommunity/run.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
SHOW_TRENDING = config_manager.get_bool('DEFAULT', 'show_trending')
3434
NOT_CLOSE_CONSOLE = config_manager.get_bool('DEFAULT', 'not_close')
3535
TELEGRAM_BOT = config_manager.get_bool('DEFAULT', 'telegram_bot')
36+
BYPASS_DNS = config_manager.get_bool('DEFAULT', 'bypass_dns')
3637

3738

3839
# Variable
@@ -227,16 +228,16 @@ def main(script_id = 0):
227228
# Get all site hostname
228229
hostname_list = [hostname for site_info in config_manager.configSite.values() if (hostname := _extract_hostname(site_info.get('full_url')))]
229230

230-
if not internet_manager.check_dns_resolve(hostname_list):
231-
print()
232-
console.print("[red] ERROR: DNS configuration is required!")
233-
console.print("[red]The program cannot function correctly without proper DNS settings.")
234-
console.print("[yellow]Please configure one of these DNS servers:")
235-
console.print("[blue]• Cloudflare (1.1.1.1) 'https://developers.cloudflare.com/1.1.1.1/setup/windows/'")
236-
console.print("[blue]• Quad9 (9.9.9.9) 'https://docs.quad9.net/Setup_Guides/Windows/Windows_10/'")
237-
console.print("\n[yellow]⚠️ The program will not work until you configure your DNS settings.")
238-
239-
os._exit(0)
231+
if not BYPASS_DNS:
232+
if not internet_manager.check_dns_resolve(hostname_list):
233+
console.print("[red] ERROR: DNS configuration is required!")
234+
console.print("[red]The program cannot function correctly without proper DNS settings.")
235+
console.print("[yellow]Please configure one of these DNS servers:")
236+
console.print("[red]• Cloudflare (1.1.1.1) 'https://developers.cloudflare.com/1.1.1.1/setup/windows/'")
237+
console.print("[red]• Quad9 (9.9.9.9) 'https://docs.quad9.net/Setup_Guides/Windows/Windows_10/'")
238+
console.print("\n[yellow]⚠️ The program will not work until you configure your DNS settings.")
239+
240+
os._exit(0)
240241

241242
# Load search functions
242243
search_functions = load_search_functions()

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"not_close": false,
99
"telegram_bot": false,
1010
"download_site_data": true,
11-
"validate_github_config": true
11+
"validate_github_config": true,
12+
"bypass_dns": false
1213
},
1314
"OUT_FOLDER": {
1415
"root_path": "Video",

0 commit comments

Comments
 (0)