From 7e7c92eeef7a91e30ba28d2ff91e533258bc704c Mon Sep 17 00:00:00 2001 From: Niklas Wagner Date: Fri, 25 Oct 2024 15:44:07 +0200 Subject: [PATCH] Remove f string since they don't exist in python 3.5 --- gallery_dl/ffprobe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/ffprobe.py b/gallery_dl/ffprobe.py index 7ae2839d33..9674cb8f85 100644 --- a/gallery_dl/ffprobe.py +++ b/gallery_dl/ffprobe.py @@ -35,7 +35,7 @@ def get_video_length(obj, url): if obj.headers: for key, value in obj.headers.items(): - command.extend(["-headers", f"{key}: {value}"]) + command.extend(["-headers", key + ": " + value]) command.append(url) @@ -57,7 +57,7 @@ def get_video_length(obj, url): ) data = json.loads(result.stdout) except subprocess.CalledProcessError as e: - msg = f"ffprobe failed: {e}" + msg = "ffprobe failed: " + e print(e) continue except json.JSONDecodeError: