This is a placeholder for testing scenarios pertaining to the media download feature:
-
Valid Download with Progress Observation:
- Provide a valid media URL.
- Observe the progress during the download of each video when a playlist URL is submitted.
- Ensure the download completes successfully.
- Verify that the progress reaches 100% and the success message is displayed.
-
Invalid URL:
- Provide an invalid media URL (e.g., a URL that doesn't exist or is unreachable or a known YouTube or Vimeo one that will fail).
- Confirm that the error handling correctly detects the failure.
- Check that the progress is set to 0, and an appropriate error message is displayed in Tasks.
-
No Requested Files in the Database:
- Ensure the SQLite database contains no requested files by providing a YouTube live video URL.
- Run the download task and verify that it logs "No requested files found in the database."
- Check that the progress is set to 0 and an error is displayed in Tasks.
-
Shelf Title Retrieval:
- Intentionally provide a short playlist URL.
- Confirm that the bookshelf is named after the playlist title, and appropriate messages are displayed in Tasks.
- Check that the progress is set accordingly (100% if successful).
-
Download Cancellation:
- Provide a valid media URL.
- During the download process, attempt to cancel the task.
- Confirm that the cancellation is handled correctly, and the progress is set to 0.
This is a placeholder for testing scenarios pertaining to the media download feature:
Valid Download with Progress Observation:
Invalid URL:
No Requested Files in the Database:
Shelf Title Retrieval:
Download Cancellation: