rejetto forum

Make HFS Generate Feed

ledufe · 6 · 4941

0 Members and 1 Guest are viewing this topic.

Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
Quote
maybe a flash player like this(only 10k) with .m3u suport, or rejetto could add the funtion to the hfs to generate also the XSPF playlist that is the only supported streaming playlist of every free flash mp3 player that i found,

how is this format?
anyway, i guess you could already generate such playlist using the filelist.tpl file. it should be documented on the wiki.

i guess that i am too stupid to figure out how to do this, but how can i make the filelist.tpl affect the kind of file that i am generating?
 ???
im trying to generate some special files like a feed(xml) and xpsf, maybe some wml but i guess that one solutions afects another, if i change de generated file list to make the hfs auto generate a feed

using this code on the filelist.tpl

Code: [Select]
%files%

[files]
<?xml version="1.0" encoding="windows-1252"?>
<rss version="2.0">
  <channel>
    <title>HFS Feed - %encoded-folder%</title>
    <description>feed for the hfs on the %host% Server</description>
    <link>http://%host%</link>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <pubDate>Mon, 23 Oct 2006 22:31:10 -0300</pubDate>
    <generator>pspad (by hand)</generator>
%list%
</channel>
</rss>

[file]
    <item>
      <title>%item-name%</title>
      <description>%item-name% - %item-comment%</description>
      <link>http://%host%%encoded-folder%%item-url%</link>
      <pubDate>Mon, 23 Oct 2006 22:30:15 -0300</pubDate>
    </item>
 
[folder]
    <item>
      <title>%item-name%</title>
      <description>%item-name% - %item-comment%</description>
      <link>http://%encoded-folder%%item-url%</link>
      <pubDate>Mon, 23 Oct 2006 22:30:15 -0300</pubDate>
    </item>

the feed will be auto generated by the hfs, any other command/solution that use the url command "http://localhost/~files.lst" will be broked, becouse it change the m3u file that i used on the embeded media player...

rejetto, is there any solution? maybe a suport to creation of other kind of files or something like this:
if i want to generate the m3u i do this "http://localhost:3333/~files.lst.m3u" right?
when somenone browse this link the hfs would based himself in a file called "filelist.m3u" or even using the "filelist.tpl" but witha reference to the kind of call inside it....

can this be ever done?

1 - put the file on the same folder of the hfs, then after doing this, start the hfs software(i dont know other way to make the hfs read this file)

2 - i changed the name of the hyperlink as you can see here and add another link to file list only and not the recursive list. Also, i added some files to test(anime movies)

3 - this is only to show to you all that again the filename is something to take care, some filenames can make a mp3 unplayable(remember my case with flash player?) and some make invalidate the feed generated....but this would serve us well, it will work, at least on  the software that i used to read the feed(SharpReader0970)

4 - this is a sample of the feed generated by the recursive link

5 - this is a sample of the feed generated by the feed link, not the recursive one


well, besides some issues, i found this is useful, well at least to me, and open my mind to work it out some other possibilites...hehhe

and yet about the feed, this feed is fully worked, it can be subscribed and the hfs recieve the request and serve it well(at least if the folder that generated it still exist)...

« Last Edit: October 24, 2006, 03:20:27 PM by ledufe »
<<LeDuFe>>


hfs-user

  • Guest
cool, but can i get a feed with the entire file list of some folder inside only one topic? like your example, but in a single feed update(hfs feed request) can i get the entire list of files only inside one single feed?

like this

in your example you make a HFS Feed and list every files in a separated title each

can i get hfs feed and get a title(feed topic) for every folder and for every folder a list of every file inside this folder?

can i do this? somebody please help, i never used feeds before, but i guess that this is a nice adition to the hfs, the uses(browser client) demands traffic network bandwich, and by reading the feed of a hfs folder demands only a few bytes, and the user dont need to browse into my hfs to know what are the news(the new addition on that folder) cool feature....


Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
can i get hfs feed and get a title(feed topic) for every folder and for every folder a list of every file inside this folder?

i will try this at home, but i guess that it can be done.... :)
<<LeDuFe>>


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
Quote
i guess that i am too stupid to figure out how to do this, but how can i make the filelist.tpl affect the kind of file that i am generating?
you are already doing it.
the kind of file is the content.

Quote
the feed will be auto generated by the hfs, any other command/solution that use the url command "http://localhost/~files.lst" will be broked, becouse it change the m3u file that i used on the embeded media player...
yes, that's the problem, only one template.
the filelist.tpl may be generalized, it may be an idea for the future.


Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
just a idea....
and can i ask something?

in this case, like a "paliative"(i donĀ“t know how to say this word in english) solution or a temporary solution to let the user use more than one "kind" of generated filelist, but just one kind for folder... could be "implemented on the HFS"(if is this possible, i am just wandering...) something like "Diff Template does" we could use something like "Diff files.lst" or "Diff filelist.tpl" for specific folders, in this case the folder that we want to generate the feed, or the filelist in a diferent way, like the windows media plyer playlist or any other kind....

it is a valid sugestion?, or this would be useful for somebody?

-add another function to the menu?
i was thinking something like this, the hfs only load the filelist.tpl when we open the hfs.exe? if is this right, i think that would be useful some menu-item to re-load this file or like i write in the begining of this message(post), load a diferent file or reload it ....
...
<<LeDuFe>>


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
could be "implemented on the HFS"(if is this possible, i am just wandering...) something like "Diff Template does" we could use something like "Diff files.lst" or "Diff filelist.tpl" for specific folders, in this case the folder that we want to generate the feed, or the filelist in a diferent way, like the windows media plyer playlist or any other kind....

that's just what i suggested

Quote
-add another function to the menu?
i was thinking something like this, the hfs only load the filelist.tpl when we open the hfs.exe? if is this right, i think that would be useful some menu-item to re-load this file or like i write in the begining of this message(post), load a diferent file or reload it ....

it will be easier if HFS reloads filelist.tpl every time it uses IF the file has changed.
i can assure you it is not heavy.