Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2011
    Location
    Utrecht, The Netherlands
    Posts
    59

    Shortcut for "Only rescan online library"

    Hi all,

    I use the very handy shortcut/link http://{LMS-IP}/settings/index.html?p0=rescan to trigger a rescan (with a custom Material JSON action).

    But does anybody know how trigger a Only rescan online library action?
    These do nothing, unfortunately:
    • http://{LMS-IP}/settings/index.html?p0=rescanonlinelibrary
    • http://{LMS-IP}/settings/index.html?p0=onlinelibrary

    Thanks,
    Randy
    1x Classic / 2x Radio / 2x Receiver / 1x DAC32 / LMS 8.3.0 - 1630708871 on Docker / Ubuntu 18.04 LTS
    http://www.last.fm/user/rndr

  2. #2
    Senior Member
    Join Date
    Mar 2017
    Posts
    3,539
    Quote Originally Posted by rlem View Post
    Hi all,

    I use the very handy shortcut/link http://{LMS-IP}/settings/index.html?p0=rescan to trigger a rescan (with a custom Material JSON action).

    But does anybody know how trigger a Only rescan online library action?
    These do nothing, unfortunately:
    • http://{LMS-IP}/settings/index.html?p0=rescanonlinelibrary
    • http://{LMS-IP}/settings/index.html?p0=onlinelibrary

    Thanks,
    Randy
    Seeing as you are using a Material action, you could just call Material's javascript:

    Code:
    {
       "title":"Rescan online only",
       "script":"lmsCommand('', ['rescan', 'onlinelibrary']);",
       "icon":"link"
    }
    Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.

  3. #3
    Member
    Join Date
    May 2011
    Location
    Utrecht, The Netherlands
    Posts
    59

    Thanks!

    Works flawlessly, thanks a lot!
    1x Classic / 2x Radio / 2x Receiver / 1x DAC32 / LMS 8.3.0 - 1630708871 on Docker / Ubuntu 18.04 LTS
    http://www.last.fm/user/rndr

Posting Permissions

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