Casey Bralla via plug on 24 Jan 2021 16:03:04 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Load an m3u file as text file in a Firefox tab


Doh!  A very simple, elegant, and (once you see it), obvious solution. 
Thanks, JP

On 1/24/21 6:55 PM, JP Vossen via plug wrote:
> On 1/24/21 6:47 PM, Casey Bralla via plug wrote:
>> I've got a bunch of playlist files (*.m3u) which contain text of my
>> various music files.   I use MPD (Music Player Daemon) to load these
>> playlists and play the music.   I also have an apache2 web server on the
>> MPD machine running a python script which shows the playing songs and a
>> photo of the artist.
>>
>> I want to put a link on the web page that will display the playlist
>> (m3u) file as a text file.  Unfortunately, Firefox sees the m3u
>> extension, and then wants to load it as a media file.  If I allow this,
>> it goes crazy and starts opening a continuous list of new tabs with the
>> playlist file.  The only fix is to kill Firefox.    Chrome is not much
>> better.  It won't go crazy, but won't do much with the file either.
>>
>> I can force Firefox to open the file in a text editor, but I would
>> really prefer to open it as a text file in a tab.  (If the file ended in
>> .txt, this would work fine.)
>>
>> Any body know how can I convince Firefox to open a specific extension as
>> a text file in a tab?
>
> Create a *.txt symlink on the server and just open or link to that?
>
> Later,
> JP
> -- -------------------------------------------------------------------
> JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/
> ___________________________________________________________________________
>
> Philadelphia Linux Users Group         -- http://www.phillylinux.org
> Announcements -
> http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug