Homebrew Homebrew app [Help Wanted] Moonshell2 playlist feature almost figured out

1creeperbomb

New Member
OP
Newbie
Joined
May 19, 2021
Messages
1
Trophies
0
Age
24
XP
42
Country
United States
So for those that are unaware, Moonshell 2 has support for M3U, WPL, and MPL playlists. However so far the only known use was the auto-generated MPL playlists you can make with the builtin playlist editor. However those playlists are limited to a single folder and have no definable order.

I have wasted the past 2 months of my life trying to get m3u and wpl to work and now I am very close. This post will highlight what I have discovered and tested so far.

(Examples are all in UTF-8, both on computer and on DS)

So for starters, M3U files will actually read properly but only if they don't have M3U tags. A typical M3U file looks like this:

#EXTM3U
#EXTINF: (info stuff)
/folder/file1.mp3
#EXTINF: (info stuff)
/folder/file2.mp3
#EXTINF: (info stuff)
/folder/file3.mp3

If Moonshell tries to read this it will freeze. However if you remove all the tags and leave only the file paths:

/folder/file1.mp3
/folder/file2.mp3
/folder/file3.mp3

Moonshell will read this and only throw an error of "Unable to locate any music files in the specified folder"

Another interesting thing I discovered is Moonshell will automatically ignore drive letters as well so a file like this:

F:/folder/file1.mp3
F:/folder/file1.mp3
F:/folder/file1.mp3

will also read fine and show the same dialog box error.

WPL files will also read, but they must not have meta tags or child tags of any kind. so for example:

<?wpl version="1.0"?>
<smil>
<head>
<meta name="Generator" content="Microsoft Windows Media Player -- 11.0.5721.5145"/>
<meta name="AverageRating" content="33"/>
<meta name="TotalDuration" content="1102"/>
<meta name="ItemCount" content="3"/>
<author/>
<title>Bach Organ Works</title>
</head>
<body>
<seq>
<media src="/folder/file1.mp3"/>
<media src="/folder/file1.mp3"/>
<media src="/folder/file1.mp3"/>
</seq>
</body>
</smil>

Will not read, but:

<media src="/folder/file1.mp3"/>
<media src="/folder/file1.mp3"/>
<media src="/folder/file1.mp3"/>

will read just fine.

If Moonshell still freezes when reading with the correct format, try opening as a regular text file to see if it displays properly. I had this issue and when I changed my sd card cluster size to 64kb and enabled slow disk access in moonshell.ini, text files appeared as normal and playlists files started being read.

Now that I've made it this far, I am stumped on how to get Moonshell to actually play a file. It doesn't seem to make a any distinction between / or \ in the file path, and I even tried placing a music file at the root directory, but it always gives the same error which states "Unable to locate any music files in the specified folder". The logbuff.txt hasn't revealed anything either even with debug log on. It only shows the "empty playlist" error. If anyone still uses Moonshell, please try it out and see what you get. Supposedly Moonlight had some non standard format for playlists so i am convinced this isn't just an unfinished feature.

Also attached a screenshot of the Moonshell error to see what it looks like:

moonshell.jpg
 

Guidodinho

New Member
Newbie
Joined
Sep 23, 2023
Messages
1
Trophies
0
Age
34
XP
14
Country
Belgium
I managed to play one single file with a .wpl file.
I made a .txt file on my computer and just put this inside of it:
/MUSIC/YTD/Bustin.mp3
/MUSIC/YTD/Dango.mp3

Then I saved it. And changed the file extension from .txt into .wpl
Then put the .wpl file on the root of my SD card.

So I tried to open the .wpl.
And instead of that red box with the error. It played the first of the two mp3 files in the list. And showed it as playing 1/1 on the top of the top-screen.

So a playlist does seem to work on Moonshell! Just don't know how to make more than 1 track play for now. So trying to figure out how to put them in order when editing as a txt file.

Hope this helps!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Have some in closet allegations?
  • Psionic Roshambo @ Psionic Roshambo:
    Someone tried to pull a gun on me once, they reached into the couch thinking I wouldn't notice, quick kick to the arm snapping it between the wrist and elbow broke like a swing lol I reached into the couch to see what was in there, cool a free .380 lol had to hit him with it a few times to remind him not to do it again lol
  • Psionic Roshambo @ Psionic Roshambo:
    He had the 20K he owed the very next day it was a miracle lol
  • Psionic Roshambo @ Psionic Roshambo:
    Psi was a bad bad man at one point lol
  • BigOnYa @ BigOnYa:
    We need a GTA based on your life, or at least put you in 6 as a character.
  • Psionic Roshambo @ Psionic Roshambo:
    I don't think people would believe 10% of the things I have done lol thank god...
  • Psionic Roshambo @ Psionic Roshambo:
    I have a giant check list of impossible things, and I haven't done them all yet lol
  • K3Nv2 @ K3Nv2:
    @Psionic Roshambo, Was the pot farmer in San andreas
  • Psionic Roshambo @ Psionic Roshambo:
    I tell people I wrestled a 5 foot alligator and they get this smile like this guy is full of shit lol the reality is I am sad it got away.... I wanted a pet alligator lol
  • BigOnYa @ BigOnYa:
    You live in Florida, so I believe it, you guys are crazy.
  • Psionic Roshambo @ Psionic Roshambo:
    At the time I would have probably fed it people lol
  • Psionic Roshambo @ Psionic Roshambo:
    Seriously cocaine not even once lol
  • BigOnYa @ BigOnYa:
    Not even once, but 100's of times
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    My girlfriend at the time, she had me stay up with her all night because some how the crazy bitch had spent like 12 hours snorting 2 8 balls, didn't use any water (gotta clean your nose) so she had so much crusted in her nose I was sure she was gonna blow up her heart. I mean this was the stuff right off the boat so absolutely pure. ugghh so annoying
  • Psionic Roshambo @ Psionic Roshambo:
    Also doing like 320 dollars worth of coke in half a day lol damn it
  • Psionic Roshambo @ Psionic Roshambo:
    hmmm 360 even lol
  • Psionic Roshambo @ Psionic Roshambo:
    Well I was getting a discount so 320 is probably right
  • BigOnYa @ BigOnYa:
    That is cheap, I used to pay $100 for a tine.
  • Psionic Roshambo @ Psionic Roshambo:
    Tine? One gram?
  • BigOnYa @ BigOnYa:
    Sixteenth
  • Psionic Roshambo @ Psionic Roshambo:
    Also it was literally out of a kilo when I got it off the boat so absolutely pure
  • Psionic Roshambo @ Psionic Roshambo:
    Holy shiz that's a lot
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I was getting 3.5 Grams for 320 could have stepped on it and doubled my money easy lol
    +1
    Psionic Roshambo @ Psionic Roshambo: I was getting 3.5 Grams for 320 could have stepped on it and doubled my money easy lol +1