From 5751e2e3368640102b91e8d4653c4721d73e08e5 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Wed, 10 Apr 2024 13:23:42 -0700 Subject: [PATCH] urlcanon.aggressive for should_ytdlp, for now --- brozzler/ydl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brozzler/ydl.py b/brozzler/ydl.py index c8698f1..002ac70 100644 --- a/brozzler/ydl.py +++ b/brozzler/ydl.py @@ -61,7 +61,7 @@ def should_ytdlp(page, site): cluster = Cluster(["207.241.235.189"], protocol_version=5) session = cluster.connect("video") containing_page_query = "SELECT * from videos where scope=%s and containing_page_url=%s LIMIT 1" - future = session.execute_async(containing_page_query, [f"s:{ytdlp_seed}", ytdlp_url]) + future = session.execute_async(containing_page_query, [f"s:{ytdlp_seed}", str(urlcanon.aggressive(ytdlp_url))]) try: rows = future.result() except ReadTimeout: