urandom / gearshift

Transmission remote client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Torrent intents not recognized

subiol opened this issue · 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.

commented

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.

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.

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
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.

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.