Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385

    Artist names as sorted

    Does anybody know if it's possible (from the HTML I/F) to access the artist "as sorted" or to get access to the list of ignored articles ("ignoredarticles")?

    If there a documentation of preference settings, it's not in the CLI doc and I can't find it in the wiki.

    Thx in advance

    Joerg

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,931

    Artist names as sorted

    > Does anybody know if it's possible (from the HTML I/F) to access the
    > artist "as sorted"


    I'm not sure I understand what you want. Isn't the artist list sorted?

    > or to get access to the list of ignored articles
    > ("ignoredarticles")?


    The list of ignored articles can be requested by using a "pref" CLI call over JSON/RPC. JSON/RPC is the Swiss Army knife to access any aspect of SC over http.

    Michael

  3. #3
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    Quote Originally Posted by Michael Herger View Post
    > Does anybody know if it's possible (from the HTML I/F) to access the
    > artist "as sorted"


    I'm not sure I understand what you want. Isn't the artist list sorted?

    > or to get access to the list of ignored articles
    > ("ignoredarticles")?


    The list of ignored articles can be requested by using a "pref" CLI call over JSON/RPC. JSON/RPC is the Swiss Army knife to access any aspect of SC over http.

    Michael
    Thanks, I DID understand, that CLI can do it. However, I need access from HTML, not JavaScript.
    What I want to do is build header rows to separate the sorted list, for example to have a "R" before Radiohead, Rolling Stones...
    Problem is to find out, where "Q" ends and "R" begins because you can't just use the first character of the artist name since, for "The Rolling Stones" that would be a "T"...
    If I want to skip articles by myself (bad enough) I first have to know what they are...

    So... any ideas?

    Joerg

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,931

    Artist names as sorted

    > Thanks, I DID understand, that CLI can do it. However, I need access
    > from HTML, not JavaScript.


    You mean using TT?

    [% USE Prefs %]
    [% articles = preferences('server').get('ignoredarticles') %]

    Michael

  5. #5
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    Quote Originally Posted by Michael Herger View Post
    > Thanks, I DID understand, that CLI can do it. However, I need access
    > from HTML, not JavaScript.


    You mean using TT?

    [% USE Prefs %]
    [% articles = preferences('server').get('ignoredarticles') %]

    Michael
    Yes ;-)
    Thx.

    About the second question: Is there a documentation about the available preferences/preference tags?

    Joerg

  6. #6
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,931

    Artist names as sorted

    > About the second question: Is there a documentation about the available
    > preferences/preference tags?


    Hmm... the code? :-/

  7. #7
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    Quote Originally Posted by Michael Herger View Post
    > About the second question: Is there a documentation about the available
    > preferences/preference tags?


    Hmm... the code? :-/
    No TT code anymore :-(
    I DID try to find preferences in all the js code, yet it's a bit distributed...

    [% USE Prefs %]
    [% articles = preferences('server').get('ignoredarticles') %]

    Looks good, yet doesn't work, returns undefined.

  8. #8
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,385
    That would have to be

    [% USE Prefs %]
    [% articles = Prefs.preferences('server').get('ignoredarticles') %]

    ;-)

  9. #9
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,931

    Artist names as sorted

    > That would have to be

    Ooops, sorry. Simplified my example too much :-/.

    If in doubt often a grep over the HTML folder will get you some working code.

    Michael

  10. #10
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    10,073
    Quote Originally Posted by Michael Herger View Post
    > Does anybody know if it's possible (from the HTML I/F) to access the
    > artist "as sorted"

    I'm not sure I understand what you want. Isn't the artist list sorted?
    I believe he was asking whether contributors.namesort is available within TT templates?

Posting Permissions

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