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 tag sync support for Sonarr and Radarr #1332

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

6cUbi57z
Copy link

@6cUbi57z 6cUbi57z commented Jan 15, 2023

Database Migration

NO

Description

Adds tag sync support to Sonarr and Radarr.

  • Off (Default): Leaves tags in application indexers as they are. Due to the way in which the sonarr and radarr API seem to work, this requires querying the API to get the tags in use, then include those in the update.
  • On: Overwrites all tags with those configured on the indexer in Prowlarr. Any tags which do not exist will be automatically created.

Screenshot (if UI related)

image
image

Todos

  • Tests
  • Translation Keys (./src/NzbDrone.Core/Localization/Core/en.json)
  • Wiki Updates

Issues Fixed or Closed by this PR

@bakerboy448
Copy link
Contributor

Are using the indexers' tags the best option for this? That can mean a lot of unecessary tags going to an app depending on how one users tags.

App Tags should probably be a different option maybe, no?

@6cUbi57z
Copy link
Author

Do you mean to have a separate setting on each indexer which are the tags to transfer? I like the idea to keep them split, but I can see terminology getting very confusing. I already find the tagging to link indexer to proxy and app a bit confusing. I'm not sure it would help matters if indexer tags in prowlarr don't result as indexer tags in apps.

As for unnecessary tags, I'm not sure how many tags people usually have. It should be minimised somewhat as sync is off by default and will only create tags which it needs to sync. Personally I wouldn't care about some unused tags. They're not very visible in the apps and don't affect functionality. That's just my opinion though.

@6cUbi57z 6cUbi57z changed the title Add tag sync support for Sonarr and Radarr [WIP] Add tag sync support for Sonarr and Radarr Jan 15, 2023
@6cUbi57z
Copy link
Author

Changed to WIP I believe there is a bug noticed in thread at #500 (comment). When tag sync is off but fully indexer sync is on, the tags will be deleted from the indexer in the app. They should be left as is.

@6cUbi57z 6cUbi57z changed the title [WIP] Add tag sync support for Sonarr and Radarr Add tag sync support for Sonarr and Radarr Jan 21, 2023
@6cUbi57z
Copy link
Author

Updated to preserve existing tags when tag sync is off. PR description updated.

@bakerboy448 bakerboy448 added the Status: Waiting for OP Action Required from OP label Feb 19, 2023
@mynameisbogdan
Copy link
Contributor

Also some tests would be nice if you'll add for these changes.

@mynameisbogdan mynameisbogdan added the Status: Don't Merge Hold up - don't merge this label Feb 28, 2023
@6cUbi57z 6cUbi57z marked this pull request as draft March 5, 2023 21:55
@6cUbi57z
Copy link
Author

6cUbi57z commented Mar 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Don't Merge Hold up - don't merge this Status: Waiting for OP Action Required from OP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT]: Sync indexer tags to indexers in apps || Add Application Tags to Indexers
3 participants