mirror of
https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever.git
synced 2025-12-19 00:05:12 +08:00
Fix file name
This commit is contained in:
@@ -4,8 +4,6 @@ import re
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
|
|
||||||
os.chdir(os.getcwd())
|
|
||||||
|
|
||||||
# confs names in template/ and ../
|
# confs names in template/ and ../
|
||||||
# except sr_head and sr_foot
|
# except sr_head and sr_foot
|
||||||
confs_names = [
|
confs_names = [
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ for url in r.text.split("\n")[:-1]:
|
|||||||
|
|
||||||
# write files
|
# write files
|
||||||
file_proxy = open('resultant/top50_proxy.list', 'w', encoding='utf-8')
|
file_proxy = open('resultant/top50_proxy.list', 'w', encoding='utf-8')
|
||||||
file_direct = open('resultant/top50_direct_with_Apple.list', 'w', encoding='utf-8')
|
file_direct = open('resultant/top50_direct.list', 'w', encoding='utf-8')
|
||||||
|
|
||||||
now_time = time.strftime("%Y-%m-%d %H:%M:%S")
|
now_time = time.strftime("%Y-%m-%d %H:%M:%S")
|
||||||
file_proxy.write('# top50 proxy list update time: ' + now_time + '\n')
|
file_proxy.write('# top50 proxy list update time: ' + now_time + '\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user