INTERACT FORUM

Please login or register.

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

Author Topic: New Plugin: Last.Fm Auto DJ v1.2  (Read 89322 times)

Systex

  • Member
  • *
  • Posts: 4
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #150 on: May 23, 2010, 05:16:30 pm »

First off, let me say THANK YOU for linking the source code! This has allowed me to fix my own problem.

For anybody that was curious, the problem line of code was

listTracks.match*=1000;

in weightRecentArtists(...) in file LastFmHelper.cs.

I changed that line to be

if (listTracks.match >= (Decimal.MaxValue/1000))
{
     listTracks.match = Decimal.MaxValue;
}else
{
     listTracks.match*=1000;
}

to avoid the overflow error. This was happening when the value of listTracks.match was within 1000 times of the maximum value allowed for a Decimal datatype. Now, it simply sets the match value to be the maximum if it is going to overflow. I've been using the plugin now for several hours without any of the errors I was getting before.

I compiled the changes using Visual Studio 2010 Pro and am linking the revised .dll so that anybody else who runs into this problem can save the hassle of fixing it themselves. Enjoy--

MC_Plugin_LastFmDJ.dll  --  http://www.megaupload.com/?d=HUNMC3IS
Interop.MediaCenter.dll  --  http://www.megaupload.com/?d=A7JUKBH7
Logged

bytestar

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1286
  • Alpha/Betatester
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #151 on: May 28, 2010, 02:02:24 pm »

Does not works for me.

i have use

"C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm" /unregister "C:\Program Files (x86)\J River\Media Center 15\Plugins\LastFmDJ\MC_Plugin_LastFmDJ.dll"
"C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm" /unregister "C:\Program Files (x86)\J River\Media Center 15\Plugins\LastFmDJ\Interop.MediaCenter.dll"

and than

"C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm" "C:\Program Files (x86)\J River\Media Center 15\Plugins\LastFmDJ\MC_Plugin_LastFmDJ.dll"
"C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm" "C:\Program Files (x86)\J River\Media Center 15\Plugins\LastFmDJ\Interop.MediaCenter.dll"

Both was successful but the plug in cannot be initialized, is this because MC_Plugin_LastFmDJ.tlb is missing ? please upload all files from the Folder !!!
Logged
Official Microsoft © product tester.
Download the latest language file https://1drv.ms/u/s!AnQ3L_bTnnzv4otXL9-G4rUj9wX6Tw?e=TLGgjb (is constantly updated)

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #152 on: May 28, 2010, 02:52:48 pm »

Try the attached file :)
I've fixed the code he posted (I'd assume that was a typo when copying into the forum), and redone the compile, including everything.

No comments on whether this works or not, I don't use LastFM.

-Leezer-
Logged

bytestar

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1286
  • Alpha/Betatester
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #153 on: May 28, 2010, 04:22:45 pm »

Does not works, registering yes but it cannot be initialized again

change the key Version in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JRiver\Media Jukebox\Plugins\Interface\LastFmDJ

from 1.2 to 1.0 it works now, but why is it not 1.2 ?
Logged
Official Microsoft © product tester.
Download the latest language file https://1drv.ms/u/s!AnQ3L_bTnnzv4otXL9-G4rUj9wX6Tw?e=TLGgjb (is constantly updated)

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #154 on: May 28, 2010, 04:49:55 pm »

Does not works, registering yes but it cannot be initialized again

I've run a couple of quick tests, and it initialises here, and the basic setup seems to work.
More details please-
1. Where are you getting the failed to initialise message?
2. How did you install it? (Use the installer from the first post, altering the path, and then copy in my files)


Does not works, registering yes but it cannot be initialized again

change the key Version in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JRiver\Media Jukebox\Plugins\Interface\LastFmDJ

from 1.2 to 1.0 it works now, but why is it not 1.2 ?
All I can really say is that it works with 1.2 here.
You didn't restart MC in the meantime or something did you? (Not sure if it dynamically loads plugins/ settings therin, or whether they're read once at startup)

Cheers

-Leezer-
Logged

bytestar

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1286
  • Alpha/Betatester
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #155 on: May 28, 2010, 05:16:44 pm »

Yes you are right i have restart the pc and now it works with the 1.2 Key !!!

i hope now all is good.
Logged
Official Microsoft © product tester.
Download the latest language file https://1drv.ms/u/s!AnQ3L_bTnnzv4otXL9-G4rUj9wX6Tw?e=TLGgjb (is constantly updated)

Systex

  • Member
  • *
  • Posts: 4
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #156 on: May 28, 2010, 07:21:11 pm »

Try the attached file :)
I've fixed the code he posted (I'd assume that was a typo when copying into the forum), and redone the compile, including everything.

No comments on whether this works or not, I don't use LastFM.

-Leezer-


What was wrong with the code I posted? I didn't upload the .tlb file because the change I made didn't actually affect that file. Everything worked fine for me by simply replacing the two old .dll files with the two new ones that I posted. How is everyone else installing this plugin?
Logged

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1589
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #157 on: May 29, 2010, 05:59:08 pm »

What was wrong with the code I posted? I didn't upload the .tlb file because the change I made didn't actually affect that file. Everything worked fine for me by simply replacing the two old .dll files with the two new ones that I posted. How is everyone else installing this plugin?

The issue with the code snippet you posted is that you're missing some
Code: [Select]
[i] ;)
It won't compile on SharpDevelop or VS2010.
Should look like this:
Code: [Select]
if (listTracks[i].match >= (Decimal.MaxValue/1000))
{
listTracks[i].match = Decimal.MaxValue;
}else
{
listTracks[i].match*=1000;
}
Like I said, I presume this is a transcription error :)
If this is working nicely, I'll see about building a new installer.

-Leezer-
Logged

Systex

  • Member
  • *
  • Posts: 4
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #158 on: May 29, 2010, 06:03:31 pm »

Ah, yes. You're exactly correct. I somehow lost the indecies when I was typing it up in a post.
Logged

prg02

  • Recent member
  • *
  • Posts: 14
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #159 on: October 07, 2012, 07:12:29 pm »

Hello,

I know this is an old post, but I have been trying this plugin and when it works it is great, but since I have a large library, sometimes I have the overflow error. I have tried the module posted but I cannot get it to work, MC18 says "Interface plugin LastFmDJ cannot be found or created" I tried to unregister and register using MS.NET v 4.0 and I have the same problem. Any ideas someone?

Thanks

Pablo
Logged

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #160 on: September 23, 2013, 05:06:57 am »

GREAT PLUGIN!!!

An old thread, but the plugin is still available for download on MC ( http://accessories.jriver.com/mediacenter/accessories.php ), and it works on MC 18.0.212!

However, something I am wondering: I want to hear 5star rated tracks from my library only, so I set up an smartlist with all my 5* tracks in the library. I also selected this smartlist under "advanced" to select songs from this playlist.

Still I get also songs from the complete library (with 4*, etc.).

Is this a bug, or did I misconfigure something?

Thx :)
Logged

Reigi

  • Recent member
  • *
  • Posts: 17
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #161 on: February 25, 2015, 02:33:45 am »

It doesn't work with MC 20. I get an error message in debug:
Running Authentication with Last.Fm
Error downloading radio data

Anyone with MC 20 and successful in running the plugin.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7880
  • Long cold Winter...
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #162 on: February 25, 2015, 06:19:08 am »

I doubt it works anymore. Last.fm removed the radio/streaming features from their site.
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Reigi

  • Recent member
  • *
  • Posts: 17
Re: New Plugin: Last.Fm Auto DJ v1.2
« Reply #163 on: February 25, 2015, 08:16:59 am »

Thank you, that's good (or even less good  :() to know.
Logged
Pages: 1 2 3 [4]   Go Up