Simply message output without debug mode
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
import config
|
||||||
from .airav import Airav
|
from .airav import Airav
|
||||||
from .carib import Carib
|
from .carib import Carib
|
||||||
from .dlsite import Dlsite
|
from .dlsite import Dlsite
|
||||||
@@ -243,10 +244,11 @@ class Scraping:
|
|||||||
# check sources in func_mapping
|
# check sources in func_mapping
|
||||||
todel = []
|
todel = []
|
||||||
for s in sources:
|
for s in sources:
|
||||||
if not s in self.adult_func_mapping:
|
if not s in self.adult_func_mapping and config.getInstance().debug():
|
||||||
print('[!] Source Not Exist : ' + s)
|
print('[!] Source Not Exist : ' + s)
|
||||||
todel.append(s)
|
todel.append(s)
|
||||||
for d in todel:
|
for d in todel:
|
||||||
|
if config.getInstance().debug():
|
||||||
print('[!] Remove Source : ' + s)
|
print('[!] Remove Source : ' + s)
|
||||||
sources.remove(d)
|
sources.remove(d)
|
||||||
return sources
|
return sources
|
||||||
|
|||||||
Reference in New Issue
Block a user