Skip to content

Conversation

inochisa
Copy link

@inochisa inochisa commented Aug 7, 2025

Description

Introduce basic category support for qBittorrent.

These PR still have some gaps:

  1. The category can not be created directly in flood.
  2. The savepath of category is not applied when setting category.
  3. The category setting is not applied for feed torrents.

Related Issue

#686

Screenshots

Types of changes

  • Breaking change (changes that break backward compatibility of public API or CLI - semver MAJOR)
  • New feature (non-breaking change which adds functionality - semver MINOR)
  • Bug fix (non-breaking change which fixes an issue - semver PATCH)

@inochisa inochisa force-pushed the qbittorrent-categories branch from 872e960 to 9aebf88 Compare August 7, 2025 07:59
@trim21
Copy link
Collaborator

trim21 commented Aug 7, 2025

I'll merge this PR with squash, please do not force-push

@inochisa
Copy link
Author

inochisa commented Aug 7, 2025

I'll merge this PR with squash, please do not force-push

Sorry, I will do not do this again. Thanks for your reminder.

@@ -19,6 +19,7 @@ export enum TorrentPriority {
export interface TorrentProperties {
bytesDone: number;
comment: string;
category: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure this is not nullable or defined?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be nullable, as '' can be used to identify no category.

@@ -88,6 +88,14 @@ export const getContextMenuItems = (torrent: TorrentProperties): Array<ContextMe
{
type: 'separator',
},
{
Copy link
Collaborator

@trim21 trim21 Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very familiar with our frontend code, is it possible to only show this with qBittorrent?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too, I think it is necessary for showing with qBittorrent only.(Although I have found the category is not shown if every torrent does not have category)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants