Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Artwork handling for folders wihtout music
#1
Hi,

I use to navigate my library using folders structure.

Typically folders strucure i use are :

<Genre> / <Artist> / <Albums> / <Tracks>

i have folder.jpg atrwork at each level.

it would be great to cache artwork even on folders with no music in it (thmcache.php).
I will try to customize this by my side and think it can be a good improvement.

What i've got :
   

What i expect:
   

Best regards
Stephane
Reply
#2
I added jpg extension to TYPES_REGEX in listall.sh

It work ...

   

I will try a while with this
Reply
#3
That might work.

Run listall.sh from cmd line and post a section of the output showing the jpg file entries.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
Here is a section as requested

It look good for me.

I also customize parsefolder to speed up process in thmcache.php (large and normalized library)

- in my case i change covers array to 'folder.jpg' and 'Folder.jpg'
- and i comment search for other image (don't need it)

It could be useful to make this 2 options settable in lib-config.php as an improvement

listall.sh sample :

file: NAS/FlacDiscover/Bill Withers/1973 Live At Carnegie Hall/13 - Let Us Love.flac
file: NAS/FlacDiscover/Bill Withers/1973 Live At Carnegie Hall/06 - Let Me in Your Life.flac
file: NAS/FlacDiscover/Bill Withers/1973 Live At Carnegie Hall/04 - Grandma’s Hands.flac
file: NAS/FlacDiscover/Bill Withers/1973 Live At Carnegie Hall/folder.jpg
file: NAS/FlacDiscover/Bill Withers/1973 Live At Carnegie Hall/14 - Harlem Cold Baloney.flac
file: NAS/FlacDiscover/Bill Withers/1973 Live At Carnegie Hall/02 - Friend of Mine.flac
file: NAS/FlacDiscover/Bill Withers/1973 Live At Carnegie Hall/05 - World Keeps Going Around.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/06 - It Ain’t Because of Me Baby.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/04 - Then You Smile at Me.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/01 - Lovely Day.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/02 - I Want to Spend the Night.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/09 - Let Me Be the One You Need.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/08 - Wintertime.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/05 - She Wants To (Get on Down).flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/03 - Lovely Night for Dancing.flac
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/folder.jpg
file: NAS/FlacDiscover/Bill Withers/1977 Menagerie/07 - Tender Things.flac
file: NAS/FlacDiscover/Bill Withers/Covers Box/Bill Withers Box Preview.jpg
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/04 - You Need Me There.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/05 - Grandmother.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/13 - Remember Me.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/12 - Spanish Harlem.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/Rebecca Pidgeon - The Raven.jpg
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/01 - Kalerka.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/07 - Heart and Mind.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/10 - Wendy's Style Shop.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/06 - You Got Me.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/03 - The Raven.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/folder.jpg
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/11 - The Height of Land.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/08 - Her Man Leaves Town.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/02 - The Witch.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/1994 - The Raven/09 - Seven Hours.flac
file: NAS/FlacDiscover/Rebecca Pidgeon/folder.jpg
file: NAS/FlacDiscover/Malu/2006 - Desafio/08 - Ya lo ves.flac
file: NAS/FlacDiscover/Malu/2006 - Desafio/03 - Si estoy loca.flac
file: NAS/FlacDiscover/Malu/2006 - Desafio/10 - No me interesa.flac
file: NAS/FlacDiscover/Malu/2006 - Desafio/09 - Llanto lloro.flac
file: NAS/FlacDiscover/Malu/2006 - Desafio/01 - Agua de mayo.flac
file: NAS/FlacDiscover/Malu/2006 - Desafio/04 - Aulili.flac
Reply
#5
hi, is there a way to show folder.jpg or cover.jpg alternally because some digital music does not use cover.jpg.

or if there are both, use either or both then it makes more easy.
thanks
Reply
#6
(05-08-2022, 02:57 AM)chaos333 Wrote: hi, is there a way to show folder.jpg or cover.jpg alternally because some digital music does not use cover.jpg.

or if there are both, use either or both then it makes more easy.
thanks

From  /var/www/coverart.php 

Code:
* - script looks for flac, mp3 or m4a embedded art, Folder, folder, Cover, cover png/jpg/jpeg files, or any other image file.


Regards,
Kent
Reply
#7
(05-08-2022, 03:41 AM)TheOldPresbyope Wrote:
(05-08-2022, 02:57 AM)chaos333 Wrote: hi, is there a way to show folder.jpg or cover.jpg alternally because some digital music does not use cover.jpg.

or if there are both, use either or both then it makes more easy.
thanks

From  /var/www/coverart.php 

Code:
* - script looks for flac, mp3 or m4a embedded art, Folder, folder, Cover, cover png/jpg/jpeg files, or any other image file.


Regards,
Kent

hi kent, thanks.
but i am a newbee for both moode and linux.
i see your are advising a path for me to modify.
but
can you advice how to modify?  like steps or ssh? 
or use the windows-file manager to modify direct using tf-card adapor? 
thanks
Reply
#8
(05-10-2022, 04:24 AM)chaos333 Wrote:
(05-08-2022, 03:41 AM)TheOldPresbyope Wrote:
(05-08-2022, 02:57 AM)chaos333 Wrote: hi, is there a way to show folder.jpg or cover.jpg alternally because some digital music does not use cover.jpg.

or if there are both, use either or both then it makes more easy.
thanks

From  /var/www/coverart.php 

Code:
* - script looks for flac, mp3 or m4a embedded art, Folder, folder, Cover, cover png/jpg/jpeg files, or any other image file.


Regards,
Kent

hi kent, thanks.
but i am a newbee for both moode and linux.
i see your are advising a path for me to modify.
but
can you advice how to modify?  like steps or ssh? 
or use the windows-file manager to modify direct using tf-card adapor? 
thanks

I believe what is being pointed out here is that moOde already looks for both "folder" and "cover" files.
----------------
Robert
Reply
#9
(05-10-2022, 06:35 AM)the_bertrum Wrote:
(05-10-2022, 04:24 AM)chaos333 Wrote:
(05-08-2022, 03:41 AM)TheOldPresbyope Wrote:
(05-08-2022, 02:57 AM)chaos333 Wrote: hi, is there a way to show folder.jpg or cover.jpg alternally because some digital music does not use cover.jpg.

or if there are both, use either or both then it makes more easy.
thanks

From  /var/www/coverart.php 

Code:
* - script looks for flac, mp3 or m4a embedded art, Folder, folder, Cover, cover png/jpg/jpeg files, or any other image file.


Regards,
Kent

hi kent, thanks.
but i am a newbee for both moode and linux.
i see your are advising a path for me to modify.
but
can you advice how to modify?  like steps or ssh? 
or use the windows-file manager to modify direct using tf-card adapor? 
thanks

I believe what is being pointed out here is that moOde already looks for both "folder" and "cover" files.
oh? really.
that is great.
thanks
Reply


Forum Jump: