@@ -24,8 +24,8 @@ def check(plugin, passport, passport_type):
24
24
passport: username, email, phone
25
25
passport_type: passport type
26
26
'''
27
- if plugin ["request" ]["{}_url" .format (passport_type )]:
28
- url = plugin ["request" ]["{}_url" .format (passport_type )]. format ( passport )
27
+ if plugin ["request" ]["{0 }_url" .format (passport_type )]:
28
+ url = plugin ["request" ]["{0 }_url" .format (passport_type )]
29
29
else :
30
30
return
31
31
app_name = plugin ['information' ]['name' ]
@@ -46,7 +46,7 @@ def check(plugin, passport, passport_type):
46
46
print inRed ('\n [-] %s ::: %s\n ' % (app_name , str (e )))
47
47
return
48
48
if judge_yes_keyword in content and judge_no_keyword not in content :
49
- print u"[{}] {}" .format (category , ('%s (%s)' % (app_name , website )))
49
+ print u"[{0 }] {1 }" .format (category , ('%s (%s)' % (app_name , website )))
50
50
icon = plugin ['information' ]['icon' ]
51
51
desc = plugin ['information' ]['desc' ]
52
52
output_add (category , app_name , website , passport , passport_type , icon , desc )
@@ -70,7 +70,7 @@ def check(plugin, passport, passport_type):
70
70
print e , app_name
71
71
return
72
72
if judge_yes_keyword in content and judge_no_keyword not in content :
73
- print u"[{}] {}" .format (category , ('%s (%s)' % (app_name , website )))
73
+ print u"[{0 }] {1 }" .format (category , ('%s (%s)' % (app_name , website )))
74
74
icon = plugin ['information' ]['icon' ]
75
75
desc = plugin ['information' ]['desc' ]
76
76
output_add (category , app_name , website , passport , passport_type , icon , desc )
@@ -147,4 +147,4 @@ def main():
147
147
148
148
149
149
if __name__ == '__main__' :
150
- main ()
150
+ main ()
0 commit comments