/* *===============================* | uTorrent Monitor v1.2 | | by Henrik 'TwoD' Danielsson | | the_dragonwizard@hotmail.com | *===============================* This script lists all the torrents in the bitTorrent client uTorrent by reading the resume.dat file. The functions ListTorrents(format) and ListTorrentsByLabel(format) take a string with tags as an argument. The allowed tags are listed below. To make this work, you must enter the path to the folder with resume.dat in the variable resumeDatPath, otherwise the file won't be found. Ex. "C:\\Documents and Settings\\username\\Application Data\\uTorrent" getTotalDown(labels) Returns how much has been totally downloaded. Does not include wasted data for uTorrent 1.6 and above. getTotalUp(labels) Returns how much has been totally uploaded. getTotalRatio(labels) Returns the overall ratio. Excludes wasted data in uTorrent 1.6 and above. getTotalWaste(labels) Returns the amount of waste data. Only in uTorrent 1.6 and above. getNumOfTorrents(labels) Return the total number of torrents. getNumOfStartedTorrents(labels) Returns the number of started torrents. getNumOfDownloadingTorrents(labels) Returns the number of torrents with "downloading" status. getNumOfSeedingTorrents(labels) Returns the number of torrents with "seeding" status. getNumOfCompletedTorrents(labels) Returns the number of torrents with "completed" status. getNumOfNotCompletedTorrents(labels) Returns the number of torrents with "not completed" status. The labels argument is a list of labels which can be used if you only want data from some torrents. If labels is left blank, data is collected from all torrents. Ex. getNumOfTorrents("Movies|Games") will show the number of torrents in with the label "Movies" or "Games". ================================================================================================================================ Stat Tags: