INTERACT FORUM

More => Old Versions => Media Center 13 (Development Ended) => Topic started by: wnshall2 on January 31, 2009, 12:37:16 am

Title: Way to update number plays field?
Post by: wnshall2 on January 31, 2009, 12:37:16 am
Would it be possible to update the "number plays" field (or a copy of it) based on a file's existence in a playlist?  Suppose I have a playlist containing songs I played somewhere else (my portable device, iTunes, or in my case SqueezeCenter).  I'd like to be able to increment the play count in MC based on the playlist.  Bonus points if I can handle multiple occurrences of the same song on the playlist.  Would this be possible somehow?

I've explored using an Expression Column to do it, which led to this question: can you do arithmetic in Expression Columns? for example could you have the value of an Expression Column be =[Number Plays]+1.  When I tried this I got "1+1" instead of "2".

Thanks,