Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-24 Thread jonhd


d6jg wrote: 
> @johnd
> 
> What the above means is you just need to find an image for The Family -
> name it artist.jpg and put it in your Artist folder for The Family and
> do a rescan and it should be picked up. 
Thanks Slarti' & Jim. Sure plonking an artist.jpg in the Artist folder
does what you describe. As I said, I'm not particularly bothered, but
thanks anyway!

All gone a bit off thread, so hoping @Roland0 will check back, and see
my request :)


Jon



jonhd's Profile: http://forums.slimdevices.com/member.php?userid=864
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread Michael Herger

In the back of my mind I have a feeling that dropping an artist.jpg into
a regular Artist folder works in the same way as bio.html in the same
folder but I’m not certain.


That's correct: the lookup would check an album's folder and walk up the 
folder hierarchy to check for artist pictures.

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread d6jg


@johnd

What the above means is you just need to find an image for The Family -
name it artist.jpg and put it in your Artist folder for The Family and
do a rescan and it should be picked up. 
This is a one off correction measure and you should not need to set a
folder inside the settings for MAI which would download everything.
This assumes that 
1) you use the normal Artist/Album folder structure
2) your The Family tracks are local and not from an Online source
Good luck. Let us know the results



Jim
https://jukeradio.double6.net


VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* Joggler & Pi4/Khadas  -> Onkyo TXNR686 -> Celestion F20s

*Office* Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s 
*Dining Room* SB Radio
*Bedroom (Bedside)* Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV) & Bathroom* SB Touch ->Denon AVR ->Mordaunt Short M10s +
Kef ceiling speakers
*Guest Room* Joggler > Topping Amp -> Wharfedale Modus Cubes

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread d6jg

In the back of my mind I have a feeling that dropping an artist.jpg into
a regular Artist folder works in the same way as bio.html in the same
folder but I’m not certain. It may be a false memory. Ask Michael if I’m
right.



Jim
https://jukeradio.double6.net


VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* Joggler & Pi4/Khadas  -> Onkyo TXNR686 -> Celestion F20s

*Office* Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s 
*Dining Room* SB Radio
*Bedroom (Bedside)* Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV) & Bathroom* SB Touch ->Denon AVR ->Mordaunt Short M10s +
Kef ceiling speakers
*Guest Room* Joggler > Topping Amp -> Wharfedale Modus Cubes

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread slartibartfast


jonhd wrote: 
> Yeah, sure, aware of that. And, as per your screengrab, I too have it
> disabled. (I don't want to bother with providing my own Artist artwork;
> just let the plugin do it.)
> 
> Whoops! Sorry - that's not a checkbox, it's a folder symbol. So, sure,
> you have defined a path. I haven't, for reason given.So you are stuck with 
> whatever the plugin finds then. The artwork the
plugin finds populates the folder so you can just replace the wrong
ones. I don't see any reason not to define a folder.

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread jonhd


slartibartfast wrote: 
> You define the artist artwork folder in "Music and Artist Information"
> settings.

Yeah, sure, aware of that. And, as per your screengrab, I too have it
disabled. (I don't want to bother with providing my own Artist artwork;
just let the plugin do it.)



jonhd's Profile: http://forums.slimdevices.com/member.php?userid=864
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread slartibartfast


jonhd wrote: 
> I don't think that's so simple with mherger's 'Music and Artist
> Information' plugin. (I don't provide my own Artist artwork, and rely on
> the plugin to do that (with it's default settings).) Certainly can't
> find a 'artist artwork folder' anywhere under
> /var/lib/squeezeboxserver/. Tbh, I'm not that bothered with odd 'issues'
> like my Family / The Family artwork. But would be good if the get_albums
> HTML output was correct :D
> 
> JonYou define the artist artwork folder in "Music and Artist Information"
settings.37303

Sent from my Pixel 3a using Tapatalk


+---+
|Filename: Screenshot_20220223-130705.jpg   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37303|
+---+




slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread jonhd


slartibartfast wrote: 
> You can change the artist pics yourself if you like. Just find the
> incorrect one in the artist artwork folder and replace it.
> 

I don't think that's so simple with mherger's 'Music and Artist
Information' plugin. (I don't provide my own Artist artwork, and rely on
the plugin to do that (with it's default settings).) Certainly can't
find a 'artist artwork folder' anywhere under
/var/lib/squeezeboxserver/. Tbh, I'm not that bothered with odd 'issues'
like my Family / The Family artwork. But would be good if the get_albums
HTML output was correct :D

Jon



jonhd's Profile: http://forums.slimdevices.com/member.php?userid=864
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread slartibartfast


jonhd wrote: 
> And those 2 artists appear like so in the UI (shame that slimserver
> pulled the same artist pic for the 2 [wildly different!] bands):
> 
> 37302
> 
> JonYou can change the artist pics yourself if you like. Just find the
incorrect one in the artist artwork folder and replace it.

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2022-02-23 Thread jonhd


And those 2 artists appear like so in the UI (shame that slimserver
pulled the same artist pic for the 2 [wildly different!] bands):

37302

Jon


+---+
|Filename: ksnip_20220223-120454.png|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=37302|
+---+


jonhd's Profile: http://forums.slimdevices.com/member.php?userid=864
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-11-29 Thread jonhd


Thanks so much Roland0 for lms_getalbums - pretty much exactly what I
needed. I have but one request (would have a go myself, but my Python
knowledge is VERY rudimentary - pretty much do everything I do with Bash
scripts...).
Here's the issue (fyi, I use the --no-sortcase --sort-ignorearticles
options):


- Artist 1 Name: *Family* (both TPE1 & TPE2 tags are "Family")
- Artist 2 Name: *The Family* (both TPE1 & TPE2 tags are "The
  Family")
-  In LMS Settings > My Music > Articles to ignore when sorting, I
  have: The El La Los Las Le Les
  

lms_getalbums produces:
36279
The first 5 albums are by Artist 1; The 6th album ("The Family") is by
Artist 2. But, everything is grouped under the "Family" artist name.

So, what would be really good(!) would be something like IF ArtistName
includes an "Article to ignore when sorting", THEN append ", " to ArtistName. So, in my example, I would see the first 5
albums listed under ArtistName "Family", and the 6th album listed
separately under ArtistName "Family, The".

Hope that makes sense. And I rather suspect it would require a lot of
rework in your script (not to say the possible addition of a further
command line switch... "--append-ignorearticles").

Regards, Jon


+---+
|Filename: ksnip_20211129-110147.png|
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=36279|
+---+


jonhd's Profile: http://forums.slimdevices.com/member.php?userid=864
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-09-04 Thread SlimChances


Roland0 wrote: 
> In LMS' data model (and API), albums do not have a genre or a file
> system path (only tracks do). This means that the script would have to
> assemble this "manually", which would be both tedious to implement and
> *very* slow ( since the script would have to query LMS for all tracks
> for each album. the only way to speed this up would be to write a plugin
> to do this on the server)
> Libraries may or may not be possible, but I don't use them and have
> never looked into them.
> Thus, I won't be extending the script with this functionality.
Thanks RolandO. The script works great as it is



Logitech Media Server Version: 8.2.0 - 1614639334 @ Tue Mar 2 00:11:57
CET 2021
Operating system: Debian - EN - utf8
Platform Architecture: x86_64-linux
Perl Version: 5.30.0 - x86_64-linux-gnu-thread-multi
IO::Socket::SSL: 2.067
Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)

One SB Touch connected by Ethernet - Denon AVR -1912 Receiver,
Paradigm 4.1 speakers
SB Touch connected by Optical to Sabaj A4 
amp and Energy bookshelf speakers
Two SB Radios wireless

SlimChances's Profile: http://forums.slimdevices.com/member.php?userid=165
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-09-04 Thread Roland0


SlimChances wrote: 
> I am not teksavvy enough to solve this for myself but is there a way of
> showing output by genre?by library(ie MP3 and FLAC)? or better still by
> Folder structure? Sorry if these are unrealistic requests and if so
> ignore
In LMS' data model (and API), albums do not have a genre or a file
system path (only tracks do). This means that the script would have to
assemble this "manually", which would be both tedious to implement and
*very* slow ( since the script would have to query LMS for all tracks
for each album. the only way to speed this up would be to write a plugin
to do this on the server)
Libraries may or may not be possible, but I don't use them and have
never looked into them.
Thus, I won't be extending the script with this functionality.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI |
Playlist Editor / Generator | Music Classification | Similar Music |
Announce | EventTrigger | DB Optimizer | Image Enhancer | Chiptunes |
LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-09-03 Thread SlimChances


@RolandThanks for this script it is lightning ffast and nearly what
I was looking for. I am not teksavvy enough to solve this for myself but
is there a way of showing output by genre?by library(ie MP3 and FLAC)?
or better still by Folder structure? Sorry if these are unrealistic
requests and if so ignore



Logitech Media Server Version: 8.2.0 - 1614639334 @ Tue Mar 2 00:11:57
CET 2021
Operating system: Debian - EN - utf8
Platform Architecture: x86_64-linux
Perl Version: 5.30.0 - x86_64-linux-gnu-thread-multi
IO::Socket::SSL: 2.067
Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)

One SB Touch connected by Ethernet - Denon AVR -1912 Receiver,
Paradigm 4.1 speakers
SB Touch connected by Optical to Sabaj A4 
amp and Energy bookshelf speakers
Two SB Radios wireless

SlimChances's Profile: http://forums.slimdevices.com/member.php?userid=165
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-07-15 Thread Bromf


Joined the forum today so that I could say "Thanks!"  for this helpful
thread and the Python script. 
It really is a wonderfully fast way of obtaining the album list and for
us 'older-folk' used to paper it is very much appreciated. I am printing
it off for the household.

My Linux command is

Code:

python3 lms_getalbums.py --sort-ignorearticles --no-sortcase (ip address of 
running piCoreplayer):9000 /home/user/Documents/AlbumList



and worked first time too ;-)



Bromf's Profile: http://forums.slimdevices.com/member.php?userid=71939
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-02-17 Thread carsten_h


slartibartfast wrote: 
> Are all your tags correct?

Yes, I hope so. 

The strange is that that this python script is using LMS to get the list
and the display of LMS is also from LMS. So the data is the same.



pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon
one case
pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with
squeezlite/jivelite for hifiberry and bluetooth headphone inside a
smartipi touch case
two airport express
ikea symfonisk

carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-02-17 Thread slartibartfast


carsten_h wrote: 
> Hello!
> 
> I used the python script:
> 
> on my Mac and I got the list without any problem. After a little bit of
> work (in Notepad++) I was able to get a plain text file which only has
> the album names in sorted order.
> 
> But now I see a difference. The list from here is showing me that I have
> ..70 albums, but LMS with Material Skin (or the default skin) is telling
> me in the album view, that I have ..36 albums.
> 
> Where can these 34 missing albums be? Can someone help me here?
> 
> The strange thing is that I exported a similar list of my music from the
> Musik-App on my Mac (the music for LMS is a 1:1 copy of this mediathek)
> and also get ..70 albums, but the Musik-App is telling me that I have
> ..22 albums. So here a few more are missing.
> 
> I am really confused.Are all your tags correct?

Sent from my Pixel 3a using Tapatalk





slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2021-02-17 Thread carsten_h

Hello!

I used the python script:
Viragored wrote: 
> • (Anything Python runs on) *Python script* (created by Roland0) – takes
> a bit of setting up the first time, but then is a single click and fast
> (a few seconds!). Output in HTML. A little familiarity with entering
> command line instructions would be useful but is not essential. Output
> can be in artist order with or without leading words like ‘The’. 
> 
on my Mac and I got the list without any problem. After a little bit of
work (in Notepad++) I was able to get a plain text file which only has
the album names in sorted order.

But now I see a difference. The list from here is showing me that I have
..70 albums, but LMS with Material Skin (or the default skin) is telling
me in the album view, that I have ..36 albums.

Where can these 34 missing albums be? Can someone help me here?

The strange thing is that I exported a similar list of my music from the
Musik-App on my Mac (the music for LMS is a 1:1 copy of this mediathek)
and also get ..70 albums, but the Musik-App is telling me that I have
..22 albums. So here a few more are missing.

I am really confused.



pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon
one case
pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with
squeezlite/jivelite for hifiberry and bluetooth headphone inside a
smartipi touch case
two airport express
ikea symfonisk

carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-23 Thread Viragored


Roland0 wrote: 
> Looks fine. Some suggestions:
> Post: You may want to mention which options works on which platform
> (probably: option 1 & 3: Windows only, option two: anywhere python is
> available (Windows, MacOS, Linux, ...)
> PDF:
> - direct link to script D/L instead of forum post
> - add hint that running lms_getalbums.py --help shows all options
> - replace "LMS identity" with "LMS server"
> - include content of batch file (incl. browser open) for reference

That's great, thanks for the advice. I've made all those changes - and
am open for any more!



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-22 Thread Roland0


Viragored wrote: 
> Hi - I've updated post #1 in this thread to make direct reference to
> your Python script. If you've a moment to spare, could you take a look
> at the guide sheet I've attached? I'd appreciate any improvements you
> can suggest to help others who arrive at your script via that post.
Looks fine. Some suggestions:
Post: You may want to mention which options works on which platform
(probably: option 1 & 3: Windows only, option two: anywhere python is
available (Windows, MacOS, Linux, ...)
PDF:
- direct link to script D/L instead of forum post
- add hint that running lms_getalbums.py --help shows all options
- replace "LMS identity" with "LMS server"
- include content of batch file (incl. browser open) for reference



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-22 Thread pkfox

Viragored wrote: 
> Every now and then I search the forums to see if there is a simple,
> single-click way to output a list of all the Albums I've got, sorted by
> Artist (must have) and Album Title (a nice bonus) and one album per row.
> I had not come across one but since starting this thread three options
> have appeared - many thanks to the contributors. I'm updating this first
> post to bring together in one place links to the options. These options
> are (easiest first):
> 
> • The executable *LMS Documenter* (created by pkfox)– just run the .exe
> file, choose your options and go. Output as either HTML or PDF. Very
> easy to use, several configuration options, output sorted in order of
> artist, including leading words like ‘The’. Listing all tracks with
> album art can create a large file.
> • *Python script* (created by Roland0) – takes a bit of setting up the
> first time, but then is a single click and fast (a few seconds!). Output
> in HTML. A little familiarity with entering command line instructions
> would be useful but is not essential. Output can be in artist order with
> or without leading words like ‘The’. 
> • A *sequence of apps* to install and use (my clunky effort). Output in
> HTML can be configured in lots of different ways. Can give a more
> compact output file than the other two methods but needs the user to
> follow several steps.
> 
> The attachments will guide you through the steps to list the albums in
> your collection, one guide for each method. Links to the sources are in
> each guide, with screen shots of the results.
> 
> I'm no expert and will appreciate all feedback. I hope this helps others
> who've been on the hunt for that elusive quick, one-click path to a
> little list of Albums in the LMS collection. I'm hoping this will take
> the pain out of missing a bargain CD that I wrongly thought I had, or
> coming home with yet another copy of one I'd forgotten I'd already
> bought.

Thank for doing this Viragored



We can't stop here this is bat country. RIP Hunter S Thompson.

pkfox's Profile: http://forums.slimdevices.com/member.php?userid=5346
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-22 Thread Viragored


Roland0 wrote: 
> Here's a Python script which fetches the information directly from LMS
> and writes it to a local file: 'download'
> (https://nexus0.net/pub/sw/misc/lms_getalbums.py)
> Usage: 
> 

Hi - I've updated post #1 in this thread to make direct reference to
your Python script. If you've a moment to spare, could you take a look
at the guide sheet I've attached? I'd appreciate any improvements you
can suggest to help others who arrive at your script via that post.



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-20 Thread Viragored


Roland0 wrote: 
> added a --sort-ignorearticles option
> 
> 
> There is no font specified, so you could just configure your browser to
> prefer sans-serif

What kind of sorcery is this? It works just like magic! Thanks so much
:-)

Browser: I've got Chrome's default font on my PC set to sans-serif, but
haven't yet looked at what's available on my phone. I'll shortly have a
go at that.



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-20 Thread Roland0


Viragored wrote: 
> For me one major improvement would be to use, if possible, LMS's sort
> order for album artists (the one that ignores selected beginnings of
> artist names, such as the, el, le).
> 
added a --sort-ignorearticles option

> 
> A minor improvement would be to use sans-serif font in preference to the
> browser default (us people who suffer astigmatism read sans-serif easier
> than serif).
> 
There is no font specified, so you could just configure your browser to
prefer sans-serif



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-20 Thread Viragored


Roland0 wrote: 
> You could even create a 'batch file'
> (https://www.windowscentral.com/how-create-and-run-batch-file-windows-10)

Amazing - I've now made a 2-line batch file that runs the python then
opens the output file in my web browser. With a shortcut to the batch
file on my desktop, it's a one-click, three-second journey to seeing the
output!

For me one major improvement would be to use, if possible, LMS's sort
order for album artists (the one that ignores selected beginnings of
artist names, such as the, el, le).
A minor improvement would be to use sans-serif font in preference to the
browser default (us people who suffer astigmatism read sans-serif easier
than serif).
And my favourite background for the navbar and artist highlight lines is
still "Grey", with font in "Blue".
(I've tweaked your file to do last two, but I know that will disappear
with any update)

Overall, a wonderful result!!



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-19 Thread Viragored


Roland0 wrote: 
> Strange. Are you sure you added the --no-sortcase option ? 
> e.g.
> > 
Code:

  >   > 
  > py lms_getalbums.py --no-sortcase piCoreLMS:9000 output.html
  > 

> > 
> 
> (run py lms_getalbums.py --help to see the script's syntax)
> 
> 
> You could even create a 'batch file'
> (https://www.windowscentral.com/how-create-and-run-batch-file-windows-10)

And with the 'no-sort' parameter added, it's running properly.
I only just realised that you helpfully included a link to a beginner's
guide to batch files - so helpful and thoughtful, thanks again!



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-19 Thread Viragored


Paul Webster wrote: 
> Just rename your .txt file to .bat or .cmd
> and change any lines that have info (as opposed to the command itself)
> to start with
> REM

Thanks guys! So much to learn, you can complete the rest.



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-19 Thread Paul Webster


Just rename your .txt file to .bat or .cmd
and change any lines that have info (as opposed to the command itself)
to start with
REM



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-19 Thread Viragored


Roland0 wrote: 
> Strange. Are you sure you added the --no-sortcase option ? 
> e.g.
> > 
Code:

  >   > 
  > py lms_getalbums.py --no-sortcase piCoreLMS:9000 output.html
  > 

> > 
> 
> (run py lms_getalbums.py --help to see the script's syntax)
> 
> 
> You could even create a 'batch file'
> (https://www.windowscentral.com/how-create-and-run-batch-file-windows-10)

You've put your finger on the problem - I don't really know what I'm
doing! No, I didn't add the extra option, but I will next time. And
hopefully Google will tell me enough about batch files for me to see if
that's worth doing.

Thanks again :-)



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-19 Thread Roland0


Viragored wrote: 
> I have downloaded again a couple of hours ago, so I hope I'm on the
> current version of your code. The backgrounds to the initial letters and
> navbar are now a deep olive. But the sort order hasn't changed for me.
> Here's a snip of what is near the end of my album list.
> 
Strange. Are you sure you added the --no-sortcase option ? 
e.g.

Code:


  py lms_getalbums.py --no-sortcase piCoreLMS:9000 output.html
  



(run py lms_getalbums.py --help to see the script's syntax)

Viragored wrote: 
> 
> Now that I've saved a text file of the command to start the python
> script and produce the output, the process of getting the output is
> astonishingly fast!
> 
You could even create a 'batch file'
(https://www.windowscentral.com/how-create-and-run-batch-file-windows-10)



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread Viragored


Paul Webster wrote: 
> That resolved it - including for Safari on iOS 12 
> delivered via a web server (as in screenshot).
> You can also see it does not show the year (can scroll left to get it
> sometimes) or the index.

I have downloaded again a couple of hours ago, so I hope I'm on the
current version of your code. The backgrounds to the initial letters and
navbar are now a deep olive. But the sort order hasn't changed for me.
Here's a snip of what is near the end of my album list.
31086

Now that I've saved a text file of the command to start the python
script and produce the output, the process of getting the output is
astonishingly fast!


+---+
|Filename: Snip 6.jpg   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31086|
+---+


Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread Viragored


pkfox wrote: 
> Hi there - you need to download the latest version , check Albums List
> and PDF or HTML radio button

Thanks! I'm trying that now, and Avast tells me to stand by for a couple
of hours while their lab verifies that you're not taking over the world
with a virus.

And I don't think I got an email telling me there'd been new posts in
your documenter thread. I'll check the settings so I don't miss any more
good stuff!



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread Paul Webster


Roland0 wrote: 
> Good point, added. Didn't even consider that some platforms still seem
> to default to some proprietary stuff even for web content. Guess the
> spirit of IIS6 and Internet Explorer 8 is still alive...

That resolved it - including for Safari on iOS 12 [image:
https://uploads.tapatalk-cdn.com/20200718/c1d9536fd8c9015e7b4a5756851b8a20.jpg]
delivered via a web server (as in screenshot).
You can also see it does not show the year (can scroll left to get it
sometimes) or the index.



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread Roland0


Paul Webster wrote: 
> Also, and perhaps as a consequence of loading it locally on Windows with
> a file:// I think it needs a charset to be specified in the head so that
> extended characters display correctly
> e.g.
> 
Good point, added. Didn't even consider that some platforms still seem
to default to some proprietary stuff even for web content. Guess the
spirit of IIS6 and Internet Explorer 8 is still alive...



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread Roland0


Viragored wrote: 
> 
> One request: Would it be possible to sort the output without
> case-sensitivity? In my library, one artist sequence is "ZZ Top" then
> "Zed" followed by "a-ha". The album titles also have similar examples,
> such as "BBC" before "Battle"
> 
uploaded a new version which  has a  --no-sortcase option (among other
changes)

> 
> Will it be OK with you if I update my first post to offer your script as
> an alternative, with a beginners' guide for people like me who don't
> really know how to run Python scripts on Windows?
> 
certainly

> 
> I've now changed the colours in the output a little, to make the product
> a little easier on my eyes: Background for the navbar and break lines in
> the list = grey; navbar font = blue
> 
yes, contrast was rather high (probably should have tested without 'dark
reader' (https://darkreader.org/)). New version is a bit toned down.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread pkfox


Viragored wrote: 
> Ooh - what did I miss? I didn't find a way to list only the albums
> without the tracks, which gave me >1600 pages of output. I'll go back to
> your app and try again.
> 
> If you succeed I suspect you'll get a lot of users, over the years there
> have been so many of us looking for a quick and easy way to get the
> basic information about our albums in a portable format!
> 
> EDIT: Here's a snip of my Documenter screen after scan, before pdf
> creation. I don't seem to have anything to turn off listing every track
> so the output is 1 album per page (or more, for albums with lots of
> tracks).31077

Hi there - you need to download the latest version , check Albums List
and PDF or HTML radio button



We can't stop here this is bat country. RIP Hunter S Thompson.

pkfox's Profile: http://forums.slimdevices.com/member.php?userid=5346
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread Paul Webster


Also, and perhaps as a consequence of loading it locally on Windows with
a file:// I think it needs a charset to be specified in the head so that
extended characters display correctly
e.g.




Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-18 Thread Paul Webster


Roland0 wrote: 
> I probably should have mentioned that I've uploaded an updated version
> yesterday which already includes this.

Including the few lines to make the port number optional would be
useful.

With your new version I do not see the year and also the index on the
right does not scroll so I cannot see beyond W.
This may well be because I was running it on old browsers that perhaps
do not handle the in-line CSS properly.



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-17 Thread Viragored


Roland0 wrote: 
> I probably should have mentioned that I've uploaded an updated version
> yesterday which already includes this.

Wow - lightning fast, indeed! Maybe five seconds - plus a half hour to
find the output LOL !! A very usable file under 200KB listing my 3.2k
albums.

I'm a Python beginner; my PC runs Windows 10, where I've now installed
Python 3.8. The first screen shot shows the commands I ran (after a lot
of Googling) to get the output.

When I pressed 'Enter', Python did its thing for five seconds or so,
showed no error message - and I couldn't find the named output file
until I did a Windows Explorer search. Now I know to include the path to
where I want the output file to go. The second image shows the first few
rows of the output file, without the navigation pane.

One request: Would it be possible to sort the output without
case-sensitivity? In my library, one artist sequence is "ZZ Top" then
"Zed" followed by "a-ha". The album titles also have similar examples,
such as "BBC" before "Battle"

Thanks for such a great contribution. Will it be OK with you if I update
my first post to offer your script as an alternative, with a beginners'
guide for people like me who don't really know how to run Python scripts
on Windows?


+---+
|Filename: Snip 1.jpg   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=31076|
+---+


Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-17 Thread Viragored


pkfox wrote: 
> Hi there, my app does offer one album per line but in a pdf - I'll have
> a look at knocking it up in HTML

Ooh - what did I miss? I didn't find a way to list only the albums
without the tracks, which gave me >1600 pages of output. I'll go back to
your app and try again.

If you succeed I suspect you'll get a lot of users, over the years there
have been so many of us looking for a quick and easy way to get the
basic information about our albums in a portable format!



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-17 Thread Viragored


Roland0 wrote: 
> Not using Spotify, but seems unlikely that LMS would store such
> information in it's own database

There's a setting to select whether to include Spotify, via the Spotty
plug-in, in the library scan. That led to my library having lots of
entries that were only in Spotify, and not on my hard drive, so I think
LMS can store Spotify information in library.db 
I turned off that setting and now don't get the extra library entries.



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-17 Thread Roland0


Grumpy Bob wrote: 
> Wow, that works quickly. Looks like I have some duplicates in there - I
> presume that's the Spotify duplicates?
> 
Not using Spotify, but seems unlikely that LMS would store such
information in it's own database



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-17 Thread Roland0


Paul Webster wrote: 
> Some quick suggestions for changes to Roland0 Python script:
> Index at top of page (first letter of artist name - simplistic and
> foolable)
> and --singleartist to enable hiding of duplicate artist names which I
> think makes it a bit easier to scan quickly by eye
> 
I probably should have mentioned that I've uploaded an updated version
yesterday which already includes this.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-17 Thread pkfox


Viragored wrote: 
> That doesn't offer one album per line of output, and the author says
> changing the logic to exclude all the tracks would be too much of a
> mission. It's a neat app though, and is easy to use.
> 
> Edit: my output pdf file from Documenter was >10 MB without artwork;
> >350MB with artwork, and 3.6k pages long. Nice to have, but not usable
> for what I want.

Hi there, my app does offer one album per line but in a pdf - I'll have
a look at knocking it up in HTML



We can't stop here this is bat country. RIP Hunter S Thompson.

pkfox's Profile: http://forums.slimdevices.com/member.php?userid=5346
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-16 Thread Paul Webster


Couple of quick suggestions:
This makes the :9000 optional so only needs to be included if using
non-standard port
and --singleartist to enable hiding of duplicate artist names which I
think makes it a bit easier to scan quickly by eye

near the top ...

Code:


  parser = ArgumentParser(description="LMS Album Lister", 
formatter_class=RawDescriptionHelpFormatter)
  parser.add_argument('lmshost', action='store', help='LMS host name (with 
optional port, e.g. lmssrv:9000)')
  parser.add_argument('outfile', action='store', help='output file')
  parser.add_argument('--singleartist', action='store_true', help='Do not print 
repeated artist name')
  args = parser.parse_args()
  
  parsedlmshost = args.lmshost.partition(':')
  
  if parsedlmshost[2] == '':
args.lmshost = parsedlmshost[0] + ':9000'
  url = "http://{}/jsonrpc.js".format( args.lmshost)
  



further down ...

Code:


lastArtist = ''
for row in albums:
thisArtist = row['artist']
if args.singleartist:
if thisArtist == lastArtist:
thisArtist = ''
else:
lastArtist = thisArtist
albums_flat.append( table_tmpl.format( thisArtist, 
row['album'], row['year']))
  




Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-16 Thread Grumpy Bob


Wow, that works quickly. Looks like I have some duplicates in there - I
presume that's the Spotify duplicates?

Robert



*Home: *Raspberry Pi 3/piCoreplayer/LMS8.0.0/Material  with files on
QNAP TS-251A
Touch > DacMagic 100 > Naim Audio Nait 3 > Mission 752 (plus Rega
Planar 3 > Rega Fono Mini; Naim CD3)
2 x Squeezebox Radios, 1 X Squeezebox 3 (retired), spare
Pi2/piCorePlayer
*Office:* LMS8.0.0 running on Raspberry Pi3;  Raspberry Pi 3 player with
touchscreen/piCorePlayer/IQaudIO DAC and Amp
SqueezePad, iPeng as controllers 

last.fm/user/GrumpyBob

Grumpy Bob's Profile: http://forums.slimdevices.com/member.php?userid=41857
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-15 Thread Roland0


Here's a Python script which fetches the information directly from LMS
and writes it to a local file: 'download'
(https://nexus0.net/pub/sw/misc/lms_getalbums.py)
Usage: 

Code:


  python3 lms_getalbums.py lmsserver:port filename
  


Example:

Code:


  e.g.python3 lms_getalbums.py odroidhc2:9000 lmsalbums.html 
  




'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Playlist
Editor / Generator | Music Classification | Similar Music | Announce |
EventTrigger | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-15 Thread Viragored


d6jg wrote: 
> Nice set of instructions.
> Never come across AsctoTab before but frequently use db browser to look
> at the libary.db
> 
> Just one point - you should really make sure that LMS is NOT running
> when you copy library.db - for safety sake

Thanks, that's helpful. I'll amend the instructions (and then discover
if it's possible to update the uploaded file)



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-15 Thread d6jg


Viragored wrote: 
> Every now and then I search the forums to see if there is a simple,
> single-click way to output a list of all the Albums I've got, sorted by
> Artist (must have) and Album Title (a nice bonus) and one album per row.
> I've not come across one so spent some lockdown hours ploughing through
> things that Google led me to, to see if I could come up with a way to
> get the list I would like. I eventually got there, and have written out
> the steps I took to do it. 
> 
> And of course, if anyone can point me to an existing single-click way of
> outputting a simple list, I'd be delighted. And all suggestions for
> improving the way this works would be appreciated, too.
> 
> My steps are a bit clunky, bit I'm pleased with the output I've got. My
> HTML file is small enough (250KB) to put on my phone, and rapidly scroll
> through or search with the web browser when I'm looking at CDs in a
> music shop.
> 
> This method is for Windows PC. I have no idea if similar products would
> work on other systems than Windows 10. Here's a little clip of the top
> of my list of >3k albums
> 
> 31049

Nice set of instructions.
Never come across AsctoTab before but frequently use db browser to look
at the libary.db

Just one point - you should really make sure that LMS is NOT running
when you copy library.db - for safety sake



VB2.4[/B] STORAGE *QNAP TS419P (NFS)
[B]Living Room* - Joggler & SB3 -> Onkyo TS606 -> Celestion F20s
*Office* - Pi3+Sreen -> Sony TAFE320 -> Celestion F10s / Pi2+DAC & SB3
-> Onkyo CRN755 -> Wharfedale Modus Cubes
*Dining Room* -> SB Boom 
*Kitchen* -> UE Radio (upgraded to SB Radio)
*Bedroom (Bedside)* - Pi2+DAC ->ToppingTP21 ->AKG Headphones
*Bedroom (TV)* - SB Touch ->Sherwood AVR ->Mordaunt Short M10s
Everything controlled by iPeng

d6jg's Profile: http://forums.slimdevices.com/member.php?userid=44051
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-15 Thread Viragored


Paul Webster wrote: 
> LMS Documenter offers another way
> https://forums.slimdevices.com/showthread.php?112557-LMS-Documenter-Part-II

That doesn't seem to offer one album per line of output. It's a neat app
though, and is easy to use.



Digital: Raspberry Pi 3B; piCorePlayer 6 + LMS 8; HifiBerry DAC+DSP >
Yamaha RX-V2700 > Jamo speakers
Analogue: HifiBerry DAC+DSP > Speakercraft MZC-66 > whole house 
Library: External USB drive
Android: Squeezer app

Viragored's Profile: http://forums.slimdevices.com/member.php?userid=32954
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] How to list all Albums and Artists in LMS library

2020-07-15 Thread Paul Webster


LMS Documenter offers another way
https://forums.slimdevices.com/showthread.php?112557-LMS-Documenter-Part-II



Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland

Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=112602

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter