Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: PDF Catalogue

  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    8

    PDF Catalogue

    Hi

    Thought this may be of some use to a few people. I have produced a script which produces a PDF catalogue of the albums in LMS. It uses the command line interface to interrogate LMS and the perl PDF::API2 library to produce the catalogue.

    It works out space requirements so that an album doesn't span a page.

    It prints the album title, artist and year, the album art and a track listing for each album. For large libraries the output can get large. I have 295 albums and the output runs to 60 pages.

    It can be downloaded from http://www.while.org.uk/lmspdfcreator - there is also an example of the output on that page.

  2. #2
    Senior Member
    Join Date
    May 2005
    Location
    UK
    Posts
    706

    PDF Catalogue

    Hi,

    In article <oneshot.7y4wnb (AT) no-mx (DOT) forums.slimdevices.com>,
    oneshot<oneshot.7y4wnb (AT) no-mx (DOT) forums.slimdevices.com> wrote:
    > Thought this may be of some use to a few people. I have produced a
    > script which produces a PDF catalogue of the albums in LMS. It uses the
    > command line interface to interrogate LMS and the perl PDF::API2 library
    > to produce the catalogue.
    >
    > It works out space requirements so that an album doesn't span a page.
    >
    > It prints the album title, artist and year, the album art and a track
    > listing for each album. For large libraries the output can get large. I
    > have 295 albums and the output runs to 60 pages.
    >
    > It can be downloaded from http://www.while.org.uk/lmspdfcreator - there
    > is also an example of the output on that page.


    Looks interesting, but doesn't seem to work on my server. Could it be that
    my server needs a password?

    Would be nice if the script could handle this, and also get the parameters
    from command line arguments. Any chance of adding the password feature at
    least?

    Thanks

    Andy


  3. #3
    Senior Member teeitup's Avatar
    Join Date
    Dec 2007
    Location
    S.F. Bay Area
    Posts
    140
    Having a catalog of some sort can be very helpful.

    I keep a directory listing of my music library on my phone. This comes in handy when I'm at the used record store or searching amazon. Having an album list handy ensures I don't end up with duplicates. Running my LMS on a Linux server makes this to do using the find or tree command.

    Your offering seems to produce a more comprehensive listing of a music collection.

    Thanks,
    ----------------------------------------------------------
    Logitech Media Server Version: 7.9.1 - 1503129892 @ Sun Aug 20 04:39:12 UTC 2017
    OS: Debian - EN - utf8
    Platform: i686-linux
    Perl Version: 5.24.1 - i686-linux-gnu-thread-multi-64int
    Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
    Total Players Recognized: 4

    Squeezebox3:
    Firmware: 137

    Duet: (2 receivers, 1 controller)
    Firmware: 77

    Boom
    Firmware: 57
    ----------------------------------------------------------

  4. #4
    Senior Member
    Join Date
    Apr 2008
    Location
    Paris, France
    Posts
    2,099
    I like the idea.
    Have you experimented with a printed QR or barcode that would send LMS a play:// URL?
    I am sure browsing a paper collection offers a great user experience; I've been wondering how the roundtrip to the digital realm would feel like.
    3 SB 3 • Libratone Loop, Zipp Mini • iPeng (iPhone + iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Server Power Control by Gordon Harris • Smart Mix, Music Walk With Me, What Was That Tune? by Michael Herger • PowerSave by Jason Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display, SaverSwitcher, ContextMenu by Peter Watkins.

  5. #5
    Junior Member
    Join Date
    Jul 2006
    Posts
    8
    Quote Originally Posted by adhawkins View Post
    Hi,

    In article <oneshot.7y4wnb (AT) no-mx (DOT) forums.slimdevices.com>,
    oneshot<oneshot.7y4wnb (AT) no-mx (DOT) forums.slimdevices.com> wrote:
    > Thought this may be of some use to a few people. I have produced a
    > script which produces a PDF catalogue of the albums in LMS. It uses the
    > command line interface to interrogate LMS and the perl PDF::API2 library
    > to produce the catalogue.
    >
    > It works out space requirements so that an album doesn't span a page.
    >
    > It prints the album title, artist and year, the album art and a track
    > listing for each album. For large libraries the output can get large. I
    > have 295 albums and the output runs to 60 pages.
    >
    > It can be downloaded from http://www.while.org.uk/lmspdfcreator - there
    > is also an example of the output on that page.


    Looks interesting, but doesn't seem to work on my server. Could it be that
    my server needs a password?

    Would be nice if the script could handle this, and also get the parameters
    from command line arguments. Any chance of adding the password feature at
    least?

    Thanks

    Andy
    Hi

    Yes currently doesn't handle passwords as I have my server behind a firewall. I will look at adding this feature - stay tuned!!

    Adding the parameters as command line options isn't too difficult either.

  6. #6
    Junior Member
    Join Date
    Jul 2006
    Posts
    8
    Ok

    I have updated the script to now use login. You can also specify the parameters on the command line if you prefer.

    Options are:

    -v print version and exit
    -h print help and exit
    -u <user> specify the user
    -p <password> specify the password
    -o <file> specify the output file
    -H <url> specify the host url

    omitting any of these will default to the preset at the top of the file.

  7. #7
    Senior Member
    Join Date
    May 2005
    Location
    UK
    Posts
    706

    PDF Catalogue

    Hi,
    In article <oneshot.7y857z (AT) no-mx (DOT) forums.slimdevices.com>,
    oneshot<oneshot.7y857z (AT) no-mx (DOT) forums.slimdevices.com> wrote:
    > I have updated the script to now use login. You can also specify the
    > parameters on the command line if you prefer.


    Thanks for that, just given it a try. It's now working, and produces a 158
    page PDF file from my library.

    A few observations:

    1. There are lots of warnings about uninitialised values while it is
    running.

    2. The font used in the output is a bit small for my taste. Any chance of
    allowing the size to be configurable?

    3. The track listings seem to be a bit scrunched up to me.

    4. Nowhere (that I can see) does it list the album name and artist.

    5. A number of albums have no tracks listed in them, all they have is the
    coverart and '1-00.' next to it.

    6. The program does not correctly handle unicode characters.

    7. For multi-disk albums, it might be better to try to break the track
    listing into each disk? I suspect this may be a personal preference, so you
    might want to make this optional.

    8. Some of the albums have tracks missing. For example one goes from 1-01 to
    1-13, then 2-14 to 2-26 (looking at it, it's possible that this is down to
    the way the files are tagged...)

    If you want to contact me offline, I can give you a copy of my resultant PDF
    file if it would help.

    Thanks for the update.

    Andy


  8. #8
    It would be helpful to have the option to sort output by Artist then Album alphabetically, rather than just album.

    Sent from my Nexus 5 using Tapatalk

  9. #9
    Senior Member w3wilkes's Avatar
    Join Date
    Jan 2009
    Location
    Utah, USA
    Posts
    1,074
    Quote Originally Posted by atca View Post
    It would be helpful to have the option to sort output by Artist then Album alphabetically, rather than just album.
    How about sort by (a pick of Artist or Album Artist), Year, Album
    Main system - Rock Solid with LMS 7.9 on WHS 2011 - 2 Duets and Squeeseslave
    Portable system - Rock solid with LMS 7.9 on Win10 Pro - 1 Duet and Squeezeslave

  10. #10
    Senior Member iPhone's Avatar
    Join Date
    Oct 2007
    Location
    Atlanta
    Posts
    3,166

    One Word, Tonido

    .
    Why or who wants to have to carry a printed copy with them or have a saved PDF or Word file on a Smart Phone that has to be updated?????

    Install Tonido on your Server and have direct up to date listing access to ALL your movies and music directly on you Smart Phone from anywhere you have an Internet Connection via WiFi or your Cellular Provider's coverage! And here is the bonus, every time you add or rip a CD or Movie to your server, it is immediately on Tonido the next time you open the App without any work on your part.

    I have my Smart Phone with Tonido App wherever I go, CD Warehouse, Goodwill, Church yard sale, Walmart, or any location where I can pickup additional Digital Media.
    iPhone
    Media Room:
    ModWright Platinum Signature Transporter, VTL TL-6.5 Signature Pre-Amp, Ayre MX-R Mono's, VeraStarr 6.4SE 6-channel Amp, Vandersteen Speakers: Quatro Wood Mains, VCC-5 Reference Center, four VSM-1 Signatures, Video: Runco RS 900 CineWide AutoScope 2.35:1, Vandersteen V2W Subwoofer

    Living Room:
    Transporter, ADCOM GTP-870HD, Cinepro 3K6SE III Gold, Vandersteen Model 3A Signature, Two 2Wq subs, VCC-2, Two VSM-1

    Office: Touch with Vandersteen VSM-1s
    Kitchen: Touch in-wall mount w/ Thiel Powerpoint 1.2s
    Bedroom: Squeezebox BOOM
    Bathroom: Squeezebox Radio
    Around the House: SliMP3, SB1, SB2, SB3
    Ford Thunderbird: SB Touch, USB drive
    Ford Expedition: SB Touch, USB drive

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •