rejetto forum
July 31, 2010, 05:46:24 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: generate m3u playlist - folder-streaming  (Read 1397 times)
0 Members and 1 Guest are viewing this topic.
ledufe
Tireless poster
****
Offline Offline

Brazil Brazil

Posts: 272


LEandro DUpont FErreira

ledufe@hotmail.com
View Profile WWW Email
« on: April 16, 2006, 09:07:09 PM »
Reply with quoteQuote

the situation
i got a folder on my hfs foldertree
in the folder there are only mp3 or the file mask show only the mp3 (;-P)
there is a link in the page generated by the template that hfs calls %list% when i click on the link the broser leads me(its opening in the browser) to a file called "http://192.168.1.2:2222/~files.lst"
i click on it with mouse right button
i save the target as Any-Name.lst
and this file wont open with any of my mp3 players correctly, but when i rename it from .lst to .m3u the winamp can play the playlist (yeah! finally got my web-folder-radio-browser-window-independent-auto-generated)
and now finally, my question

is there a way to save the file generated (the .lst) just clicking on it, but saving with the extension .m3u?

i don´t know how to do this, but i know that someone good in js knows how to do this....please, somebody can help?
please put the code in here (javascript, anything, but just hfs and none of third part tool like winpy or SWF flash player...)
HELP as to get a radio
Logged

<<LeDuFe>>
rejetto
Administrator
Insane programmer
*
Online Online

Italy Italy

Posts: 10754


View Profile
« Reply #1 on: April 17, 2006, 07:37:17 AM »
Reply with quoteQuote

in the default template there is a line
Code:
<a class=little href='%encoded-folder%~files.lst'>File list</a>
change it to
Code:
<a class=little href='%encoded-folder%~files.lst.m3u'>File list</a>

it should work
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!


Google visited last this page June 01, 2010, 11:46:11 AM