mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-03-02 22:57:22 -05:00
PTP: Add grouping=0 to json feed URL #836
Labels
No labels
Area: API
Area: Database
Area: Db-migration
Area: Download Clients
Area: Indexer
Area: Metadata API
Area: Notifications
Area: Tooling
Area: UI
Area: Update API
Priority: High
Priority: Low
Priority: Medium
Status: Cannot Reproduce
Status: Confirmed
Status: Help Wanted
Status: In Progress
Status: Indexer - need invite
Status: Info Needed
Status: Investigating
Status: Logs Needed
Status: Maybe One Day
Status: Needs Triage
Status: Unlikely
Status: Waiting for OP
Status: Won't Fix
Type: Bug
Type: Bug
Type: Documentation
Type: Duplicate
Type: Enhancement
Type: External Bug
Type: Feature Request
Type: Regression
Type: Support
Type: Support.
lidarr-pull
radarr-pull
sonarr upstream
sonarr-pull
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Prowlarr#836
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jonoff on GitHub (Apr 9, 2023).
Is there an existing issue for this?
Is your feature request related to a problem? Please describe
PTP's json page by default groups objects (according to staff), I verified by disabling my user preferences and still see json grouped results. This grouping allows for older releases to be grabbed from the 'RSS' feed anytime in the future, as they populate whenever any item of the group is uploaded.
Describe the solution you'd like
By adding a setting a 'grouping' parameter to 0, here:
github.com/Prowlarr/Prowlarr@b7fcdb5356/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornRequestGenerator.cs (L42)It would prevent older releases being grabbed due to grouping.
Describe alternatives you've considered
I tried disabling my personal preferences, but they don't seem to affect the json feed, the json default is for grouping to be enabled.
Anything else?
Also applied to radarr.
@mynameisbogdan commented on GitHub (Apr 9, 2023):
You can try to make the change yourself, but you'll have to change the parser to match it.
github.com/Prowlarr/Prowlarr@b7fcdb5356/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornParser.cs (L68-L114)github.com/Prowlarr/Prowlarr@b7fcdb5356/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornApi.cs@jonoff commented on GitHub (Apr 9, 2023):
What exactly would need to change in the parser?
My suggested fix would only add a flag to the json request, which limits the number of responses to be only include releases that were recently uploaded, the body of each response shouldn't change at all.
After
github.com/Prowlarr/Prowlarr@b7fcdb5356/src/NzbDrone.Core/Indexers/Definitions/PassThePopcorn/PassThePopcornRequestGenerator.cs (L42-L46)it would just be an additional line:
{ "grouping", 0}@mynameisbogdan commented on GitHub (Apr 9, 2023):
Are you 100% sure of this claim?
So the parser needs updated as well. :)
@jonoff commented on GitHub (Apr 9, 2023):
Ah, my mistake, I see what you mean, as some group fields do get set to null. Will look into it more.
Example from a group of 2: https://privatebin.net/?26b96a5b4e7c7b7f=#FUXMoRnMsRQYNtMBR7cHMXYAUMpJDxoPXLxU1mPzJuib