chapmanjacobd / library

80+ CLI tools to build, browse, and blend your media library: an index for your archive.
BSD 3-Clause "New" or "Revised" License
355 stars 9 forks source link

Update test_download.py #40

Closed deldesir closed 3 months ago

deldesir commented 3 months ago

Description

This PR includes changes to the test script to ensure that the --write-thumbnail option in xklb is properly tested. The test now asserts the existence of the thumbnail file after the download process.

Motivation and Context

This change is required to verify that the --write-thumbnail option works as expected. Ensuring the thumbnail file is downloaded correctly helps finding it by third party tool (iiab/calibre-web for example)

How has this been tested?

The changes were tested by running the updated test script in an environment with internet access. The test downloads a video from YouTube and checks for the existence of the thumbnail file in the specified directory. The test verifies the following:

Testing environment:

Screenshots (if appropriate):

image

Types of changes

Checklist:

chapmanjacobd commented 3 months ago

Also, if a PR is related to an existing issue don't worry about filling out the PR description. Just write a good PR title and you can replace the whole description with a link to the related issue/comment

Thanks !