Page 1 of 1

Req: Direct link to download folder

Posted: October 22nd, 2008, 12:04 am
by JonDubya
I was wondering if it's possible to edit the template to make the completed download names links to the actual directory.  Example: If the nzb is "sabnzbd" it would have a url to file:///d:/downloads/sabnzbd/

If you can show how or where to do it in the history.tmpl file I'll make the change myself, just not sure where to put the code.

Re: Req: Direct link to download folder

Posted: October 22nd, 2008, 12:45 am
by JonDubya
Figured it out,

Code: Select all

<a href="file:///D:/$line.filename/">$line.filename</a>
but it seems that FF nor Opera allow for that kind of link. Go figure :P~ Any other suggestions?

Edit:
Solution here: http://www.techlifeweb.com/firefox/2006 ... ox-15.html

Re: Req: Direct link to download folder

Posted: October 22nd, 2008, 5:58 am
by shypike
SABnzbd is a client-server implementation.
Many people have SABnzbd on one system and use the UI on another one.
SABnzbd can only generate local paths, but these will be
useless on the remote system where the browser runs.

Re: Req: Direct link to download folder

Posted: October 22nd, 2008, 10:42 am
by ultimatejones
You could add this functionality to sabnzbd by adding a cherrypy handler.

http://www.cherrypy.org/wiki/FileDownload

Re: Req: Direct link to download folder

Posted: October 22nd, 2008, 11:32 am
by JonDubya
What I implemented works for me.  I use sabnzbd on my desktop so everything is local.

Re: Req: Direct link to download folder

Posted: October 22nd, 2008, 4:51 pm
by shypike
ultimatejones wrote: You could add this functionality to sabnzbd by adding a cherrypy handler.

http://www.cherrypy.org/wiki/FileDownload
The idea was to have a link to a folder, not to download files.

Re: Req: Direct link to download folder

Posted: October 23rd, 2008, 9:53 am
by inpheaux
JonDubya wrote: What I implemented works for me.  I use sabnzbd on my desktop so everything is local.
Right. It works for you, but there's no way for us to build a general case that will work everywhere, so we won't be adding this as a feature.

Re: Req: Direct link to download folder

Posted: October 23rd, 2008, 10:38 am
by switch
Just as a side note, it is easy to create a windows post-processing script to open up an explorer window when a download is complete, just create a .bat file with this in:

Code: Select all

explorer "%1"

Re: Req: Direct link to download folder

Posted: October 24th, 2008, 1:37 pm
by Eejit
I really like the idea of the name as a hyperlink to the download folder in the History template but can see the reason why some
people would not like it.

I would use JonDubya's edit except that different files are downloaded onto different drives and I can't for the life of me see if
that information is available, like the folder/filename.  :(  Then again, I'm a fiddler and a meddler, not a coder  :D

Re: Req: Direct link to download folder

Posted: October 24th, 2008, 11:11 pm
by JonDubya
@inpheaux: Agreed. This is really what I was looking for, not so much as a full-on addition to the application.

@Eejit: Yeah, I don't have an answer for you besides download everything to one folder :D

Cheers