NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients v
« Previous 1 2 3 Next »
Sorting clientstore entries

 
  • 0 Vote(s) - 0 Average
Sorting clientstore entries
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#1
2022-03-19, 03:19 PM
Sub:

Would it be possible for NextPVR to sort the entries in the _clientstore.xml files so that the plain and the "_video" versions were next to each other and so that it was easier to find a specific entry?

Also, is the lookup case-sensitive? I notice that I have a few "duplicate" entries (e.g. KeyCode-INFO_video, KeyCode-info_video) where only the keycode case is different. I'm wondering if that is from early testing or if I really need the duplicates.

Right now, I've got sort of a bit of a jumbled mess:
Code:
<Values>
  <KeyCode-MEDIA_SKIP_FORWARD_video>{CTRL}O</KeyCode-MEDIA_SKIP_FORWARD_video>
  <KeyCode-INFO_video>{CTRL}B</KeyCode-INFO_video>
  <KeyCode-info_video>{CTRL}B</KeyCode-info_video>
  <RecordingDefaultView>ReadyAlternate</RecordingDefaultView>
  <KeyCode-U115_video></KeyCode-U115_video>
  <KeyCode-U113_video></KeyCode-U113_video>
  <KeyCode-U114_video></KeyCode-U114_video>
  <KeyCode-U113></KeyCode-U113>
  <LastChannelGroup>Favorites</LastChannelGroup>
  <SORT_READY_RECORDINGS_GROUPS>SORT_DATE_DESC</SORT_READY_RECORDINGS_GROUPS>
  <KeyCode-U114></KeyCode-U114>
  <KeyCode-U241></KeyCode-U241>
  <KeyCode-U115></KeyCode-U115>
  <KeyCode-INFO>Menu</KeyCode-INFO>
  <SORT_READY_RECORDINGS>SORT_DATE</SORT_READY_RECORDINGS>
  <KeyCode-MEDIA_SKIP_FORWARD>{CTRL}O</KeyCode-MEDIA_SKIP_FORWARD>
  <SORT_PENDING_RECORDINGS>SORT_DATE</SORT_PENDING_RECORDINGS>
  <UsingArtworkView>false</UsingArtworkView>
  <LastChannel>802</LastChannel>
  <KeyCode-dpad_up_video>{CTRL}M</KeyCode-dpad_up_video>
  <SORT_ALTERNATE_READY_RECORDINGS>SORT_A_TO_Z</SORT_ALTERNATE_READY_RECORDINGS>
  <KeyCode-info>Menu</KeyCode-info>
  <KeyCode-media_skip_forward>{CTRL}O</KeyCode-media_skip_forward>
  <KeyCode-media_skip_forward_video>{CTRL}O</KeyCode-media_skip_forward_video>
</Values>
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#2
2022-03-19, 03:27 PM (This post was last modified: 2022-03-19, 03:39 PM by mvallevand.)
It is case sensitive, but the KeyCodes come from the client. Lower case would be long presses (I explained that as L for both lower and long)

config.xml isn't much different, this just has odder keys. I personally wouldn't want it sorted since new keys could get lost.

Martin
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#3
2022-03-19, 03:47 PM (This post was last modified: 2022-03-19, 03:48 PM by BrettB.)
(2022-03-19, 03:27 PM)mvallevand Wrote: It is case sensitive, but the KeyCodes come from the client.  Lower case would be long presses (I explained that as L for both lower and long)
Yeah, I thought that they came from the client. But I didn't remember about lower case=long press. I was actually wondering about how to distinguish a long-press. Smile

Quote:config.xml isn't much different, this just has odder keys.  I personally wouldn't want it sorted since new keys could get lost.
config.xml has a couple of key difference, though:
1. It has keys/values broken into sections
2. (Basically) the keys (and order) are static

Fortunately, the clientstore isn't something that one typically needs to edit beyond an initial setup and a very occasional change to how (new) keys operate.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,697
Threads: 767
Joined: Nov 2003
#4
2022-03-19, 03:49 PM
Until now they've been in the order they were added.

I've made a change for the next build so that it'll sort the entries whenever it adds one.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#5
2022-03-19, 03:52 PM (This post was last modified: 2022-03-19, 04:00 PM by mvallevand.)
That's too bad, it means having to look at the clientstore immediately when keys are entered. I liked the old way, a new key would be at the bottom.

The issue is primarily the four states (video t/f long t/f) aren't entered at once.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,697
Threads: 767
Joined: Nov 2003
#6
2022-03-19, 04:11 PM
sigh....can't win. Big Grin

Ok, it's back to how it was.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,697
Threads: 767
Joined: Nov 2003
#7
2022-03-19, 04:16 PM
I've added a <SortClientStore>false</SortClientStore> settting for the next build. You can change it to true if you'd prefer it sorted.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,917
Threads: 956
Joined: May 2006
#8
2022-03-19, 04:18 PM
Thanks, Brett maybe try this if you'd like https://github.com/kodybrown/sortxml

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Duplicate Title Entries in Recordings SteveTyrakowski 34 7,626 2021-10-24, 08:05 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode