ScrobblerDJ v1.26, Let your music free!!!
Every once in a while this thread gets on fire and it is always because of my "inability" to post that new version I said I am working on almost a year ago.
I am really glad that there is so much interest for SDj and I feel even happier to see so many scripters stand by me but I am also aware that I have disappointed a *LOT* of ppl. Guest, is one of them but as I have already stated in the past he has a more *offensive* way to express that disappointment than the others.
While seeing posts like his it is also a disappointment for me this is NOT going to change the time I spent on SDj. PhD comes first, it was and still is my dream and even though is not going to "save the world" it surely has changed mine in several ways, you are just experiencing one of them.
Now just to comment on a few things...
1. The problem with the bug that appeared during the last couple of months is due to Last.FM's decision(?) to start serving some of their xml pages with empty "Match" elements. This started happening about 2 months ago and I don't know if it is a problem or a change of policy of Last.FM.
Since the element is missing using Int rather than CInt won't fix the problem as both require a valid number expression to work (empty strings or NULLs are not accepted). This is why the QuickFix I posted is first checking to see if there is an empty string and then proceeds to its conversion. As it is obvious, when the match element is empty the filtering of results based on % match doesn't work.
2. Releasing SDj under an open source license it is something I am thinking of doing for more that 6 months now. As a matter of fact there is a google code page for SDj (http://code.google.com/p/scrobblerdj/) which exists for about that time but it's still empty.... Why is that? Because I don't feel my code is ready for public yet. In fact, my plan is to release SDj 2.0 as an open source project and let ppl continue its development from that point onwards. Perhaps my plans will change and release the code earlier but still this is not going to happen before the end of August since I have to attend several conferences until then and posting the code before a good "cleaning" is done is out of the question... Keep in mind that the current version of SDj is in fact "open source" although not released under any official license. I am a supporter of open source and don't have any problems sharing my code as long as is in a working and readable state. Right now the new code of SDj doesn't fulfill any of those two criteria. This is mainly due to the modular nature of the new code. Many portions of it work really fine but there are not connected with each other and thus it doesn't work as a normal script should.
3. The very first version of SDj was experimental and buggy. Since then I worked hard to update it and version 1.6 works just fine (until that bug I described appeared). Sure, many features are missing but current version does the job it was meant to do pretty well.
Thats it for now...
I am really glad that there is so much interest for SDj and I feel even happier to see so many scripters stand by me but I am also aware that I have disappointed a *LOT* of ppl. Guest, is one of them but as I have already stated in the past he has a more *offensive* way to express that disappointment than the others.
While seeing posts like his it is also a disappointment for me this is NOT going to change the time I spent on SDj. PhD comes first, it was and still is my dream and even though is not going to "save the world" it surely has changed mine in several ways, you are just experiencing one of them.
Now just to comment on a few things...
1. The problem with the bug that appeared during the last couple of months is due to Last.FM's decision(?) to start serving some of their xml pages with empty "Match" elements. This started happening about 2 months ago and I don't know if it is a problem or a change of policy of Last.FM.
Since the element is missing using Int rather than CInt won't fix the problem as both require a valid number expression to work (empty strings or NULLs are not accepted). This is why the QuickFix I posted is first checking to see if there is an empty string and then proceeds to its conversion. As it is obvious, when the match element is empty the filtering of results based on % match doesn't work.
2. Releasing SDj under an open source license it is something I am thinking of doing for more that 6 months now. As a matter of fact there is a google code page for SDj (http://code.google.com/p/scrobblerdj/) which exists for about that time but it's still empty.... Why is that? Because I don't feel my code is ready for public yet. In fact, my plan is to release SDj 2.0 as an open source project and let ppl continue its development from that point onwards. Perhaps my plans will change and release the code earlier but still this is not going to happen before the end of August since I have to attend several conferences until then and posting the code before a good "cleaning" is done is out of the question... Keep in mind that the current version of SDj is in fact "open source" although not released under any official license. I am a supporter of open source and don't have any problems sharing my code as long as is in a working and readable state. Right now the new code of SDj doesn't fulfill any of those two criteria. This is mainly due to the modular nature of the new code. Many portions of it work really fine but there are not connected with each other and thus it doesn't work as a normal script should.
3. The very first version of SDj was experimental and buggy. Since then I worked hard to update it and version 1.6 works just fine (until that bug I described appeared). Sure, many features are missing but current version does the job it was meant to do pretty well.
Thats it for now...
Last edited by psyXonova on Wed May 02, 2007 5:05 am, edited 2 times in total.
-
- Posts: 111
- Joined: Thu Feb 16, 2006 11:06 am
Thanks.
psyXonova-
Thanks for the update and all the work you have put into SDj. I wish you the best in pursuit of your PhD.
Thanks for the update and all the work you have put into SDj. I wish you the best in pursuit of your PhD.
1. MM4 Gold 4.1.7.1739
2. Windows 7 64-bit
3. 8GB RAM, Intel X9650
2. Windows 7 64-bit
3. 8GB RAM, Intel X9650
Of course you have (almost) everyone's support including mine, excluding Guest of course!
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: New Version (1.26 beta): ScrobblerDJ, Let your music fre
Great stuff I guess but when I reach the last file in my playlist I get an error;
Error 6
Overflow: 'CInt'
Line 297 Column 16
Whats the solution.
/ H
Error 6
Overflow: 'CInt'
Line 297 Column 16
Whats the solution.
/ H
Hi all,trixmoto wrote:@Guest - Next time you post complaining about this script not being completed when you want it to be, I will delete it. Unless you have something constructive to post, don't bother!!
@6onova - That code is a non-numeric solution for creating an integer from a real value. Replace "CInt" with "Int" should also work, although the non-numeric solutions seem to work better in some locales.
So the problem solved by my fix is:
A few explanations:Error #13
Type mismatch 'CInt'
scrobblerdj.vbs line 297 column 16
I first tried using Int instead of CInt but the problem remained.
The fix already published in this thread that simply ignores empty strings does not work either.
It appears the problem is that the decimal separator accepted by Cint (or Int) is the comma (,), whereas lastfm delivers the value with a perdiod (.).
I have to say I did not actually understand this on my first approach (which I said was quick & dirty!!) so here is another, cleaner one (although the other one works just as well):
Code: Select all
dim xm
xm = XElmnt.ChildNodes.Item(2).Text
xm= replace(xm,".",",")
If CInt(xm) > MinMatch Then
XDict.Add i, XElmnt.ChildNodes.Item(0).Text
End If
Regards
Hmmm, haven't noticed that... The xmls that were producing errors to me had an empty element.Ramon Rames wrote:the fix already published in this thread that simply ignores empty strings does not work either.
It appears the problem is that the decimal separator accepted by Cint (or Int) is the comma (,), whereas lastfm delivers the value with a perdiod (.).
I will try to create a new fix based on Ramon's code tonight...
The decimal separator used by CInt/Int depends on your locale settings whereas Last.Fm will always return a "."
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
-
- Posts: 223
- Joined: Sun Apr 29, 2007 9:45 pm
Create a new playlist with that name, or change the name of the playlist in the settings to one that does exist.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.