Plugin Tinkering, How Do I read a Torrent's Label?

Suggest, post, or discuss plugins for Deluge
Post Reply
digitalhigh
Member
Member
Posts: 13
Joined: Thu Oct 24, 2019 3:37 am

Plugin Tinkering, How Do I read a Torrent's Label?

Post by digitalhigh »

Hey all,

I'm working on updating an existing plugin for V2, and decided to add a few other features to it as well.

Currently, I'm having a bit of difficulty reading the label on a torrent when it's completed, and I was just wondering if any of you wizards out there happened to know the proper call.

Also, I'm aware there's more than one plugin available for labels, so if there's more than one call I need to make in order to be thorough, I'm fine with that too.

I would expect the following to work...but it's not...

Code: Select all

status = component.get("Core").get_torrent_status(tid, ["label"])
Where the result would then be in status["label"]

I've been poring over the code for deluge all day, and my brain is a bit fuzzy. Hoping a few friendly pointers can help me fix it up in the morning.

TIA! :D
digitalhigh
Member
Member
Posts: 13
Joined: Thu Oct 24, 2019 3:37 am

Re: Plugin Tinkering, How Do I read a Torrent's Label?

Post by digitalhigh »

Brief update:

Looking at the code for Deluge a bit more, I figured out that I should be able to log all "Plugin" keys for a torrent by executing the following:

Code: Select all

status = component.get("Core").pluginmanager.get_status(tid, [])
log.info("Full torrent status: %s", status)
However, this is the output of that command on a torrent tagged with "tv-sonarr":

Code: Select all

Full torrent status: {'label': ''}
Does this indicate there's an issue with the Label plugin?
Post Reply