Req: Direct link to download folder

Want something added? Ask for it here.
Post Reply
JonDubya
Newbie
Newbie
Posts: 8
Joined: October 21st, 2008, 11:56 pm

Req: Direct link to download folder

Post 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.
JonDubya
Newbie
Newbie
Posts: 8
Joined: October 21st, 2008, 11:56 pm

Re: Req: Direct link to download folder

Post 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
Last edited by JonDubya on October 22nd, 2008, 12:55 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Req: Direct link to download folder

Post 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.
ultimatejones
Newbie
Newbie
Posts: 5
Joined: September 21st, 2008, 9:26 am

Re: Req: Direct link to download folder

Post by ultimatejones »

You could add this functionality to sabnzbd by adding a cherrypy handler.

http://www.cherrypy.org/wiki/FileDownload
JonDubya
Newbie
Newbie
Posts: 8
Joined: October 21st, 2008, 11:56 pm

Re: Req: Direct link to download folder

Post by JonDubya »

What I implemented works for me.  I use sabnzbd on my desktop so everything is local.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Req: Direct link to download folder

Post 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.
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

Re: Req: Direct link to download folder

Post 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.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Req: Direct link to download folder

Post 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"
Eejit
Sr. Member
Sr. Member
Posts: 267
Joined: September 10th, 2008, 5:46 pm

Re: Req: Direct link to download folder

Post 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
Eejit - The name say's it all !!
Image
JonDubya
Newbie
Newbie
Posts: 8
Joined: October 21st, 2008, 11:56 pm

Re: Req: Direct link to download folder

Post 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
Post Reply