Skip to content

Commit

Permalink
Remove f string since they don't exist in python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaronator committed Oct 25, 2024
1 parent 56054bd commit 7e7c92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/ffprobe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:
Expand Down

0 comments on commit 7e7c92e

Please sign in to comment.