RichGuk / deluge-in-chrome

Provides quick overview of torrent information in Chrome for the torrent client Deluge.
https://chrome.google.com/extensions/detail/pbenannnhhgfhhijhlpgfbjagebjeeel
MIT License
16 stars 16 forks source link

Hyperlink completed torrent filenames with their file:// URLs for pseudo-Open/Preview functionality? #6

Open ssokolow opened 14 years ago

ssokolow commented 14 years ago

Aside from the lack of a convenient Remove button elaborated on in issue 5, the one thing I really miss is a convenient way to Open/Preview a completed torrent.

Assuming Google's restrictions aren't even stricter than I'd thought, the simplest solution I can think of is hyperlinking completed torrent titles to the corresponding file:// URLs.

RichGuk commented 14 years ago

Little unsure what you mean by open/preview - like you can in the GUI? This is something, AFAIK, that the webUI doesn't offer and isn't really a limitation of this extension. For example, I have my torrent box mounted via AFP but I could easily have it mounted via SSHFS, SMB, etc... how would it know what to view?

ssokolow commented 14 years ago

As far as I know, Deluge's core only supports saving to paths it sees as local (paths with corresponding file:// URLs... including network-mounted ones).

As such, a simple way to provide functionality analogous to Open/Preview in the GTK+ GUI while still staying within the limitations of the Chrome extension API would be to hyperlink the names of completed torrents to the file:// URLs of the corresponding file (single-file torrents) or folder (multi-file torrents).

That way, clicking the names of completed torrents in the pop-up would "preview" anything which can be loaded by an NPAPI plugin (eg. single-file torrents containing video files) and "open" anything else (eg. multi-file torrents or single-file torrents in formats with no matching plugin)