do not try to fetch 'http-metadata' for ytdl URLs (#3257)

This commit is contained in:
Mike Fährmann
2022-11-19 11:41:06 +01:00
parent 133412bd62
commit 226d778294

View File

@@ -563,7 +563,7 @@ class KeywordJob(Job):
stdout_write("\nKeywords for filenames and --filter:\n"
"------------------------------------\n")
if self.metadata_http:
if self.metadata_http and url.startswith("http"):
kwdict[self.metadata_http] = util.extract_headers(
self.extractor.request(url, method="HEAD"))