Skip to content

Commit f1ea12d

Browse files
MeowyPouncerWeekrow
and
Weekrow
authored
Updating site checkers, disabling suspended sites (soxoj#1266)
* Fixing checks for broken sites and repairing the ones that were changed * little tweaks * little tweaks --------- Co-authored-by: Weekrow <somewherelse@yandex.ru>
1 parent 01121d7 commit f1ea12d

File tree

4 files changed

+78
-44
lines changed

4 files changed

+78
-44
lines changed

cookies.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
pixabay.com FALSE / FALSE 0 anonymous_user_id c1e4ee09-5674-4252-aa94-8c47b1ea80ab
1111
pixabay.com FALSE / FALSE 1647214439 csrftoken vfetTSvIul7gBlURt6s985JNM18GCdEwN5MWMKqX4yI73xoPgEj42dbNefjGx5fr
1212
pixabay.com FALSE / FALSE 1647300839 client_width 1680
13-
pixabay.com FALSE / FALSE 748111764839 is_human 1
13+
pixabay.com FALSE / FALSE 748111764839 is_human 1

maigret/checking.py

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ def __init__(self, *args, **kwargs):
156156

157157

158158
class AiodnsDomainResolver(CheckerBase):
159+
if sys.platform == 'win32': # Temporary workaround for Windows
160+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
161+
159162
def __init__(self, *args, **kwargs):
160163
loop = asyncio.get_event_loop()
161164
self.logger = kwargs.get('logger', Mock())

maigret/maigret.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ async def main():
487487
arg_parser = setup_arguments_parser(settings)
488488
args = arg_parser.parse_args()
489489

490-
# Re-set loggging level based on args
490+
# Re-set logging level based on args
491491
if args.debug:
492492
log_level = logging.DEBUG
493493
elif args.info:

0 commit comments

Comments
 (0)