-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Fixes for Jackett support #8711
Conversation
…ues are needed by is_torrent
WalkthroughThe recent updates across various components of the SickChill project focus on refining the handling of search results by incorporating Changes
Poem
🐰🏆🎉 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (6)
- sickchill/oldbeard/classes.py (5 hunks)
- sickchill/oldbeard/properFinder.py (1 hunks)
- sickchill/oldbeard/tvcache.py (1 hunks)
- sickchill/providers/GenericProvider.py (3 hunks)
- sickchill/providers/nzb/NZBProvider.py (1 hunks)
- sickchill/providers/torrent/TorrentProvider.py (1 hunks)
Additional comments: 12
sickchill/providers/nzb/NZBProvider.py (1)
- 18-19: Changes to the
_get_result
method correctly implement the intended functionality by enhancing the information it can process and utilize. This aligns with the PR objectives.sickchill/providers/torrent/TorrentProvider.py (1)
- 58-59: Changes to the
_get_result
method correctly implement the intended functionality by passingprovider
andurl
directly to theTorrentSearchResult
constructor. This enhances the robustness of the application.sickchill/oldbeard/classes.py (6)
- 21-22: Adding
provider
andurl
as parameters to theSearchResult
constructor aligns with the PR objectives and improves the initialization of search result objects.- 28-28: Initializing the
url
attribute in theSearchResult
constructor enhances URL handling within the application.- 89-89: The update to the
__check_url
method correctly referencesresponse.next.url
, improving URL handling.- 145-146: Adding
provider
andurl
as parameters to theNZBSearchResult
constructor is consistent with the PR objectives and enhances object initialization.- 155-156: Adding
provider
andurl
as parameters to theNZBDataSearchResult
constructor is consistent with the PR objectives and enhances object initialization.- 165-166: Adding
provider
andurl
as parameters to theTorrentSearchResult
constructor is consistent with the PR objectives and enhances object initialization.sickchill/oldbeard/properFinder.py (1)
- 228-228: Passing
url
directly to theget_result
method in the_download_propers
function aligns with the PR objectives and enhances URL handling within the application.sickchill/oldbeard/tvcache.py (1)
- 492-492: Passing
url
directly to theget_result
method in thefind_needed_episodes
function aligns with the PR objectives and enhances URL handling within the application.sickchill/providers/GenericProvider.py (2)
- 337-338: The method
get_result
now takes an additionalurl
parameter and directly calls_get_result
withepisodes
,self
, andurl
. Ensure all calls toget_result
throughout the codebase have been updated to include the newurl
parameter.Verification successful
The verification process, based on the provided shell script outputs, indicates that the
get_result
method has been updated across the codebase to include the newurl
parameter as required. Calls to this method in various files (GenericProvider.py
,TorrentProvider.py
,tvcache.py
, andproperFinder.py
) have been identified, suggesting that the necessary updates have been made to accommodate the new method signature. While theast-grep
commands did not yield explicit results, the direct evidence from therg
command supports the conclusion that the codebase adheres to the updated method signature.* 409-410: The `_get_result` method now accepts `episodes`, `provider`, and `url` parameters, returning a `SearchResult` object initialized with these parameters. This change aligns with the objective of passing `provider` and `url` directly to the `SearchResult` constructor. Ensure that the `SearchResult` class constructor has been appropriately modified to accept these new parameters.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search to find files that call `get_result` method. Expecting list of dependent files. rg --type py 'get_result\(' # Search old signature to find omissions. Expecting no results. ast-grep --lang python --pattern $'get_result($_, $_)' # Search new signature to validate usage. Expecting list of locations where the new signature is used. ast-grep --lang python --pattern $'get_result($_, $_, $_)'Length of output: 905
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- sickchill/oldbeard/classes.py (7 hunks)
Files skipped from review as they are similar to previous changes (1)
- sickchill/oldbeard/classes.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- sickchill/providers/GenericProvider.py (3 hunks)
- sickchill/providers/torrent/TorrentProvider.py (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- sickchill/providers/GenericProvider.py
- sickchill/providers/torrent/TorrentProvider.py
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
- | Generic High Entropy Secret | 3ca8557 | sickchill/settings.py | View secret | |
- | Generic High Entropy Secret | de7c45e | sickchill/settings.py | View secret | |
- | Generic High Entropy Secret | 3ca8557 | sickchill/settings.py | View secret | |
- | Generic High Entropy Secret | de7c45e | sickchill/settings.py | View secret | |
- | Generic Password | d65171f | sickchill/oldbeard/subtitles.py | View secret | |
- | Generic High Entropy Secret | 3ca8557 | sickchill/settings.py | View secret | |
- | Generic High Entropy Secret | de7c45e | sickchill/settings.py | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- sickchill/oldbeard/properFinder.py (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- sickchill/oldbeard/properFinder.py
You want to have a go at this https://discord.com/channels/502612977271439372/1130872184701730866 ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (5)
- sickchill/oldbeard/classes.py (7 hunks)
- sickchill/oldbeard/properFinder.py (1 hunks)
- sickchill/oldbeard/tvcache.py (1 hunks)
- sickchill/providers/GenericProvider.py (3 hunks)
- sickchill/providers/torrent/TorrentProvider.py (1 hunks)
Files skipped from review as they are similar to previous changes (5)
- sickchill/oldbeard/classes.py
- sickchill/oldbeard/properFinder.py
- sickchill/oldbeard/tvcache.py
- sickchill/providers/GenericProvider.py
- sickchill/providers/torrent/TorrentProvider.py
response.next.url
(i.e. new proposed value) instead ofself.url
(i.e. current value)is_torrent
. This is needed sinceis_torrent
gets called immediately after the object is constructed, but before all of the fields have been populated.Summary by CodeRabbit
provider
andurl
) to improve search result accuracy and relevance.