Old 11th April 2007, 16:57   #1
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Total Play Count?

Hi,
I was just wondering how I find my total song play count. I have the play count for each individual song, and the play count for all the play counts in my recent history added up, but not a total total one.
Any ideas?
Thanks,
QuQ
QuQ is offline   Reply With Quote
Old 11th April 2007, 21:37   #2
Nunzio390
Nugatory Aluminator
Look it up

 
Nunzio390's Avatar
 
Join Date: Oct 2002
Location: Tharsis Ridge (Martian lowlands)
Posts: 8,588
Send a message via AIM to Nunzio390 Send a message via Yahoo to Nunzio390
While the Playlist Editor is in focus, either...
  1. Press key combo Ctrl+Alt+G or...
  2. Click on "Misc" > "Misc Opts"
...to generate an HTML playlist. Total playcount will be there.

See screenshots...




Don't email or PM me concerning Winamp. Instead, either start a NEW TOPIC or post a REPLY in the appropriate thread in these forums. This will also benefit others who may have a similar question or problem. But before posting, please first Search the forums and read all FAQs and all Sticky threads.

ORB Remote Broadcast

[ Automated Jukebox | Nunzio's Home | Wacky Videos | Solve the Prunella Puzzle! ]
[ LINE RIDER! | My Resume | Virtual Chess | Composite Sketch | My Niece's Band ]
[ Plugins by Joonas | DrO's Winamp Plugins and Extras | K-Jöfol ]
Nunzio390 is offline   Reply With Quote
Old 11th April 2007, 22:32   #3
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
Do you mean the Total Timed Played for all songs? If you are using the DirectSound output plug-in, which is default choice with Winamp 5 (and up)
Winamp > Ctrl+P > Plug-ins > Input > double click DirectSound > Status tab

Otherwise, do you mean total playlist time? In addition to Nunzio's reply, not all Modern skins display total playlist time in the status bar. This is especially true for mod skins made during the Winamp3 era. All classics skins display TPT and most newer modern skins do. Other mod skins would have to be updated by their respective authors.

Please do not PM me for tech support. Any request for tech support through PM will be ignored.
Read the Stickies
---> | | | | <--- Knowledge is power
JonnyMac is offline   Reply With Quote
Old 12th April 2007, 08:44   #4
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Hi,
Thanks for the replies.
I didn't mean time. I mean actual number. For instance, Winamp says i've played Angels by Within Temptation 7 times. Is there a way I can find out my total play count, which is basically that value for every song added up?
Thanks,
QuQ
QuQ is offline   Reply With Quote
Old 14th April 2007, 09:37   #5
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Any ideas anyone?

(Sorry for the double post, but this thread is falling down the pages, and I probably wasn't going to get a reply otherwise)

=]
QuQ is offline   Reply With Quote
Old 20th April 2007, 22:54   #6
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
No?
QuQ is offline   Reply With Quote
Old 23rd April 2007, 01:37   #7
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
Unless I am misunderstanding your post, that is the second number on the status bar/line in the History view.

Please do not PM me for tech support. Any request for tech support through PM will be ignored.
Read the Stickies
---> | | | | <--- Knowledge is power
JonnyMac is offline   Reply With Quote
Old 23rd April 2007, 17:00   #8
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Thanks for the reply.

Nearly, but the history play number is only for your history. That is like the last 30 days or something, and I would like a total play count for all time.

Thanks again,
QuQ
QuQ is offline   Reply With Quote
Old 23rd April 2007, 20:53   #9
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
Sorry, AFAIK there is not a way.
JonnyMac is offline   Reply With Quote
Old 24th April 2007, 16:57   #10
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Ok, thanks. What about writing a script that cycled through each song and added the play count to one variable and printed that at the end??

Thanks,
QuQ
QuQ is offline   Reply With Quote
Old 24th April 2007, 18:15   #11
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
Or a plug-in or something.

Unless you want to give it a try, maybe this thread will inspire someone to write something like that.
JonnyMac is offline   Reply With Quote
Old 24th April 2007, 21:42   #12
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
I could give it a try I guess. Where do I start?? Are there some tutorials around or something?

Thanks,
QuQ
QuQ is offline   Reply With Quote
Old 24th April 2007, 21:56   #13
JonnyMac
Moderator
 
JonnyMac's Avatar
 
Join Date: Dec 2000
Posts: 14,385
Moved from WA Tech Support to WA Discussion

Nullsoft Developers Network Webpage area for developing Winamp plug-ins, skins and the such.
Developer Center section of the forums.

Also you may be interested in having a looking at Active Winamp, which is a third party scripting plug-in for Winamp.
JonnyMac is offline   Reply With Quote
Old 24th April 2007, 22:20   #14
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,229
Wouldn't it be possible to use the ML Import/Export plugin to export the ML data as an XML file, and then load that XML file into e.g. Excel to calculate totals?

I'm not sure if that's possible, but it might just be another way.
However, I don't know whether playcount is actually part of the exported info, I don't know whether the plugin still works with the latest Winamp versions (esp after the recent Unicode-related changes) and I can't test because the download link here no longer works...

Moreover, the above is assuming that you're talking about the playcount data in the ML database (as opposed to the playcount data in the History view).

If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 24th April 2007, 22:31   #15
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Sounds good siebe83, but yes, as you said that would assume that the plugin exports play count for each song, and the plugin can actually be downloaded.

Thanks,
QuQ
QuQ is offline   Reply With Quote
Old 24th April 2007, 23:10   #16
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,229
I found the installer stored somewhere on my hard drive, I've uploaded it here:
http://stashbox.org/18596/wa5-ml_impex1.3.exe

Note that the export function seems to be accessible only via the modern skin > Media Library > File menu

It does export the playcount data, but unfortunately Excel loads the file in such a way that it is not easy to perform calculations on the playcounts. I don't really have the time to look into this further, but you may be able to find some XML reader/editor that is able to present the data in a more useful way.

If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 25th April 2007, 16:55   #17
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Awesome thanks so much. I'm sure I could extract the data from the XML file using PHP or something which I already know

Thanks,
QuQ
QuQ is offline   Reply With Quote
Old 25th April 2007, 17:07   #18
siebe83
Forum King
 
siebe83's Avatar
 
Join Date: Feb 2004
Posts: 9,229
All right, good luck!

If you're bored go here or, if the boredom is more serious, here.
siebe83 is offline   Reply With Quote
Old 25th April 2007, 19:17   #19
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Ok, thanks for all the help everyone. I've finally done it. It might not be the best PHP, but it's short and it works. For anyone else if they want to use it:

code:

<?php

$lines = file('playcount.xml'); //opens xml file

foreach ($lines as $line_num => $line) { //start foreach to read line

if(ereg("<key>Play Count</key><integer>[1-9]{2}</integer>", $line) || ereg("<key>Play Count</key><integer>[1-9]</integer>", $line)) { //filters out all but playcounts using regex

$line = str_replace('<key>Play Count</key><integer>', '', $line); //delete first part of xml
$line = str_replace('</integer>', '', $line); //leaving only playcount value

$_GLOBAL['total_playcount'] = $_GLOBAL['total_playcount'] + $line; //add playcount value to total

}
}

echo "Total Playcount: " . $_GLOBAL['total_playcount'] . " times"; //print out total playcount at end

?>



Thanks,
QuQ
QuQ is offline   Reply With Quote
Old 25th April 2007, 19:47   #20
A Crazy German
Senior Member
 
A Crazy German's Avatar
 
Join Date: Apr 2006
Location: In a Bunker
Posts: 208
Just use Last.fm
Heres my page
http://www.last.fm/user/ACrazyGerman/
A Crazy German is offline   Reply With Quote
Old 25th April 2007, 21:06   #21
QuQ
Junior Member
 
Join Date: Apr 2007
Posts: 14
Yeah, that's one idea, but I'm used to Winamp now and I don't want to lose my current playcount.

Thanks,
QuQ
QuQ is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump