Moode Forum
[SOLVED] Edit file playerlib.php - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18)
+--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21)
+--- Thread: [SOLVED] Edit file playerlib.php (/showthread.php?tid=1213)



Edit file playerlib.php - leglubert - 03-24-2019

Hello,
recent raspberry fan

for an audiophile installation, I turned to

Raspberry
Suprtonic X400
MoOde Audio (I wanted DSD via I2s)

Great, I think we'll choose this solution.

however I have a little problem, I found the solution on this forum: -) :-)

But I have to edit the file (/var/www/inc/playerlib.php), to get the right sorting on the Albums

I tried with winSCP, in sftp pi/moodeaudio

I browse without any problems, but I can't edit: -( 

So how do we do it?

Thank you in advance Heart

Amitiés
Lionel


RE: Edit file playerlib.php - Tim Curtis - 03-24-2019

What sorting do you need?


RE: Edit file playerlib.php - JST1963 - 03-24-2019

Hi moOde fans,


RE: Edit file playerlib.php - leglubert - 03-24-2019

The "sort" is allready in /var/www/inc/playerlib.php

the line is just disbled (sort album with date)

:-)


RE: Edit file playerlib.php - leglubert - 03-24-2019

[quote pid='8984' dateline='1553394187']
How about simply opening up an SSH session in moOde (Configure - System - Local Services), use "pi" as login and "moodeaudio" as the PW and edit the requested file from there?
sudo nano /var/www//inc/playerlib.php
[/quote]

Thanks JST1963,

done in a couple of seconds

Amitiés
Lionel


RE: Edit file playerlib.php - Tim Curtis - 03-24-2019

Nice :-)


RE: Edit file playerlib.php - kit1cat - 03-24-2019

(03-24-2019, 03:21 AM)leglubert Wrote: [quote pid='8984' dateline='1553394187']
How about simply opening up an SSH session in moOde (Configure - System - Local Services), use "pi" as login and "moodeaudio" as the PW and edit the requested file from there?
sudo nano /var/www//inc/playerlib.php

Thanks JST1963,

done in a couple of seconds

Amitiés
Lionel
[/quote]

Sorry to be thick, but what did you actually do and what did it achieve?

Thanks


RE: Edit file playerlib.php - leglubert - 03-25-2019

Hello kit1cat,

I wanted to have the Albums sorted by year !

so I edited the file playerlib.php, this way
[Image: code-moode.png]


to obtain this as a result
[Image: moOd.jpg]

Amitiés
Lionel


RE: Edit file playerlib.php - kit1cat - 03-25-2019

Thanks for your reply Lionel, I understand now.