rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - est

Pages: 1
1
F.A.Q.s / Re: .m3u or rss templates for HFS (customize MIME needed)
« on: July 07, 2009, 01:37:36 PM »
> Is there a way to define MIME in HFS template?

switch to expert mode
menu > other options > mime types

> Or more advanced, customize a HTTP header?

in HFS 2.3 you can use command {.add header.}
refer official documentation for details

thanks rejetto

place this filelist.tpl under the same dir as hfs242.exe,

Code: [Select]
#EXTM3U
%files%
[style]

[files]
{.mime|audio/x-mpegurl.}

%list%

[file]
%item-url%

[folder]
%item-name%/

http://localhost/mp3/~files.lst.m3u

works great!

2
F.A.Q.s / m3u or rss templates for HFS (customize MIME needed)
« on: July 07, 2009, 10:57:55 AM »
Hi all,

I need to share a folder in dir listing mode, as well as .m3u or rss podcast feeds,

I tried to edit the template to make the output looks like .m3u or rss, but some media player seems having a trouble parsing the MIME. Is there a way to define MIME in HFS template? Or more advanced, customize a HTTP header?

Or why not HFS provide a way of multiple views of dir listing, like

normal dir listing: http://127.0.0.1/mp3/
m3u for current dir: http://127.0.0.1/mp3/:m3u
m3u for .mp3 files only: http://127.0.0.1/mp3/:m3u?filter=*.mp3

currently I am using a mongoose+python script to do this, I really HFS could provide such a funtion directly

Pages: 1