This repository was archived by the owner on Mar 15, 2025. It is now read-only.
Content-type argument. Possible to download bittorrent files.#57
Open
Valtteri-Jokinen wants to merge 1 commit into
Open
Content-type argument. Possible to download bittorrent files.#57Valtteri-Jokinen wants to merge 1 commit into
Valtteri-Jokinen wants to merge 1 commit into
Conversation
Author
|
This is what was asked in #53 |
sparr
reviewed
Jul 27, 2024
| '--content-types', | ||
| type=str, nargs='*', | ||
| help="Whether to download only direct content (web) and/or the bittorrent file. Default is only direct content. " | ||
| "Available variables: 'web', 'bittorrent' " |
Contributor
There was a problem hiding this comment.
Suggested change
| "Available variables: 'web', 'bittorrent' " | |
| "Available types: 'web', 'bittorrent' " |
sparr
reviewed
Jul 27, 2024
| self.purchase_keys = purchase_keys | ||
| self.trove = trove | ||
| self.update = update | ||
| self.content_types = ['web'] if content_types is None else list(map(str.lower, content_types)) # noqa: E501 |
Contributor
There was a problem hiding this comment.
Would it make sense to validate the types against the known list? That would protect users from typos. But also prevent downloading novel types if they ever become available (or already are?).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New argument:
With this it's possible to download the bittorrent-files or direct downloads. Defaults to direct downloads.