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

Add new parameter to download playlist or specific book #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link

@sweep-ai sweep-ai bot commented Aug 8, 2023

Description

This PR adds a new feature to the safaribooks codebase that allows downloading a playlist or a specific book. The existing codebase only supports downloading a book based on its ID. With this new feature, users can now specify a playlist or a specific book to download.

Summary of Changes

  • Added a new command-line argument --playlist to accept a playlist URL or a specific book ID.
  • Modified the main function to handle the new argument. If the argument is a playlist, the code iterates over the books in the playlist and downloads each one. If the argument is a specific book, the code downloads that book.
  • Modified the download function to handle the new types of input (playlist or specific book).

This PR enhances the functionality of the safaribooks codebase by allowing users to download playlists or specific books, providing more flexibility and convenience.

Fixes #4.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/playlist-download

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: add new parameter to download playlist or specific book
0 participants