INTERACT FORUM

Please login or register.

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

Author Topic: How to "reload" Track Info page html from disk?  (Read 2752 times)

YogiPL

  • Recent member
  • *
  • Posts: 41
How to "reload" Track Info page html from disk?
« on: September 29, 2021, 03:52:59 am »

Hi!

I'm trying to create my own Track Info page, but I can't seem to find a way to reload after making changes to see results apart form changing it's folder name and restarting the application.
Is there a smarter way to do this (some kind of "clear cache"?)

Thanks!

PS. I'm on macos if that changes anything.
Logged

YogiPL

  • Recent member
  • *
  • Posts: 41
Re: How to "reload" Track Info page html from disk?
« Reply #1 on: September 29, 2021, 12:09:07 pm »

Ok, nevermind.

I was editing the skin in /Applications/Media Center(...) . I figured out it's copied to ~/Library/Application Support/JRiver (...) after launching the program.

:)
Logged

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1088
Re: How to "reload" Track Info page html from disk?
« Reply #2 on: September 29, 2021, 11:30:56 pm »

Hi!

I'm trying to create my own Track Info page, but I can't seem to find a way to reload after making changes to see results apart form changing it's folder name and restarting the application.
Is there a smarter way to do this (some kind of "clear cache"?)

Thanks!

PS. I'm on macos if that changes anything.


The simplest way to check if your changes are correct is to switch to a different TrackInfo Plugin and then immediately switch back to your updated TrackInfo Plugin while MC is running.
Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.

HPBEME

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1103
  • Goodnight and Good Luck
Re: How to "reload" Track Info page html from disk?
« Reply #3 on: October 02, 2021, 01:15:51 pm »

While English Tiger's approach works and is pretty fast, I discovered an even easier/quicker way...

After you right click in the main display window to bring up the visualizations/trackinfo context menu, there will be an "Enable Scrollbars" item 2nd from the bottom.  It may or may not have a checkmark next to it.  Whichever it is, just select that and it will refresh the current trackinfo template you are using.  This saves you from having to navigate to the context+sub-menu twice (once to select a different template, and then again to re-select the one you are developing).

FYI: whether Enable Scrollbars is active (checked) or not, it does not seem to affect/change the trackinfo templates behavior in any way that I can find. If you have scrollbars in your template and you uncheck it, it will still have scrollbars.  If you don't have scrollbars in your template, activating this setting does not magically add them.  So it's stated function is inactive, but it is a super convenient way to "refresh" the display window!  Perhaps JRiver should change the menu item name from Enable Scrollbars to Refresh Display?

Final note... the Enable Scrollbars menu item only shows if you are using a trackinfo template (any template).  If you are showing the Cover Art (with or without lyrics), MC's built-in visualization (3D or standard), the item will not be listed in the context menu.
Logged

Doof

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5908
  • Farm Animal Stupid
Re: How to "reload" Track Info page html from disk?
« Reply #4 on: October 02, 2021, 10:19:18 pm »

Can't you also just change tracks?
Logged

HPBEME

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1103
  • Goodnight and Good Luck
Re: How to "reload" Track Info page html from disk?
« Reply #5 on: October 02, 2021, 10:27:57 pm »

Well slap my ass and call me Susan... that works!  That probably would have saved me a few thousand clicks... thanks Doof.
Logged

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1088
Re: How to "reload" Track Info page html from disk?
« Reply #6 on: October 03, 2021, 05:40:39 am »

Or you could do what I did and add a "Reload/Refresh Button + the appropriate HTML/CSS" to the web-page - clicking on that will force MC to load the modified HTML File  ;D ;D ;D
Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.

EnglishTiger

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1088
Re: How to "reload" Track Info page html from disk?
« Reply #7 on: October 03, 2021, 08:52:12 am »

Just out of curiosity I went looking to see where MC copies the TrackInfo Plugin Files when playing tracks on a Windows Machine.

It copies all the files to >>>>App Data\Roaming\JRiver\Media Center 28\Temp\TrackInfo

But then it does something crafty/smart - For the track I was playingthe index.html file is shown in the 1st pic


But MC appears to create and use a file called Generated.html where the TrackInfo_Insert commands are replaced by the results of those gets - see pic 2

Logged
Apple Mac Mini Desktop Computer with M4 Pro chip with 12 core CPU and 16 core GPU: 24GB Unified Memory, 512GB SSD Storage, Gigabit Ethernet, 3 Thunderbolt5 + 2USBC ports.
Pages: [1]   Go Up