INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: When do the browse ids change?  (Read 341 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
When do the browse ids change?
« on: January 01, 2024, 12:34:13 pm »

There's no such thing as an immutable artist id or album id in Media Center.

The browse tree gives different ids each run.
referring to MCWS/v1/Browse/Children

what does "each run" mean here?

each time MC is started?
whenever the underlying content changes?

context = to what extent is it safe to cache such values?
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10943
Re: When do the browse ids change?
« Reply #1 on: January 01, 2024, 01:07:56 pm »

MC restarts invalidate them, and they are repopulated lazily, eg. it depends on the order stuff is accessed in.

I don't believe they get cleared mid-run.
Logged
~ nevcairiel
~ Author of LAV Filters

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: When do the browse ids change?
« Reply #2 on: January 01, 2024, 01:54:38 pm »

Ok thanks

Theoretically I could cache these values then if uptime was available, it doesn't seem to be though. Can it be added to /Alive? Though that still wouldn't help if new content were added. Probably the higher level nodes could.be cached but not the actual content
Logged
Pages: [1]   Go Up