Package Peapod :: Module peapod :: Class newTracks
[show private | hide private]
[frames | no frames]

Class newTracks


A class to manage actions based on recent changes to the peapod databases. Generation of playlists and copying of new files to a device are currently included.
Method Summary
  __init__(self, logfile)
  copyNew(self, path)
Examine the download log for any files which have been downloaded since the last run.
  copyToiPod(self, itdb, filename)
Copy file to iPod via gpod library.
  playlistNew(self)
Examine the download log for any files which have been downloaded since the last run.
  synciPod(self, mountPoint)
Examine the download log for any files which have been downloaded since the last run.
  updateLog(self)
Update the timestamp for marking new files.

Class Variable Summary
str config = ''
int lasttime = 0                                                                     
list list = []
str logfile = ''

Method Details

copyNew(self, path)

Examine the download log for any files which have been downloaded since the last run. Copies files to configured mountpoint for media device.

copyToiPod(self, itdb, filename)

Copy file to iPod via gpod library.

playlistNew(self)

Examine the download log for any files which have been downloaded since the last run. Print filenames to create a playlist.

synciPod(self, mountPoint)

Examine the download log for any files which have been downloaded since the last run. Copies files to iPod.

updateLog(self)

Update the timestamp for marking new files. Has the effect of marking all downloaded files as old.

Class Variable Details

config

Type:
str
Value:
''                                                                     

lasttime

Type:
int
Value:
0                                                                     

list

Type:
list
Value:
[]                                                                     

logfile

Type:
str
Value:
''                                                                     

Generated by Epydoc 2.1 on Sun Feb 13 06:25:12 2011 http://epydoc.sf.net