Jump to content

Custom External Links / Provider Ids


mickle026

Recommended Posts

On 12/12/2023 at 10:59 PM, mickle026 said:

It needs documenting, but emby server (not this plugin) does not allow you to use certain characters there.  As you found out \ and / are two of them, others are " and '.  There may be more. It simply doesn't let you use a a double barrelled name out of the box.

I think it might be because of sql QUOTED_IDENTIFIER.  I have not tested it but you probably have to double them, like \\ and // .. season1//episode1. for it to work.  Like I said not tested it.  If it screws up you'll have to rescan the item from the movie list view (without opening its detail page), replace its meatadata, to remove the custom id from the db.

Sorry about the delay in testing this out. No doubling or escaping works but replacing each / with a \ does! Thanks for your help. 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
mickle026
On 02/01/2024 at 17:33, wangleiqq521.. said:

这些媒体的ID 不是填网页地址马

The IDs of these media are not the result of filling in the web address.

No idea what you are asking/saying here ....

If the links are not working for you, then you need to either re-read this thread or tell us what you are doing so that we can correct what is wrong for you.  The plugin is working just fine.

Link to comment
Share on other sites

  • 1 month later...
user24

Hi  @mickle026 Very nice work with what you have achieved with this plug-in so far. ⭐

It took my a little while to figure it out to start off with, but once I did, it is quite easy to configure and use.

I have added Official Website and Wikipedia Links for Music Artists. I've only added a few so far, to test out the functionality. As this is working well, I will be adding many more links for other artists bit-by-bit, over time. 

With Music Artists, I could easily make use of up to 4 custom links (at the moment there are only 2). My use case would be:

Official Website | Wikipedia | Facebook | YouTube

Sometimes lesser known obscure artists only have a Facebook page from which to find info. Some also have an official YouTube channel.

I could imagine that other Music users might also want to add streaming/other site links (e.g. Spotify) so it wouldn't take long to add another half dozen links. Maybe 4 is nowhere near enough!!!! (I would possibly add them as well, but as a lower priority.)

Some more examples are: Spotify | Deezer | Amazon Music | Apple Music | Tidal | Qobuz | YouTube Music | Bandcamp | CDBaby

I just did a quick test with Spotify and it works correctly. I haven't tried any of the others as yet.

This plug-in could end up being very popular with many (across all media categories), once they know about it. Cheers!

Link to comment
Share on other sites

mickle026
7 hours ago, user24 said:

Hi  @mickle026 Very nice work with what you have achieved with this plug-in so far. ⭐

It took my a little while to figure it out to start off with, but once I did, it is quite easy to configure and use.

I have added Official Website and Wikipedia Links for Music Artists. I've only added a few so far, to test out the functionality. As this is working well, I will be adding many more links for other artists bit-by-bit, over time. 

With Music Artists, I could easily make use of up to 4 custom links (at the moment there are only 2). My use case would be:

Official Website | Wikipedia | Facebook | YouTube

Sometimes lesser known obscure artists only have a Facebook page from which to find info. Some also have an official YouTube channel.

I could imagine that other Music users might also want to add streaming/other site links (e.g. Spotify) so it wouldn't take long to add another half dozen links. Maybe 4 is nowhere near enough!!!! (I would possibly add them as well, but as a lower priority.)

Some more examples are: Spotify | Deezer | Amazon Music | Apple Music | Tidal | Qobuz | YouTube Music | Bandcamp | CDBaby

I just did a quick test with Spotify and it works correctly. I haven't tried any of the others as yet.

This plug-in could end up being very popular with many (across all media categories), once they know about it. Cheers!

I will revisit this plugin at some point and add more , theres quite a few in your list there, I will see what I can do :)

  • Like 1
Link to comment
Share on other sites

user24

OK. Thank you. Please consider all those I listed as just possible examples. I would be more than happy with just 2 more general category options. That would give double the flexibility for everyone to add their own Artist favourite links. Up to you of course! In the meantime, I have plenty to keep me very busy with just adding Wikipedia Artist links... will take me a loooong time...

Link to comment
Share on other sites

mickle026

If you have save nfo enabled, they save there.  Then if you ever have to rebuild they will re-import.

so you want at least 2 more custom fields that you can make yourself in Artists?

Link to comment
Share on other sites

user24

Yes please, that is correct. At least 2 more custom fields.

That would give me plenty of scope and possibly be less work for you? 

If you wanted to implement any of my specific examples as additional fixed fields, at some later stage, that would just be a bonus.

Thanks for the nfo tip.

Link to comment
Share on other sites

mickle026

A few for you for now, i'll look at more later.  (I have not really tested them to see if they work, but they should - we will see ...)

See first post for the dll

Screenshot2024-02-18at23-30-32MIKE-PC.thumb.png.919b7db5e231cce3ebeae2b09db7a36c.png

Screenshot2024-02-18at23-30-19MIKE-PC.thumb.png.11cc7cb27bcb962e59930d3530309eb1.pngAdded

Edited by mickle026
Link to comment
Share on other sites

user24

Thanks. Most appreciated. I'm happy to help test and report back. I'll split it into parts rather than one really long post. Part 1:

(I suspect a lot of what I am finding is possibly more due to URL differences and some site membership restrictions, rather than your plug-in.)

I picked two world-famous Artists and two lesser-known Artists to try out the new provided options

Eric Clapton | Fleetwood Mac | 8 Ball Aitken | Ray Fuller & The Blues Rockers

Artist Facebook

  • EC – tested ok  https://www.facebook.com/ericclapton
  • FM – tested ok https://www.facebook.com/FleetwoodMac
  • 8B – tested ok https://www.facebook.com/8ballaitkenmusic
  • RF – didn’t work. I am not on Facebook though, so I ended up getting through to a Facebook log in page. I can get to the required page via Google https://www.facebook.com/p/Ray-Fuller-and-the-Bluesrockers-100063697862309/

Artist Instagram

Initially worked with 8 Ball Aitken. Then stopped working through Emby and via Google too. (I am not on Instagram though). Then, wouldn't work for any of the other artists either through Emby or Google. Needs further investigation from me? But I need to do some sort of browser clear/reset first?

Artist Reddit

  • EC – tested ok https://www.reddit.com/r/ericclapton/
  • FM – tested ok https://www.reddit.com/r/FleetwoodMac/
  • 8B – no Reddit page
  • RF – no Reddit page

Artist YouTube (https://YouTube.com/channel/{0}/)

  • EC – tested ok  https://www.youtube.com/channel/UCtCOFqqGGGunX71nfZgPQOQ
  • FM – tested ok https://www.youtube.com/channel/UCAb60rVrvVQVfSgrX1UWb0g
  • 8B – reverts to youtube.com because of URL path:  https://www.youtube.com/8ballaitken
  • RF – reverts to youtube.com because of URL path: https://www.youtube.com/@RayFullerandtheBluesrockers

Custom Artist Youtube Test (https://YouTube.com/{0})

  • EC – get “This page isn’t available” message
  • FW – get “This page isn’t available” message
  • 8A – tested ok
  • RF – tested ok

YouTube observation: Unless subscribed to the channel, YouTube autoplays a video. This limits the usefulness of having this link in Emby for music (e.g. difficult to play music while linking to YouTube). Otherwise, perhaps possible to disable the Autoplay by some other method???

More to follow...

Edited by user24
incorrect sub-heading
Link to comment
Share on other sites

user24

Part 2:

It is interesting that you put Spotify in the Album section. I am not sure how I would use Emby/Spotify this way, but you might have a specific use case in mind? I was thinking of having Spotify (and other streaming sites) in the Artist section. E.g. you are listening to music via Emby and want to see if there is any new music out by a particular artist – it’s then easy to link to the Artist on Spotify (or elsewhere) to find out and perhaps stream, if you are signed up? If I already have the Album on Emby, then I would just play it via Emby.

Anyway, I have still tested out the option:

Album Spotify

  • EC – The Definitive 24 Nights - tested ok https://open.spotify.com/album/7uLDovmFB97bee1kDTtCNl
  • FM – Rumours (Live) - tested ok https://open.spotify.com/album/24kD7cQnCojzadtNNlplxj
  • 8B – Ice Cream Man 2 - tested ok https://open.spotify.com/album/2NkPbxjONryZEMxEdwzT4h
  • RF – Pay The Price - tested ok https://open.spotify.com/album/59ipkv9JZvC6n8AkuXXWmc

So all good with this section as far as I can tell. More testing to follow...

P. S. I would still make use of the Custom links in Albums (e.g. for Wikipedia) to be able to read about an album while I am listening to it.

Edited by user24
Added P. S. section
Link to comment
Share on other sites

user24

Part 3:

Turned on custom 3 and 4, I couldn't get the new Album custom sections to work properly, so did a bit of trouble shooting:

Disabled all the sections under Album and just selected Custom 1 and Custom 2. These worked as they did previously.

Then enabled Custom 3 and was presented with the following error when trying to select any Artist from the Album Artists page:

errormessage.thumb.jpg.b822066fd00d27ebec0b8e24e8f083d4.jpg

Disabled 3 and Enabled 4. Now 1, 2, 4 all working as expected.

Disabled 1, 2, ,4. Enabled 3 only. The above pictured error returns.

Highly suspect a typo somewhere in the Custom Artist 3 code.

I was going to open the dll file and look for you, but I don't really know what to look for. You will likely find it fast?

That's all for now!

Edited by user24
Link to comment
Share on other sites

mickle026

Spotify - I have never used it and don't really know their layout.  I thought it was albums and track but it seems more like user playlists.  Although their site points at albums so I put it there

https://open.spotify.com/album/71O60S5gIJSIAhdnrDIh3N

 

OK, so in conclusion

 

Artist - I need to look at custom artist link 3,

Artist - Would it be beneficial to you to have a plain youtube link to youtube.com/{0} as well, then you could use whichever fitted your requirement?

Link to comment
Share on other sites

mickle026

Uploaded with custom id 3 fix typo for artists + youtube & amazon ids

For deezer, i just get "coming Soon" - not available in your country even with vpn located in france from their website so I cannot check the urls they use.

Edited by mickle026
Link to comment
Share on other sites

user24
9 hours ago, mickle026 said:

Artist - I need to look at custom artist link 3,

Artist - Would it be beneficial to you to have a plain youtube link to youtube.com/{0} as well, then you could use whichever fitted your requirement?

Yes and yes. I see you have done it now anyway. 🙂  I'll update you on further thoughts and further testing a bit later on when I get some free time...

Link to comment
Share on other sites

user24

OK, testing continues... Part 4:

Custom Artist Link 3 is working correctly. The only additional minor bug that I have found with the Custom Artist Links is that Link 1 does not obey the alphabetical sort order of all the Links on both the Edit Metadata pages and the Album Artist pages. E.g.:

linkorder1.thumb.png.6115196be1714a0796096098cd5df175.png

linkorder2.thumb.jpg.287f28d912eef417141475da778d48ac.jpg

Both YouTube options work nicely - thank you!

I picked another 6 Artists at random. 3 used the channel URL path and 3 used an @artistname URL path eg:

  • https://www.youtube.com/channel/UCAb60rVrvVQVfSgrX1UWb0g
  • https://www.youtube.com/@fleetwoodmac

As per the above examples, some artists use both.

I figured out that it is easy to stop the autoplay of the videos by installing a Chrome Extension: AutoplayStopper. There is also an extension just for YouTube, but I like this one better as it blocks autoplay videos on all sites. 

More to follow...

Link to comment
Share on other sites

user24

Part 5:

I asked the Spotify question previously, just because I like finding out about how others arrange their music, that’s all. By going through many of the forum music topics, I have learnt a lot about how to use and customise Emby. By combining people’s tips, a couple of nice plug-ins and some custom CSS, it is possible to create a set-up that works well for me. I’ve also been posting some of what I have learnt, so that others can use the same ideas for themselves if they want to.

I tried the Amazon Music link and it takes me to a login page, rather than direct to the Artist page. I expect that this same result could be a potential issue with some of the other streaming sites??? Haven't had time yet to try them all through the custom links...

Here is what you need for Spotify Artist: https://open.spotify.com/artist/1LLlMQFnYUd7M9H7dYLR78

Here is what you need for Deezer Artist: https://www.deezer.com/en/artist/4548066

Beyond that, I'm not sure that there is a great benefit in putting extensive time and effort into all of the others (unless you want to).

I am most satisfied with:

Official Website | Wikipedia | Facebook | YouTube for extensive use

Plus a couple of bonus custom links and streaming sites to play around with further.

Cheers!

P.S. I would cross CDBaby off the list anyway. It's a useful music site, but I an not sure it will work well linking through Emby?

Edited by user24
Added P.S. Section
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...