Giter VIP home page Giter VIP logo

deluge-utorrentimport's Introduction

uTorrentImport

a cross platform Deluge plugin to import torrents from uTorrent

NOTE: ONLY WORKS FOR DELUGE 1.3.x! NOT YET COMPATABLE FOR DELUGE 2.0

v2.3.8 Download HERE

  • supports WINE mappings
  • automatically searches for relevant uTorrent sessions
  • Advanced support for renamed folder or relocated files.
  • Support for importing the bandwidth settings for each torrent
  • Supports setting the Added Date to match uTorrent's date added
  • Skipped files are carried over from uTorrent
  • ONE BUTTON. NO COMMAND LINE NEEDED!

Installation and use:

  1. Download the appropriate .egg file here (use both if you're not sure): DOWNLOADS
  2. Open Deluge, go to Preferences > Plugins > Install Plugin
  3. Add the .egg file(s)
  4. Turn on the plugin (tick the box)
  5. press the button!

Screenshot

Changelog:

v2.3:

  • Files skipped in uTorrent will not be downloaded by Deluge
  • Some bug fixes for unicode torrent file names

v2.2.6:

  • Added an option for preserving the uTorrent added date
  • Added options for importing bandwidth settings for uTorrent torrents
  • fixed rare bug with event timings that could prevent a torrent being rechecked
  • fixed a bug with WINE path torrent files on separate drives.
  • fixed a bug where backed up .torrent files could be saved without extension

v2.1.3:

  • Added a Dialog to notify the user when the import is finished
  • Better error reporting for missing or corrupt resume.dat files.
  • Fixed a bug that was causing unnecessary renames
  • Fixed a bug that could cause torrents with only one file nested in a folder to be incorrectly renamed.
  • Fixed a bug related to unicode torrent files that could cause the import to halt.

v2.1.0:

  • Fixed some renamed torrents not rechecking properly
  • added support for correctly redirecting individual files relocated by uTorrent
  • Lowered chance of torrents beginning to download when adding large amounts of torrents at once. (adding may take more time now)

v2.0.2:

  • Fixed torrent file unicode errors halting import

deluge-utorrentimport's People

Contributors

idealchain avatar laharah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deluge-utorrentimport's Issues

Importing fields: date, uploaded, downloaded

I would rather like to be able to keep the following fields for each torrent:

  • Date Added
  • Uploaded
  • Downloaded (for purposes of calculating the ratio)

Besides missing these, your plugin works brilliantly. Thanks for developing it =)

I wasn't sure if I should make a separate issue for each field.

304 Exception calling RPC request: 'CorePlugin.uTorrentImport'

I've installed Deluge on my Synology. Python 2.7 and Python 3 are both installed. When I'm logged into the box as root, "python --version" shows me 2.7. When I try to enable uTorrentImport, I get the following error:

[ERROR   ] 00:29:38 rpcserver:304 Exception calling RPC request: 'CorePlugin.uTorrentImport'
Traceback (most recent call last):
  File "/usr/local/deluge/env/lib/python2.7/site-packages/deluge-1.3.12-py2.7.egg/deluge/core/rpcserver.py", line 299, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/usr/local/deluge/env/lib/python2.7/site-packages/deluge-1.3.12-py2.7.egg/deluge/core/core.py", line 528, in enable_plugin
    self.pluginmanager.enable_plugin(plugin)
  File "/usr/local/deluge/env/lib/python2.7/site-packages/deluge-1.3.12-py2.7.egg/deluge/core/pluginmanager.py", line 82, in enable_plugin
    super(PluginManager, self).enable_plugin(name)
  File "/usr/local/deluge/env/lib/python2.7/site-packages/deluge-1.3.12-py2.7.egg/deluge/pluginmanagerbase.py", line 151, in enable_plugin
    component.start([instance.plugin._component_name])
  File "/usr/local/deluge/env/lib/python2.7/site-packages/deluge-1.3.12-py2.7.egg/deluge/component.py", line 290, in start
    if self.components[name]._component_depend:
KeyError: 'CorePlugin.uTorrentImport'

WINE Mappings

When I try to use Wine mappings, I get the following error:

Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 504, in __call__
    return self.daemon.call(self.base, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 457, in call
    return defer.maybeDeferred(m, *copy.deepcopy(args), **copy.deepcopy(kwargs))
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1237, in unwindGenerator
    return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
    result = g.send(result)
  File "/home/wma/.config/deluge/plugins/uTorrentImport-2.2.1-py2.7.egg/utorrentimport/core.py", line 239, in begin_import

  File "/home/wma/.config/deluge/plugins/uTorrentImport-2.2.1-py2.7.egg/utorrentimport/core.py", line 137, in find_wine_drives

exceptions.IndexError: tuple index out of range

I use:
Xubuntu 15.04
deluge: 1.3.11
libtorrent: 0.16.18.0
wine-1.7.50

My uTorrent is 2.2.1. I've been using it with Wine straight from Windows, without changing any setting or location, with the help of a couple of mapped drives in Wine that point to their original locations in Windows.

ImportError: No module named twisted.internet.protocol

Hello!
Trying to use script this way

C:\Python26>python "C:\Program Files (x86)\Deluge\deluge-1.3.11-py2.6.egg\uTorrent_to_Deluge.py" --host 127.0.0.1 --port 58846 "C:\Users\Nikolay\AppData\Roaming\uTorrent\resume.dat"

Ang get this error

Traceback (most recent call last):
File "C:\Program Files (x86)\Deluge\deluge-1.3.11-py2.6.egg\uTorrent_to_Deluge.py", line 11, in
from deluge.ui.client import client
File "deluge\ui\client.py", line 36, in
ImportError: No module named twisted.internet.protocol

Python version

2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]

Failed to get resume.dat

Everything on Deluge seems to be working but I'm getting this error.

Failed to get resume.dat. Reason: [Errno 2] No such file or directory: 'C:\Users\Bryan\AppData\Roaming\uTorrent'

Going from Windows 10 to Deluge in FreeNAS.

Problem with importing torrents if you've moved files in the uTorrent client.

Tried importing my uTorrent torrents over to Deluge and it does not recognize all the files that I've right clicked and moved manually to another directory in uTorrent. So instead of finding the correct path of where the files are, every file that was moved elsewhere in the uTorrent client when imported over to Deluge tries to re-download the whole entire file because it does not recognize the new file name and/or location.

no web ui?

Based on what I can see in the source, there should be a webui but i'm not getting anything in the UI after enabling the plugin. no errors in the logs that I can see. Not sure if it's a system them or a dev build thing.

Thanks.

I am on OpenSuse Leap 15
deluge 2.0.0b2.dev313
libtorrent: 1.1.7.0
Python: 2.7.14
OS: Linux

Re: Problem with importing torrents if you've moved files in the uTorrent client.

Same problem here, am on Windows 10 64-bit with uTorrent 2.2.1. Can give more info from my resume.dat if required, currently 200+ torrents fail to import properly due to this reason. Some of them had individual files moved/renamed from the file list, while others had the whole directory moved from overall torrent list. All files seem to revert to their default names rather than keeping new names as well, became a problem for stuff I was cross-seeding and had copied/renamed a few files that had differences between trackers.

Import failure when torrent name contains non-ascii character

After I clicked "Begin Import" only 20 torrents was successfully imported and the button is grayed out. If I restart deluge and re-click the import button, I can see the same 20 torrents being imported again and failed because already exist but no new torrents get imported.

Log from deluge:

C:\Program Files (x86)\Deluge\deluge-1.3.14-py2.7.egg\deluge\ui\gtkui\mainwindow.py:110: GtkWarning: gdkdrawable-win32.c:2013 drawable is not a pixmap or window

(deluge:6308): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(deluge:6308): libglade-WARNING **: unknown attribute `swapped' for <signal>.
C:\Program Files (x86)\Deluge\library.zip\twisted\internet\_glibbase.py:375: GtkWarning: gdkdrawable-win32.c:2013 drawable is not a pixmap or window
Unhandled error in Deferred:


Traceback (most recent call last):
  File "twisted/internet/defer.py", line 434, in errback

  File "twisted/internet/defer.py", line 501, in _startRunCallbacks

  File "twisted/internet/defer.py", line 587, in _runCallbacks

  File "twisted/internet/defer.py", line 1241, in gotResult

--- <exception caught here> ---
  File "twisted/internet/defer.py", line 1183, in _inlineCallbacks

  File "twisted/python/failure.py", line 389, in throwExceptionIntoGenerator

  File "c:\users\wangqr\appdata\roaming\deluge\plugins\utorrentimport-2.3.1-py2.7.egg\utorrentimport\gtkui.py", line 123, in on_import_button_clicked

  File "twisted/internet/defer.py", line 1185, in _inlineCallbacks

  File "c:\users\wangqr\appdata\roaming\deluge\plugins\utorrentimport-2.3.1-py2.7.egg\utorrentimport\core.py", line 277, in begin_import

  File "c:\users\wangqr\appdata\roaming\deluge\plugins\utorrentimport-2.3.1-py2.7.egg\utorrentimport\core.py", line 296, in _import_torrent

exceptions.UnicodeDecodeError: 'utf8' codec can't decode bytes in position 88-89: invalid continuation byte

After Import Several Batch Torrents Stuck at 99%

Two torrents i'm running are erroring out. I only downloaded some of the video
files in the batch of each torrent. This only occurred after transferring them from utorrent.

They're both a torrent with 20+ videos.
All my other torrents that were single files transferred properly along with several others that were batch torrents.

It seemed just 1 file was failing to finish in each torrent.
However i tried to start downloading another video file in the torrent batch
and that one is now also failing to finish at around 99%.

I've since just removed one torrent, however the other one is Private tracker sensitive and i need
it to finish properly.

I've tried pausing and Force Rechecking, reopening Deluge, restarting the computer.
Not sure what to do at this point.

Windows 10 64-bit.
Deluge 1.3.15

Inactive folders

Since your script parses utorrent's data so well...

A bit of a side step:

Would it be possible to have your awesome python scripts output the list of active folders / files that are currently loaded in utorrent?

I know I have a ton of dead stuff sitting in my completed folder, but no easy way to manage it so it ends up just sitting there tying up space.

In a perfect world I'd like to point a script to my Completed folder and it would move all the non-active files into a different folder based on whats loaded in utorrent...

Just a thought - I can send cookies as bribes tho...

Deluge unable to find correct files when path has trailing slash

To reproduce the bug:

  1. Add a multi-file torrent in uTorrent (e.g. this one). In "Add New Torrent" dialog, add a backslash at the end of the path in the "Save As" textbox (e.g. G:\KNOPPIX_V7.2.0CD-2013-06-16-EN\)
  2. Download part or all of the torrent, so the target folder is not empty
  3. Import the torrent to deluge, now the following line shows up in terminal:
    [ERROR ] 00:24:12 torrent:1058 Attempting to rename a folder with an invalid folder name:
  4. The imported torrent stays at "Paused 0.00%". Force re-check does not help. Resume the torrent will start downloading files into a subfolder with the same name (i.e. G:\KNOPPIX_V7.2.0CD-2013-06-16-EN\KNOPPIX_V7.2.0CD-2013-06-16-EN\)

Expected behaviour:
Deluge recheck the files downloaded by uTorrent and start seeding.

Possible sync option

(i do not know where suggestion section is so i post it here, thx)

Can you make deluge sync with utorrent every "X" seconds?
would basically be just clicking the button automaticly.

Make plugin find downloads with just downloading metadata and also import those
(This is the real reason i need this plugin. all my torrents get stuck on metadata)

Would be AWESOME if you could do this, tough i do not know if this is possible. As i am no expert in the magical, mystical art that you gods posses (coding).

"Path to resume.dat" must be a file.

Deluge: 1.3.11
OS X: 10.10.5
Error Running uTorrentImport!
Failed to get resume.dat. Reason: /Users/user/Library/Application\ Support/uTorrent/resume.dat is a folder, "Path to resume.dat" must be a file.

Tried making a copy and moving it just to see, same error.

Thanks,

ratio's not carried over

Curious if it is possible to have the ratios carried over as well - it doesn't have seemed to :(

Display that you need to restart the Deluge UI after importing

I imported 207 torrents and about half of them were unpaused, even though I had left the "Resume After Adding" option unticked. Admittedly, this could be due to having a status of "Error: Files missing from job. Please recheck" in uTorrent - which happened when I restored the uTorrent data from a previous Windows installation.

uTorrent 2.2.1 resume file supported?

Good day,

I'm trying to import a uTorrent 2.2.1 file and it's complaining that the file is a directory and not a file. Deluge client version is 1.3.15 running on Win 7. Python version is 2.7. Perhaps this older version of uTorrent is not supported?

Thanks and regards.
-Greg
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.