[instagram] relax video quality warning regex (#8078)
https://github.com/mikf/gallery-dl/issues/8078#issuecomment-3235445551
This commit is contained in:
@@ -242,8 +242,7 @@ class InstagramExtractor(Extractor):
|
|||||||
if self._warn_video_ua:
|
if self._warn_video_ua:
|
||||||
self._warn_video_ua = False
|
self._warn_video_ua = False
|
||||||
pattern = text.re(
|
pattern = text.re(
|
||||||
r"AppleWebKit/537\.36 \(KHTML, like Gecko\) "
|
r"Chrome/\d{3,}\.\d+\.\d+\.\d+(?!\d* Mobile)")
|
||||||
r"Chrome/\d+\.\d+\.\d+\.\d+ Safari/537\.36$")
|
|
||||||
if not pattern.search(self.session.headers["User-Agent"]):
|
if not pattern.search(self.session.headers["User-Agent"]):
|
||||||
self.log.warning("Potentially lowered video quality "
|
self.log.warning("Potentially lowered video quality "
|
||||||
"due to non-Chrome User-Agent")
|
"due to non-Chrome User-Agent")
|
||||||
|
|||||||
Reference in New Issue
Block a user