[Bounty] Plugin to browse and download files

jith45

Member
May 25, 2018
960
0
16
As you said, divx web player doesn't work with web auth, so we need to make a symlink in root of www to link to rutorrent download dir. Example :

Download dir : /home/user1/download
rutorrent dir : /var/wwww/rutorrent (web auth on /var/wwww/rutorrent)
symlink : /var/www/user1_download -> /home/user/download
for user=user1, filemanager will stream directly from /var/www/user1_download but if I type http://IP/user1_download I can't access into it, only streamer.

It's just an idea, I don't know how you can handle easly streaming function.
 

somus1735

Member
May 25, 2018
833
0
16
I will set up the svn but when i do i'm basically askign if you will use it to push updates instead of posting mediafire links.


As far as the streaming goes i think what he wants is something like:


a right click option when you select a video/music file which will open a popup or play in a console window (tab) Perhaps with fullscreen options available.
 

dsouvik215

Member
May 25, 2018
896
0
16
Here's my feedback:

Running on Debian Lenny fresh install, last rutorrent from svn

IE7
The only thing I get it's an error and rutorrent doesn´t load:

JS error: [http://IP/rutorrent/: 110253742] Expected identifier, string or number

IE8 / Chrome / Firefox
When I enter in the FileManager Tab shows "/" instead of "/home/user/downloads/" that it's the top directory
I cannot enter on any existing user folder (Eg /home/user/downloads/myfolder) On logger I receive FILEMANAGER: Directory does not exist: /home/user/downloads/myfolder/ (the folders exists and its 755)
I can create new folders but cannot enter, same error.
Trying to rar/zip/copy/move existing file gets error FATAL ERROR: Destination not permited
Trying to copy/move doens't show folders, I only get /home/user/downloads/ but can't see the folders inside this one that were showed at FileManager.
When I try to make a SFV the popup apperas but nothing happen.
Trying to view a video, divx player shows error and on the logger appears: JS error [http://IP/rutorrent/ : 1586] theWeUI.fManager.player.Open is not a function

Later I try to get it working on ubuntu because I think that have some permission issues and keep you posted.
 

jith45

Member
May 25, 2018
960
0
16
Quote
As you said, divx web player doesn't work with web auth, so we need to make a symlink in root of www to link to rutorrent download dir. Example :

Download dir : /home/user1/download
rutorrent dir : /var/wwww/rutorrent (web auth on /var/wwww/rutorrent)
symlink : /var/www/user1_download -> /home/user/download
for user=user1, filemanager will stream directly from /var/www/user1_download but if I type http://IP/user1_download I can't access into it, only streamer.

It's just an idea, I don't know how you can handle easly streaming function.​


Heh, made it work external.

Check out the SVN, and create a symlink to view.php somewhere on the server where basic auth is not activated and edit conf.php with that path.

Quote

Here's my feedback:

Running on Debian Lenny fresh install, last rutorrent from svn

IE7
The only thing I get it's an error and rutorrent doesn´t load:

JS error: [http://IP/rutorrent/: 110253742] Expected identifier, string or number

IE8 / Chrome / Firefox
When I enter in the FileManager Tab shows "/" instead of "/home/user/downloads/" that it's the top directory
I cannot enter on any existing user folder (Eg /home/user/downloads/myfolder) On logger I receive FILEMANAGER: Directory does not exist: /home/user/downloads/myfolder/ (the folders exists and its 755)
I can create new folders but cannot enter, same error.
Trying to rar/zip/copy/move existing file gets error FATAL ERROR: Destination not permited
Trying to copy/move doens't show folders, I only get /home/user/downloads/ but can't see the folders inside this one that were showed at FileManager.
When I try to make a SFV the popup apperas but nothing happen.
Trying to view a video, divx player shows error and on the logger appears: JS error [http://IP/rutorrent/ : 1586] theWeUI.fManager.player.Open is not a function

Later I try to get it working on ubuntu because I think that have some permission issues and keep you posted.​


No support for IE7, as i tested it works on IE8 (partially mostly).
This is how i designed it. Not planning to change it. (rootpath)
And mostly the errors you mentioned are because there are incorrect permissions. Ex: /home/user/downloads/ , in this case download's doesnt have the right permissions.
DivX web player not installed.
 

somus1735

Member
May 25, 2018
833
0
16
Quote
No support for IE7, as i tested it works on IE8 (partially mostly).​


No problem

Quote
And mostly the errors you mentioned are because there are incorrect permissions. Ex: /home/user/downloads/ , in this case download's doesnt have the right permissions.
DivX web player not installed.​


I'll try to find the issues, good to know that these are "external" issues to filemanager

Quote
This is how i designed it. Not planning to change it. (rootpath)​


In that case the plugin is useless for me because I have planned to get it working in multiuser environment, and I don't want that anybody can ruin something. That's one of the great things about rutorrent multiuser, everyone only can mess with his own stuff.

I thought that will be multi user, based on the topdirectory of config.php Otherwise I can put WebDav or extplorer in a new tab and it's the same. sad.gif
 

das329717

Member
May 25, 2018
928
0
16
I think you miss something because for me everyone is chroot in his home, they can't see other dir...
 

shwetha17

Member
May 24, 2018
785
0
16
Remove last colon in this fragment -

Code:
var browsediags = {
CreateSFV: theUILang.fDiagSFVHashfile,
Move: theUILang.fDiagMoveTo,
Copy: theUILang.fDiagCopyTo,
Extract: theUILang.fDiagTo,
}
 

dsouvik215

Member
May 25, 2018
896
0
16
is it impossible to make the streamer work with basic auth? Also, does it work for mkv files encoded in h.264?
 

das329717

Member
May 25, 2018
928
0
16
Thank you for the notice. Changed the code.


Quote
is it impossible to make the streamer work with basic auth? Also, does it work for mkv files encoded in h.264?


The streamer works with basic auth as of revision 6, but yet is not working with MKV files (needs HTTP Range implementation).
To get it working, just create a symlink to view.php somewhere outside the WebAUth protected area, and after edit conf.php with the path of view.php symlink, got an example there.
 

jith45

Member
May 25, 2018
960
0
16
I'm confused....I'm asking to have it work on a server which has basic auth on the entire server....why is this such an issue? Rutorrent multi user uses auth....I don't want to have an area which isn't protected by auth....

So you're going to add mkv at some point? I wasnt sure what you meant by http range

Thanks. don't forget to give me info for bounty.
 

somus1735

Member
May 25, 2018
833
0
16
Make a dir on your server (example "stream") which isn't protected by WebAUTH and has a symlink to /filemanager/view.php
http://ip.ip.ip.ip/stream/view.php

Or better: http://stream.domain.com/view.php, this will not freeze ruTorrent requests (will improve user experience).

It doesn't pose a security risk, since the video requests have a unique token which allow them to be streamed.

HTTP RANGE is an implementation of HTTP which allows downloading content from a certain "offset", AKA Resume Download.

Ill have to study the standardization and implement it into the streamer function. This will make possible to view content which is not yet downloaded.
 

shwetha17

Member
May 24, 2018
785
0
16
btw, your current rev 7 stops working for me.

Edit:

What's even weirder is reverting to rev 6 doesn't seem to fix the issue for me....

Edit2:

It's something in the latest revision of rutorrent cuasing it.

Edit3:

To give more info:

The last working revision of rutorren tis 1651

In 1652 something changes which breaks this plugin (maybe the jquerry update???)

see http://code.google.com/p/rutorrent/source/detail?r=1652 for a list of the changes
 

das329717

Member
May 25, 2018
928
0
16
word. I got really confused when it didn't work on downgrade...then it hit me that it was probably the rutorrent update.