FAQ  •  Register  •  Login

Plugin for "Index of" site

<<

stit

Serviio newbie

Posts: 6

Joined: Thu Nov 22, 2012 8:35 pm

Post Thu Nov 22, 2012 8:43 pm

Plugin for "Index of" site

Hi all,

i would like to stream the files which are on my root server.
But FTP web ressources are not working so i tried http:// links to the files. But to add every file manually is very complicated.
Is there any way to let serviio scan a http "Index of" for files, or to add an ftp: directory?

If not it would be the only way to generate a rss feed from all files with php am i right?

By the way which kind of "web ressources" are possible?
rss and rtmp, mms etc. are clear but what links are "web ressources"?

Maybe someone can code such a plugin?
I try it on my own, but i am not very good in coding.

Thanks so far.

Greeting.
stit
<<

stit

Serviio newbie

Posts: 6

Joined: Thu Nov 22, 2012 8:35 pm

Post Thu Nov 22, 2012 9:52 pm

Re: Plugin for "Index of" site

I wrote a php script which scans the "Index of" page for files.
My goal is to generate a RSS file which includes the directlinks to the files, but maybe ist would be easier if serviio scans for the files?
I don't know which is the best way..

  Code:
<?php
function ListFiles($dir)
{
    if($dh = opendir($dir))
   {
        $files = Array();
        $inner_files = Array();

        while($file = readdir($dh))
      {
            if($file != "." && $file != ".." && $file[0] != '.')
         {
                if(is_dir($dir . "/" . $file))
            {
                    $inner_files = ListFiles($dir . "/" . $file);
                    if(is_array($inner_files)) $files = array_merge($files, $inner_files);
                }
            else
            {
                    array_push($files, $dir . "/" . $file);
                }
            }
        }
        closedir($dh);
        return $files;
    }
}

print_r(ListFiles('/home/pa'));
?>


greetings
stit


EDIT:

I know generated a .php file which is a rss feed which entrys are the directlinks to the files and i add this url to serviio "ATOM/Rss" section:

http://user:password@www.dafsafa.sd/files.php

But it is not shown on my TV !?

Why ?

Return to Plugin requests

Who is online

Users browsing this forum: No registered users and 3 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.