gearshift icon indicating copy to clipboard operation
gearshift copied to clipboard

Torrent intents not recognized

Open subiol opened this issue 8 years ago • 5 comments

When I add a new torrent from another another program (f.e. clicking a link in a browser), if it is a magnet link gearshift adds the new torrent correctly, but if it is a .torrent file it fails.

If I save the same .torrent file in the phone and use the add torrent option, then select the .torrent file, it gets added correctly. Since the same .torrent file works when added manually from local memory, but not when coming from another app, that is why I suspect the problem is in how gearshift handles .torrent intents.

subiol avatar Dec 14 '16 10:12 subiol

Same issue here, but sometimes it works though. Always works when using add function in app. Might be a chrome/Android based problem? I'm using cm N based ROM.

simba83 avatar Dec 14 '16 20:12 simba83

If sometimes it worked, most probably it was the website you were downloading the torrent from didn't set the MIME type correctly. Gearshift has nothing to do with this.

hatogit avatar Dec 15 '16 07:12 hatogit

If you add a torrent from IPTorrents it always gives error. I use Firefox for Android. The same torrent but saved locally and added through Add Torrent works fine always.

subiol avatar Dec 15 '16 18:12 subiol

@subiol Since I have no idea what iptorrents is, check what content type it returns for a torrent file. Use curl or similar to look at the headers.

urandom avatar Dec 17 '16 18:12 urandom

I really like your solution to managing destination folders. I would be very happy to use the app, but unfortunately I faced the problem discussed above. It seems to me that there is a problem with intent-based file sharing introduced at SDK24. The intent sharing operation does not work, but the same .torrent file can be opened manually without problems.

TothCsanad avatar Jun 12 '18 13:06 TothCsanad