Giter VIP home page Giter VIP logo

Comments (18)

Laharah avatar Laharah commented on June 5, 2024

I've pushed a patch into the develop branch, could you give it a test for me?

here's the updated binaries: https://github.com/Laharah/deluge-uTorrentImport/tree/develop/dist

_NOTE:_ don't "save link as...", click the version you need, then hit view raw. There a bug in github that corrupts zip files when you 'save as'

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

Thanks, that error is gone. However, another issue appeared (should I open another ticket?).

The plugin is attaching the correct path to each torrent file to the location of uTorrent's resume.dat file. (I had changed the default .torrent location in uTorrent.)

[ERROR   ] 14:15:02 common:70 [uTorrentImport] Could not open torrent /home/wma/.wine/drive_c/users/wma/Application Data/uTorrent/D:\Torrents\file.torrent! skipping...

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

No, you can keep it in this issue, it's related.

I think I see what's happening, I'll push out another patch for you to try in a minute. I don't have my wine test environment with me, so it might still need work after I try to patch it.

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

okay, I've pushed a new patch to the develop branch, hopefully this will fix that issue:

https://github.com/Laharah/deluge-uTorrentImport/tree/develop/dist

again, could you give it a test for me. I'm not at home so I can't test it locally :(

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

Sorry for the delay. I tested it and I get the following error:

[ERROR   ] 17:41:09 common:70 [uTorrentImport] Could not open torrent /home/wma/.wine/dosdevices/d:\Torrents\file.torrent! skipping...

I think this is due to the backslash being used.

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

That' should have been happening automatically, but I made it explicit.

https://github.com/Laharah/deluge-uTorrentImport/tree/develop/dist

One last shot. If this dosen't fix it I'll have to wait until I can get back to my testing environment and see if I can figure out what's going wrong.

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

Now it succeeded in adding the torrents, but all their names were changed to "home". Also, if I go to the "Files" tab, the whole path, starting from /home is displayed, but that may be an intended effect.

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

okay, looks like the os.path module really dosen't like mixing and matching path styles

I tried a quick fix to see if I can get the paths to truncate correctly for the added torrents

https://github.com/Laharah/deluge-uTorrentImport/tree/develop/dist

when the torrent's were added were they checked to 100% or were they all at 0% ?

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

They were at 0%, but I didn't check the "Resume" option, so "Force Recheck" was grayed out.

I can't test the latest update because that address leads me to 404 now.

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

Give it another try, should work again.
https://github.com/Laharah/deluge-uTorrentImport/tree/develop/dist

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

It's working now, thanks!

There are almost 900 torrents and Deluge has been checking them for a couple of hours now, but I think everything went well.

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

Glad to hear it's working! I'll merge those changes into the main release!

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

Sorry to open this up again, but I just noticed that in the process a bunch of files were deleted :( I can't be more specific because I didn't notice exactly when or how, and I can't determine any particular pattern among the files that were deleted, except perhaps that I was cross seeding them, that is, more than one .torrent files pointed to the same file. This is just as a heads up.

Also, I noticed that the .torrent files seem to be missing the file extension.

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

Are they deleted, or just missing from the torrent? Did you set them to resume after adding?

The plugin shouldn't have deleted anything, because it doesn't touch the files until it hands control back to deluge.

You should check to see if there's a home/more/folders/here somewhere in wherever you download your torrents to, since there might have been a state during the bug fixes where deluge had found the files, but then the plugin told deluge to move them to an incorrect location. So long as you didn't tell deluge to 'remove and delete files' afterward, they should still be there.

As for the .torrent extension, I'm not sure what you mean. Do you mean in the plugin logs? if so that's on purpose.

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

I have set up Deluge to save all .torrent files in a folder. That folder is now filled with the torrent files I have transferred, but all of them are missing the .torrent extension.

In addition to that, the files that were deleted are also in this folder (I don't know why) but they are actually just a copy of the .torrent file with the name of the file that was deleted (the original file is lost).

So if in uTorrent I had SomeTorrent.torrent that pointed to SomeImage.iso, if Deluge reports the torrent is at 0%, it means that:

  • The original SomeImage.iso is lost.
  • Inside my .torrent folder I have:
    • A file named SomeTorrent (which is the .torrent file without the extension).
    • A file named SomeTorrent.iso (which is the same torrent file).

As I said, I don't know when exactly the files were deleted. It might be that some bug in Deluge for my particular setup caused it :(

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

I'm really sorry that happened, but It's gotta be something with your setup. I'm really not sure what it is.

A 0% can also mean that deluge is pointed to the wrong location, but if it's the same as what was in uTorrent before you started using the plugin, the files must have been moved somewhere. Again, the only way it's possible is if it happened during one of the failed bug fixes, and they would only be deleted if you accidentally hit remove torrent and delete files when removing the messed up imports.

Have you tried using a find /home -type f -name SomeTorrent.iso to see if there's any files moved to a weird spot?

It sounds like deluge was pointed to download to the same folder where the .torrent files were being saved. There's a brief period after the torrent is re-checked, where the torrent can resumed before deluge re-pauses it. And if any data was received during that time, it may have been sent to that folder.

But I'm not sure about the files missing the .torrent extension. Deluge would be handling that portion of the import. The original .torrent files should still be wherever uTorrent was keeping them, because the plugin opens them read-only. I can only say that the import copies the .torrent files correctly for my test wine setup.

All this has been assuming you're not running deluge as a windows app through WINE, I'm not really sure how that would work out, but imagine you could have left off the use wine mappings option if that were the case.

from deluge-utorrentimport.

mwolos avatar mwolos commented on June 5, 2024

No problem, my last few messages were meant just as a heads up. I know the files were definitely lost by looking at the free space in the partition. I'm running Deluge as a native app on Linux.

from deluge-utorrentimport.

Laharah avatar Laharah commented on June 5, 2024

damn, sorry about that. I'll keep an eye out for anyone else having a similar thing happen. I'll also do some deeper testing with more wine setups to see if I can replicate any symptoms.

Thanks again for helping debug my plugin, wish you hadn't lost any data, that was one of the things I designed my plugin to prevent :(

from deluge-utorrentimport.

Related Issues (20)

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.