Add output select source in 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
|
||||||
@@ -118,7 +119,8 @@ class Scraping():
|
|||||||
json_data = {}
|
json_data = {}
|
||||||
for source in sources:
|
for source in sources:
|
||||||
try:
|
try:
|
||||||
print('[+]select', source)
|
if config.getInstance().debug():
|
||||||
|
print('[+]select', source)
|
||||||
try:
|
try:
|
||||||
data = self.general_func_mapping[source](name, self)
|
data = self.general_func_mapping[source](name, self)
|
||||||
if data == 404:
|
if data == 404:
|
||||||
@@ -150,7 +152,8 @@ class Scraping():
|
|||||||
json_data = {}
|
json_data = {}
|
||||||
for source in sources:
|
for source in sources:
|
||||||
try:
|
try:
|
||||||
print('[+]select', source)
|
if config.getInstance().debug():
|
||||||
|
print('[+]select', source)
|
||||||
try:
|
try:
|
||||||
data = self.adult_func_mapping[source](number, self)
|
data = self.adult_func_mapping[source](number, self)
|
||||||
if data == 404:
|
if data == 404:
|
||||||
|
|||||||
Reference in New Issue
Block a user