Page 11 of 27

Re: [Plugin] LabelPlus v0.3.1.0

Posted: Fri May 29, 2015 1:07 pm
by Ratanak
reticent wrote:When I was using the standard Label plugin, I had a bash script that could query a torrent ID and have it return the label. Is this possible with LabelPlus at all?
Looks like you managed to get this working. You can also access the plugin API directly using "client.labelplus", but there is only a method to retrieve multiple labels:

Code: Select all

def print_mappings(mappings):
    for i in mappings:
        print '%s, label id: %s, label name: "%s"' % (i, mappings[i][0], mappings[i][1])

torrent_ids = [torrent_id]
client.labelplus.get_torrent_labels(torrent_ids).addCallback(print_mappings)

Re: [Plugin] LabelPlus v0.3.2.0

Posted: Fri Jun 05, 2015 8:24 pm
by Ratanak
Version updated to 0.3.2.0.

There is now a preference to reset a torrent's options if the torrent label changes to none. If the preference is not enabled, all torrent options will be the same from when the torrent had a label. Otherwise, it resets the torrent options to Deluge defaults.

It is now possible to specify a label specific download location. If the download location option is enabled, new torrents that get autolabelled when added will automatically be moved to the appropriate location. This option also works with the "move on changes" preference. If the "move on changes" preference is enabled, setting the torrent to a different label or changing a label's path options will move the torrent. If the torrent is not yet finished, it is moved to the label's download location. Otherwise, it is moved to the move completed location.

Autolabel now supports two new types of criteria: Deluge label and filename.

The label criteria will match a torrent that has been labelled using the Deluge Label plugin. For this criteria to work correctly, the Deluge Label plugin must be enabled before LabelPlus. It is recommended to disable any label options set in the Deluge Label plugin to avoid conflicts with LabelPlus options.

The filename criteria lets you match on the filenames in a torrent. The system will go through all filenames in the torrent and if any file matches, then the criteria is considered to have been matched. There is currently no way to require all filenames match a single criteria.

Re: [Plugin] LabelPlus v0.3.2.0

Posted: Sat Jun 06, 2015 12:20 am
by Shryp
Think there is a small bug in this. I think you probably just forgot to remove all the calls to the function when you removed it? Only shows up from remote clients. I peeked at your source code and see 2 calls to the function, but didn't actually see the function anywhere else. I just started looking at python code so maybe I am completely wrong though.

Works fine other than the error message. Thanks for the plugins though, I use a few of yours.

Code: Select all

    if not client.is_localhost():
      self._btn_browse.hide()

Code: Select all

[ERROR   ] 19:46:46 __init__:1193 [LabelPlus] Error initializing PreferencesExt
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/labelplus/gtkui/gtkui.py", line 178, in _load_extensions
    instance = ext(self)
  File "build/bdist.linux-x86_64/egg/labelplus/gtkui/extensions/preferences_ext.py", line 133, in __init__
    self._load_state()
  File "build/bdist.linux-x86_64/egg/labelplus/gtkui/extensions/preferences_ext.py", line 457, in _load_state
    self._btn_browse.hide()
AttributeError: 'PreferencesExt' object has no attribute '_btn_browse'
[DEBUG   ] 19:46:46 gtkui:177 [LabelPlus] Initializing SidebarExt

Re: [Plugin] LabelPlus v0.3.2.0

Posted: Sat Jun 06, 2015 12:41 am
by Ratanak
Thanks for letting me know! I forgot that it does that for remote clients. Fix should be up soon.

Re: [Plugin] LabelPlus v0.3.2.1

Posted: Sat Jun 06, 2015 1:00 am
by Ratanak
Version updated to 0.3.2.1.

Fixed browse button issue.

Re: [Plugin] LabelPlus v0.3.2.1

Posted: Fri Jul 31, 2015 11:34 pm
by shahram
I have two labels "Movies" & "Tv Shows"

Movies Download Location : X:\Movies
Movies Move Complete: X:\Movies

same for TV Shows in : X:\TVSHOWS

Downloading with one eg. "TV Shows" starts the download in "X:\DefaultDownloadLocation" and moves it into "X:\TVSHOWS" after completion
so basically Download Location is doing nothing.

then if I try to change the label using the right click menu : "TV Shows" => "Movies" or reverse.
the first time I got a strange result.
the Downloaded file was moved to :
"C:\Program Files (x86)\Deluge\uncategorized"

the Deluge isn't even installed there, just the directory was created and the file was moved there,

I used "Move Storage" to bring it back to the "Movies" folder,
but now setting the label has no effect, the label changes but not the file location.

Re: [Plugin] LabelPlus v0.3.2.1

Posted: Tue Aug 25, 2015 4:34 am
by JayMan
Hey Dev,

I wanted to thank you for putting in the Label option for the auto labels. It works perfectly, Now sonarr gives the torrent a label and LabelsPlus picks it up and handles the options.

Re: [Plugin] LabelPlus v0.3.2.1

Posted: Sun Sep 06, 2015 5:57 pm
by Ratanak
shahram wrote:I have two labels "Movies" & "Tv Shows"

Movies Download Location : X:\Movies
Movies Move Complete: X:\Movies

same for TV Shows in : X:\TVSHOWS

Downloading with one eg. "TV Shows" starts the download in "X:\DefaultDownloadLocation" and moves it into "X:\TVSHOWS" after completion
so basically Download Location is doing nothing.

then if I try to change the label using the right click menu : "TV Shows" => "Movies" or reverse.
the first time I got a strange result.
the Downloaded file was moved to :
"C:\Program Files (x86)\Deluge\uncategorized"

the Deluge isn't even installed there, just the directory was created and the file was moved there,

I used "Move Storage" to bring it back to the "Movies" folder,
but now setting the label has no effect, the label changes but not the file location.
I'll look into this, but this sounds like a configuration error on your end.

Re: [Plugin] LabelPlus v0.3.2.1

Posted: Tue Sep 22, 2015 2:11 am
by Holymartyr
I cannot get your newest (3.0+) versions of LabelPlus to work. I'm using Deluge 1.3.12 python2.6 as a server on a Windows Server 2008 Enterprise x64, with a Deluge 1.3.12 python2.6 as a client on Windows 7 x64. Before today, I was using Deluge 1.3.10 with version 0.2.18 of LabelPlus. That worked fine. I tried your new 0.3.2.1 version, and it would not work. So I updated Deluge to 1.3.12, and tried your updated plugin again. Still would not load.

Any advice on how to get you information that will help us?

P.S. I also use your other plugin MoveTools, and your updated version of MoveTools works just fine.

Re: [Plugin] LabelPlus v0.3.2.1

Posted: Thu Oct 08, 2015 10:19 pm
by Itanaman
I'll look into this, but this sounds like a configuration error on your end.[/quote]

If it is, I have the same problem, and my Deluge was installed fresh for the first time. I set up my labels for all my torrents that had previously been completed in another client (Tix), specifying the download and move location to where each one was. I then specified the Autolabels. I then imported all the torrents, and they all went to their respective labels, however, each one started downloading in a totally different location, instead of where their previous downloads were located. I had to manually Move each set of Torrents under each label to their true locations, and force recheck, at which time they found their data.

However, for new Torrents it works great, so that setup debacle is over really.

A suggestion/requested feature for update. I like another user have Labels Movies and TV Series, and sublabels under each of them as needed (i.e. Arrow, Big Bang Theory, etc.). Now when I click each of the sublabels of course the torrents are listed for them. However, I would also like to be able to Click on TV Series and see all the torrents listed under that. I have various reasons for this need, but say for example I want to pause all TV Series Torrents and only have Movies torrents running. In order to do this now, I have to actually go to each sublabel and select all of the torrent under that, working my way through. I literally have hundreds of shows (ok 46 really) that I have to manually go through each one of those to accomplish this, when it would be much easier to be able to just go to TV Series and select every torrent under that. I hope that's clear enough to know what I mean. Thanks.