It is currently June 17th, 2024, 6:27 am

NowPlaying plugin - Multiple Media Player Support

Share and get help with Plugins and Addons
Thomas_1234
Posts: 1
Joined: December 21st, 2012, 5:26 pm

Re: NowPlaying plugin - Multiple Media Player Support

Post by Thomas_1234 »

i'm using iTunes 11,i changed all mPlayer to iTunes
but isn't working,can anyone share the ini for me? Thanks
User avatar
fragrant.monkey
Posts: 51
Joined: September 18th, 2010, 1:03 am

Re: NowPlaying plugin - Multiple Media Player Support

Post by fragrant.monkey »

Thomas_1234 wrote:i'm using iTunes 11,i changed all mPlayer to iTunes
but isn't working,can anyone share the ini for me? Thanks
Where did you change all this? What skin are you using?

Post your code here, and perhaps someone can spot the problems, and how to repair them.
fragrant.monkey :: deviantArt: aka snuffleupagus | coding: ThemeSaver for RocketDock | musician: Madera Dulce
lapsop
Posts: 14
Joined: November 15th, 2012, 4:07 pm
Location: Spain

Re: NowPlaying plugin - Multiple Media Player Support

Post by lapsop »

poiru wrote: The minute it becomes possible :) There is currently no way to retrieve that info.
Now is it possible? Thanks

Edit:
look at this link
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: NowPlaying plugin - Multiple Media Player Support

Post by poiru »

lapsop wrote:Now is it possible? Thanks

Edit:
look at this link
The libspotify library is used to implement a custom Spotify client (instead of interacting with the official Spotify client). So no, it's not possible at the moment, sadly.
lapsop
Posts: 14
Joined: November 15th, 2012, 4:07 pm
Location: Spain

Re: NowPlaying plugin - Multiple Media Player Support

Post by lapsop »

poiru wrote: The libspotify library is used to implement a custom Spotify client (instead of interacting with the official Spotify client). So no, it's not possible at the moment, sadly.
Ok,
Watch as they retrieve the cover art from the spotify API
http://ws.spotify.com/search/1/track?q=...
and
https://open.spotify.com/track/...
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: NowPlaying plugin - Multiple Media Player Support

Post by moshi »

lapsop wrote: Ok,
Watch as they retrieve the cover art from the spotify API
http://ws.spotify.com/search/1/track?q=...
and
https://open.spotify.com/track/...
this is a websearch api. it is used to guess a track's ID.
the NowPlaying plugin does not need to guess, it knows this ID already, else it wouldn't always display the right track name, artist name, etc.

the link to the album art (which is nowhere, neither in the search, nor lookup api for good reason on Spotify's behalf) would be:
http://d2us6zencw9qvn.cloudfront.net/website_reboot_assets/image_strip_2/size/trackID.jpg
no, you can not access these images.

Code: Select all

<Error>
<script/>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>4FBCE55BB0841991</RequestId>
<HostId>
P/yYAN+OIiPsrAKAs7gxFqy5n4VAgiPG7AhRpPdvUzKbP3/TK4rAaVrdLNNK96mb
</HostId>
</Error>
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: NowPlaying plugin - Multiple Media Player Support

Post by poiru »

moshi wrote:the NowPlaying plugin does not need to guess, it knows this ID already, else it wouldn't always display the right track name, artist name, etc.
With Spotify, NowPlaying can display only the track and artist name, which are obtained from the Spotify window title. I know that it is also possible to obtain the track ID in a (very) hacky way, which would allow the retrieval of more thorough information. At the moment, I have chosen not to use that hack.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: NowPlaying plugin - Multiple Media Player Support

Post by moshi »

there's not much to gain anyways.

http://ws.spotify.com/lookup/1/?uri=spotify:track:35OjTv3e5arNbGoCgfJ73Z

Code: Select all

<track xmlns="http://www.spotify.com/ns/music/1">
<script/>
<name>Everlong</name>
<artist href="spotify:artist:7jy3rLJdDQY21OgRLCZ9sD">
<name>Foo Fighters</name>
</artist>
<album href="spotify:album:4IBQvwIbtDluogvDe2qpaB">
<name>Skin And Bones</name>
<availability>
<territories>
AD AE AF AG AI AL AM AN AO AQ AR AT AU AZ BA BB BD BF BG BH BI BJ BM BN BO BR BS BT BY BZ CA CD CF CG CH CI CK CL CM CO CR CU CV DE DJ DM DO EC EG EH ER ET FJ FK FM FO GA GB GD GE GF GH GI GL GM GN GP GQ GT GU GW GY HN HR HT IE IL IO IQ IR IS JM JO KE KG KH KI KM KN KP KW KY KZ LA LC LI LK LR LS LY MC MD ME MG MH MK ML MM MN MO MP MQ MR MS MU MV MW MX MY MZ NA NC NE NI NP NR NU NZ OM PA PE PF PG PK PM PN PR PS PW PY QA RE RS RU RW SA SB SC SD SH SI SL SM SN SO SR ST SV SY SZ TC TD TF TG TH TJ TK TL TM TO TT TV TW TZ UA UG US UY UZ VA VC VE VG VN VU WF WS YE YT ZM ZW ZZ
</territories>
</availability>
</album>
<available>true</available>
<id type="isrc">USRW30600049</id>
<track-number>15</track-number>
<length>397.585000</length>
<popularity>0.48917</popularity>
</track>
lapsop
Posts: 14
Joined: November 15th, 2012, 4:07 pm
Location: Spain

Re: NowPlaying plugin - Multiple Media Player Support

Post by lapsop »

moshi wrote:there's not much to gain anyways.
...
I'm testing
ws.spotify.com/search/1/track?q=Name track+Name Artist

Code: Select all

...
<track href="spotify:track:67zU5l20xE3gdmr46YbKya">
...
And
open.spotify.com/track/67zU5l20xE3gdmr46YbKya
on view the url for the covert art

Code: Select all

...
<div class="album-cover-art mobile">
<img src="http://o.scdn.co/300/65ebfe4f8c889a5dd5fdb1fe5b6f078104d56fb3" border="0" alt="Billy la Rocca - Loquillo en Madrid"/>
...
With Webparse show inside my skin.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: NowPlaying plugin - Multiple Media Player Support

Post by moshi »

what you is called scraping.
if you do that with your skin, that's fine. you and nobody else will be held legally responsible for that.
although a lawsuit is unlikely, do not expect this to be implemented in Rainmeter (or any other software).
http://en.wikipedia.org/wiki/Web_scraping