New *basic* Script to insert fake plays from iPod

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: New *basic* Script to insert fake plays from iPod

Re: New *basic* Script to insert fake plays from iPod

by Christoph » Sun Oct 12, 2008 8:23 am

Hm, maybe Briannon who wrote this script, can help you.
I can only say that my app has a function to refresh these play dates. So the last play and the last played date get synchronized. Every app on your computer could contain some malicious behaviour. But I don't want to argue with you about this. It's your attitude and I will respect it.

Christoph

Re: New *basic* Script to insert fake plays from iPod

by MoDementia » Fri Oct 10, 2008 6:16 pm

Christoph wrote:The last played date and the date of the latest played item should be equal, aren't they?
I haven't run it yet because I don't believe that this will always be the case.
The last played date only gets updated if the calculated played/sync date is greater which if I read the code correctly won't happen in the majority of cases (for iPod users)
So I will have many played table entries most of which won't match the last time played in songs table.
Christoph wrote:Did you had a look at my play date manager?
Non VB addons don't make it into my installed scripts list unless it is impossible to do it with VB so no I haven't tried it.
Especially as a scripter I like to read/understand the code before using it. VB also has the flexibility of modification other than just the author.
Christoph wrote:It's hard for me to give support for this Visual Basic script because I'm not very good in VB. So it's much easier for me to make developments on my standalone apps.
No Problem, Just highlighting a possible problem for iPod users and this script.

Re: New *basic* Script to insert fake plays from iPod

by Christoph » Fri Oct 10, 2008 5:44 pm

Hi,
the script also adds entries to the played table. The last played date and the date of the latest played item should be equal, aren't they?
Or did I missunderstood your problem?
Did you had a look at my play date manager?
It's hard for me to give support for this Visual Basic script because I'm not very good in VB. So it's much easier for me to make developments on my standalone apps.

Regards,
Christoph

Re: New *basic* Script to insert fake plays from iPod

by MoDementia » Mon Oct 06, 2008 9:49 pm

I think I have a little problem with this script re timestamps for the played table entries

Assuming that this is run after an iPod sync:

Shouldn't the date run backward from the last played date rather than forwards from the added date or last played date (from played table)?

i.e. The sync increases the playcount and changes the last played date so immediately we are missing a corresponding played table entry for the last played date.
If the play count is > 1 then it would have been played prior to the last played date but after the last played date from the played table.

Re: New *basic* Script to insert fake plays from iPod

by Benn » Fri Sep 26, 2008 6:07 am

That's what it already says. I'll have a fiddle and get back to you.

Re: New *basic* Script to insert fake plays from iPod

by Christoph » Fri Sep 26, 2008 5:07 am

Hey Benn,
I think you activated the simulation mode. Then the script doesn't create any plays.
Checkout line 31. It should be commented:

Code: Select all

'	simu=True 'Activate this for report generation
Christoph

Re: New *basic* Script to insert fake plays from iPod

by Benn » Thu Sep 25, 2008 5:41 am

So Brianon would you recommend using your original version of the script? I don't know what the difference is. I'm on Vista using MM3...1183 at the minute.

Re: New *basic* Script to insert fake plays from iPod

by brianon » Thu Sep 25, 2008 5:04 am

Actually I noticed that myself but forgot to mention.

Re: New *basic* Script to insert fake plays from iPod

by Benn » Thu Sep 25, 2008 4:25 am

Hi Christoph, I've been trying to use this script (I also tried your MM helper App, but prefer the simpleness of this) but nothing seems to be happening. the Fake plays log file says it its doing something to the tracks, normally: "Insert 1 fake plays: D:\My Music\Haste The Day\When Everything Falls\08 This Time It's Real.mp3(8507)" but theres no new timestamp added at all. Any ideas? I have been using your most recent script you posted (Ver 1.3.2 (16 Mar 2008)).

Thank you for any help,

Benn

Re: New *basic* Script to insert fake plays from iPod

by Christoph » Thu Jul 31, 2008 1:40 pm

Hey,
just check out my new app that has more advanced features for this issue:
http://www.mediamonkey.com/forum/viewtopic.php?t=29514

For lack of time the next version is still not finished.

Christoph

Re: New *basic* Script to insert fake plays from iPod

by Benn » Thu Jul 31, 2008 1:23 pm

This is a great idea. Could you tell me if the code on the first page is the best working one? I noticed there have been a few modifiactions since. Even better, how about an .mmip file? :P Just me being cheeky, but thanks for a great script :D

by jisan » Wed May 28, 2008 11:39 pm

Thanks for the feedback. Yes, im using 2.5 :(

by Christoph » Wed May 28, 2008 7:54 am

Hey,
it seems that you're using MM 2.x. And it seems that the script doesn't work without some modifications. But I don't have MM 2.x to test. And I don't know whether fixing this SQL issues would be enough.

Sry,
Christoph

Error during execution

by jisan » Wed May 28, 2008 7:41 am

Im getting following error while running the script. Seems something wrong with database connection.

There was problem querying the database:
42000: [microsoft] [ODBc Microsoft Access driver] Syntax error in CREATE TABLE statement.

Upon clicking Ok, it throws another error.

Error #-2147418113 - SongsDB.SDBDatabase
42000: [Microsoft] [ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.
File: "C:\program Files\MediaMonkey\Scripts\fakePlays.vbs, Line: 47, Column: 3


I looked at the code and checked that it requires table in db. so i created table.

The new error that im getting is:

Error #438 - Microsoft V8Script runbme error
Object doesn’t support this property or method: 'sDB.Database.BeginTransacbon’
File: C: program Fileswv1ediaMonkeyycripts’fakePlays.vbs, Line: 70, Column: 3


Any idea? is it something wrong with Database drivers?

Jisan

by Christoph » Sun May 11, 2008 2:06 pm

Hey,
sry, I don't have an iPod. Maybe some owner can post whether there is a possibility to set these options.
Because I'm listening to whole albums I can add these fake playbacks easy when working on the computer.

Christoph

Top