Like I said, the original program was a humnble bash script. I can post it if there is any interest, but will otherwise move forward.
Part 1.
I wrote a script in Perl that will export meta information from all torrents running in Transmission to csv format.
Here is the new export script for Transmission: http://pastebin.ca/1704262
Note: fields are separated by ";", if any semicolons appear in your filenames, you'll have to remove them by hand before importing to mysql.
Part 2.
I will begin Part 2 this week, creating a script to export the date added, and the amount uploaded and downloaded. This will be used in the second table that measures daily change in UL and DL. This part should be simple, I just need to modify the first script a little bit to look for UL and DL.
Part 3.
It doesn't make sense to reimport the same information every time one or two torrents are added, so I will modify the original scripts to only import changes.
These three portions are unique to Transmission and not of much use to anybody using a different client. However, the next part will be useful.
Part 4.
This is the meat of the program. It contains the web interface, which allows the user to view statistics and make manual changes to each torrent.
It also measures torrent performance, selects torrents for deletion, and adds new torrents as space allows.
I intend for this section to be client neutral, meaning that it won't interact with the client directly, it will just call other scripts to add or delete as needed.
Though the previous part is written in Perl, I will write Part 4 in PHP, mostly because I need to practice for work.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment