Skip to content

What does the library do with non-video files? #81

Answered by akamhy
phirestalker asked this question in Q&A
Discussion options

You must be logged in to vote

@phirestalker

If you will pass URLs and don't know if video exits or not(including non-video files).

  • The download will fail and raise videohash.exceptions.DownloadFailed
>>> from videohash import VideoHash
>>> videohash1 = VideoHash(url="https://github.com/akamhy/videohash/discussions/81")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/test/venv/lib/python3.9/site-packages/videohash/videohash.py", line 81, in __init__
    self._copy_video_to_video_dir()
  File "/tmp/test/venv/lib/python3.9/site-packages/videohash/videohash.py", line 284, in _copy_video_to_video_dir
    Download(
  File "/tmp/test/venv/lib/python3.9/site-packages/videohash/downloade…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@phirestalker
Comment options

Answer selected by phirestalker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants