-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync.py
More file actions
27 lines (22 loc) · 747 Bytes
/
sync.py
File metadata and controls
27 lines (22 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# This source code is a part of Project Violet.
# Copyright (C) 2021. violet-team. Licensed under the Apache-2.0 License.
def replace(gg):
gg = gg.replace('"use strict";', '')
gg = gg.replace("'use strict';", '')
gg = gg.replace('return 4;', 'return o;')
return gg
def syncv3():
f = open('hitomi_get_image_list_v3_model.js', 'r')
gg = open('gg.js', 'r')
gv = open('gv.js', 'r')
gg_m = open('0.txt', 'r')
gg_b = open('1.txt', 'r')
r = f.read().replace("%%1%", replace(gg.read()))
r = r.replace("%%2%", gv.read())
r = r.replace("%%gg.m%", gg_m.read())
r = r.replace("%%gg.b%", gg_b.read())
f.close()
f = open('hitomi_get_image_list_v3.js', 'w+')
f.write(r)
f.close()
syncv3()