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
|
- From: Casey Bralla via plug <plug@lists.phillylinux.org>
- To: <plug@lists.phillylinux.org>
- Subject: Re: [PLUG] Load an m3u file as text file in a Firefox tab
- Date: Sun, 24 Jan 2021 19:02:22 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendinblue.com; q=dns/txt; s=mail; bh=vZXDl+4CY01b8C4TH5mLqKggDoNH/uXG5Mlw2qhl954=; h=from:subject:date:mime-version:content-type:content-transfer-encoding:in-reply-to:references:list-unsubscribe:x-csa-complaints:list-unsubscribe-post; b=MMQYbHkytqWcxx7ozy9LO16jq+I7GC7xDKQn3D+3HB+YtgW2c216wcEM2Gt6H2uXKacUQQTzrecr HoLd3MXBIQhMU6p4gEDz1pUCQq103d1G6Nh+zjO7xTZMLpbnP5YYss/mjPuIqBdbiYVLifBdjuxx Y7VC95vv1iurgzZNnxI=
- Feedback-id: 185.41.28.5:2031218_-1:2031218:Sendinblue
- Origin-messageid: <3c24fb21-3ae7-c997-297b-b36b761d0911@NerdWorld.org>
- Reply-to: Casey Bralla <MailList@NerdWorld.org>
- Sender: "plug" <plug-bounces@lists.phillylinux.org>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1
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