Casey Bralla via plug on 24 Jan 2021 15:48:21 -0800
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] Load an m3u file as text file in a Firefox tab
|
- From: Casey Bralla via plug <plug@lists.phillylinux.org>
- To: "PLUG Philadelphia Linux Users Group" <PLUG@Lists.PhillyLinux.org>
- Subject: [PLUG] Load an m3u file as text file in a Firefox tab
- Date: Sun, 24 Jan 2021 18:47:25 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendinblue.com; q=dns/txt; s=mail; bh=1e7PpUGw5nSWzX5C67lO3rKQqdXX0oMlpAaFiP1XTlM=; h=from:subject:date:mime-version:content-type:content-transfer-encoding:list-unsubscribe:x-csa-complaints:list-unsubscribe-post; b=gDQKfrqTjNP3AAfuSYbCf6ko08vv+Sod1iPdePl7U8WdzHY3QVnOpQn9cU38yeh238hkt5wAuRB0 cIsAdNXV9a79QB1zKsAP7WKDA44XSeuw622c8Qw+jByv938EwHoxOU02fmYagK5d2ZQ0Qg6nuc0m V6F1Ay8JTmm0ueOnChY=
- Feedback-id: 185.41.28.109:2031218_-1:2031218:Sendinblue
- Origin-messageid: <8cf97253-68e6-576b-ceb5-decdedf94153@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
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?
TIA
___________________________________________________________________________
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