瀏覽代碼

아몰라

Surplus_Up (2DU) 7 年之前
父節點
當前提交
bb412becc6
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app.py
  2. 1 1
      set_mark/namu.py

+ 1 - 1
app.py

@@ -192,7 +192,7 @@ else:
     else:
         rep_port = rep_data[0][0]
     
-print('Port : ' + str(rep_port))
+        print('Port : ' + str(rep_port))
 
 try:
     if not os.path.exists('robots.txt'):

+ 1 - 1
set_mark/namu.py

@@ -580,7 +580,7 @@ def namu(conn, data, title, main_num):
         
         backlink += [[title, main_link, 'redirect']]
         
-        data = re.sub('\n#(?:redirect|넘겨주기) (?P<in>(?:(?!\n).)+)\n', '<meta http-equiv="refresh" content="0; url=/w/' + tool.url_pas(main_link) + '?froms=' + tool.url_pas(title) + other_link + '">', data, 1)
+        data = re.sub('\n#(?:redirect|넘겨주기) (?P<in>(?:(?!\n).)+)\n', '<script>location.href="/w/' + tool.url_pas(main_link) + '?froms=' + tool.url_pas(title) + other_link + '";</script>', data, 1)
 
     # [목차(없음)] 처리
     if not re.search('\[(?:목차|tableofcontents)\((?:없음|no)\)\]\n', data):