Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement video-length filter using ffprobe #6246

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
archive/
.venv

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
3 changes: 1 addition & 2 deletions gallery_dl/ffprobe.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def get_video_length(obj, url):
)
data = json.loads(result.stdout)
except subprocess.CalledProcessError as e:
msg = "ffprobe failed: " + e
print(e)
msg = "ffprobe failed: " + str(e)
Skaronator marked this conversation as resolved.
Show resolved Hide resolved
continue
except json.JSONDecodeError:
msg = "Failed to decode ffprobe output as JSON"
Expand Down
Loading