Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
81 and.... shit.
The symlink strategy doesn't seem to work and I can only set 1 genre using MPD's tag system (if I get that to work >_<)
I guess I need to work with playlists then or something?
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
89 I looked at how mpd stores its playlists. Seems to be easy enough to make by myself.
Its stored as a .m3u file, which by itself is easy. Each file just needs to start with the correct header
Code:
#EXTM3U
and each line is written as
Code:
#EXTINF:191,Artist Name - Track Title
However, a quick look at a playlist file created by mpd shows that it is actually using (what I believe are) malformed m3u files, which for ones may make my life a lit easier.

First off, the header is missing. Although writing it was easy enough, I'm not complaining. Second of all, this is how they are stored
Code:
drian von ziegler/Celtic Music - Ancient Storm.mp3
adrian von ziegler/Celtic Music - Breath of the Forest.mp3
adrian von ziegler/Celtic Music - Prophecy.mp3
adrian von ziegler/Celtic Music - Wolf Blood.mp3
adrian von ziegler/Dark Music - Blood Night.mp3
adrian von ziegler/Electronic Music - New Horizons.mp3
adrian von ziegler/Emotional Music - Fare Thee Well.mp3
adrian von ziegler/Viking Music - Einherjer.mp3
adrian von ziegler/World Music - Aki (秋).mp3
adrian von ziegler/World Music - Bone Temple.mp3
adrian von ziegler/World Music - Hual Hadi.mp3
So... I don't even have to do trickery to get the length of the files by the looks of it :) I think this is the first time a program not following the standards may make my life easier. But.... before I start programming anything its first time to make sure I can make these file by hand.

edit: and... it can even deal with full paths instead of relative ones like it itself writes. So... I guess it now totally works...
 
Last edited:

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
91 and... after some time trying to get the plug in to behave (because apparently it didn't actually work) its now time to really install it rather than use the temporary installation.

Problem is, I have no idea on how to do that...... It seems it needs to become some kind of special file (somehow) and I need to set some flag in firefox itself before it will even install unsigned plugins.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
93 maybe, but it has my server's ip location hard coded so I rather not have to send the code to anything.....
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
94 Hm. I don't know if you need to send it, I did it a long time ago. It might just be a local signing
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
93 I may just end up writing something that downloads everything in a playlist instead of bothering with that plugin. Considering how big some playlists are that should give me plenty of listen time.