-
Notifications
You must be signed in to change notification settings - Fork 2
/
Watcher.py
55 lines (41 loc) · 1.3 KB
/
Watcher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
'''
Created on 2013-02-04
@author: JordSti
'''
import TorrentWatcher
import sys
def printHelp():
print "Torrent Watcher Help"
print "python Watcher.py [args]"
print "-d or debug : start TorrentWatcher in Debug Mode"
print "-h or help : show this message"
print "configuration is in WatcherSetting.py"
print "----------------------------------------------"
print "if you have some questions you can write to "
print "jord@sticode.com"
sys.exit()
if __name__ == '__main__':
#main here !
#variables
RunMode = TorrentWatcher.DEFAULT
#arguments check
for arg in sys.argv:
if arg == 'debug':
RunMode = TorrentWatcher.DEBUG
elif arg == '-d':
RunMode = TorrentWatcher.DEBUG
elif arg == '-h':
printHelp()
elif arg == 'help':
printHelp()
print "---------------------------------------------"
print "Torrent Watcher For SceneTime"
print "Developped by JordSti (jord@sticode.com)"
print "Version 0.0.1"
print "---------------------------------------------"
watcher = TorrentWatcher.TorrentWatcher(RunMode)
watcher.initFolder()
watcher.loadFiles()
#watcher.fetchRss()
#watcher.authenticate()
watcher.watchLoop()