INTERACT FORUM

Please login or register.

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

Author Topic: Last.FM and Wikipedia Artist direct URL and Future request  (Read 693 times)

F Ribeiro

  • Junior Woodchuck
  • **
  • Posts: 76
  • If it isn't broken don't fix it.
Last.FM and Wikipedia Artist direct URL and Future request
« on: December 11, 2019, 08:12:27 am »

When playing an album, I want an option that allows Media Center to open the Artist url in Last.FM and Wikipedia.

Seems to me that the best option would be the Links option in Tools menu.

So, I set a new link with the Manage Links option in Media Center.
Being JRiver written in C++, I realized I had to deal with the escape character (IE: character \ before characters : and /)

This way I find my links:
             for Last.FM is: www.last.fm\/pt\/music\/\[Artist]               (for english: www.last.fm\/music\/\[Artist] )
             for Wikipedia is: \/\/en.wikipedia.org\/wiki/\[Artist]

(I setup the Manage Links to open in external Browser).

It works most of the times and (for me) it is a great way to have direct access to artist info like biography, albums, similar artists, etc. with two clicks on the mouse.
Having an account in Last.FM, it will allow access to the site futures and options.


Future request:

Using the option Customize Toolbar on Media Center, be able to put an icon in the toolbar for direct access to user defined URLs.
It would turn the direct access to the Artist page in Last.FM and Wikipedia really easy, direct and fast.

By this point, you can forget what is following because it works.

---
But you may want to master the Link future of Media Center thinking on another direct link options, and that's why I need to ask for help:

Problems:
I was unable to deal with the : character when I tried the complete URL (as an example, for Last.FM would be (with the escape characters) https\:\/\/www.last.fm\/pt\/music\/\[Artist ]  but nope, it did not work.
So, I had to stay with the above options without the "https:" part of the URL. Like I said, it works.

Another problem is that, in fact, in the artist name, the spaces should be replaced with the + character for last.FM and _ character for Wikipedia.
I tried the replace() function but I was unable to define the space character to the function.

Example:
         The correct URL for Diana Krall in Last.FM should be:
                            https://www.last.fm/pt/music/Diana+Krall
         and for Wikipedia should be:
                            https://en.wikipedia.org/wiki/Diana_Krall

So, I tried:
                www.last.fm\/pt\/music\/\ replace([Artist], ,+)
                www.last.fm\/pt\/music\/\ [replace([Artist], ,+)]
                ... and a lot of other aklternatives, but no way.

Again, The lucky is that the options:
         For Last.FM: www.last.fm\/pt\/music\/\[Artist]
         For Wikipedia: \/\/en.wikipedia.org\/wiki/\[Artist]
They work just fine because:
         Last.FM will replace spaces with the %20
         Wikipedia will replace spaces with _

Is the same as typing in your browser:
         https://www.last.fm/pt/music/Diana%20Krall
or
         https://en.wikipedia.org/wiki/Diana_Krall

Anyway, it would be nice to master this.
Logged
JRiver Media Center 25 PC and MAC | PC: Dell Latitude E5250 - Windows 10 Pro | MAC: Mac Mini late 2014 - Mojave | Amp: Classe CAP-2100 | CD Player: Meridian G08.2 | DAC: Naim DAC V1 | Turntable: Linn Axis, Akito tonearm, Adikt MM | Loudspeakers: ProAc Response D28 | Cables: Transparent, Nordost | Server: Synology DS216 Play Raid 1 |
Pages: [1]   Go Up