mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-23 16:19:49 -05:00
black'd
This commit is contained in:
parent
baa33e3079
commit
b22349e281
@ -619,7 +619,8 @@ def brozzler_worker(argv=None):
|
|||||||
ytdlp_proxy_endpoints = [l for l in endpoints.readlines()]
|
ytdlp_proxy_endpoints = [l for l in endpoints.readlines()]
|
||||||
if ytdlp_proxy_endpoints:
|
if ytdlp_proxy_endpoints:
|
||||||
logging.info(
|
logging.info(
|
||||||
"running with ytdlp proxy endpoints file %s" % YTDLP_PROXY_ENDPOINTS_FILE
|
"running with ytdlp proxy endpoints file %s"
|
||||||
|
% YTDLP_PROXY_ENDPOINTS_FILE
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
ytdlp_proxy_endpoints = []
|
ytdlp_proxy_endpoints = []
|
||||||
|
@ -292,7 +292,9 @@ class BrozzlerWorker:
|
|||||||
site, page, status_code, self._skip_av_seeds
|
site, page, status_code, self._skip_av_seeds
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
ydl_outlinks = ydl.do_youtube_dl(self, site, page, self._ytdlp_proxy_endpoints)
|
ydl_outlinks = ydl.do_youtube_dl(
|
||||||
|
self, site, page, self._ytdlp_proxy_endpoints
|
||||||
|
)
|
||||||
metrics.brozzler_ydl_urls_checked.inc(1)
|
metrics.brozzler_ydl_urls_checked.inc(1)
|
||||||
outlinks.update(ydl_outlinks)
|
outlinks.update(ydl_outlinks)
|
||||||
except brozzler.ReachedLimit as e:
|
except brozzler.ReachedLimit as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user