-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.upload.rc
194 lines (150 loc) · 5.41 KB
/
.upload.rc
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#!/bin/bash
####################################
## example resource file for ##
## torrent upload script ##
## ##
## save in ~/.upload.rc ##
## chmod 700 to restrict access ##
####################################
## LOGIN SETTINGS ##
####################################
# your website username
USERNAME=""
# your website password
PASSWORD=""
# website login URL
LOGINURL="" // Login path to tracker
# logged in text: something _unique_ to check if you are logged in
# possibly your username if it's unique and on the page you get directed to after logging in
LOGINTXT=""
# login form username: look for input NAME="username"
LOGINUSR="username"
# login form password: look for input NAME="password"
LOGINPWD="password"
####################################
## SEARCH SETTINGS ##
####################################
# website search URL
SEARCHURL="" // Search path for torrents
# search no result text: something _unique_ to check if no results are found
SEARCHTXT=""
# download dupe: 1 = yes, 0 = no
# note: only possible if download link is on the torrents page
DUPEDL=0
# URL that needs to be prepended to the download URL
DUPEURL=""
# search download link text: something _unique_ to find the exact line
DUPETXT="action=download"
# command to extract the download link from the complete line
# note: test for the best way to get it outside the script first
DUPECMD="cut -d \" -f 2"
####################################
## UPLOAD SETTINGS ##
####################################
# website upload URL
UPLOADURL="" // Path to upload page
# your personal announce URL
ANNOUNCEURL=""
# upload form torrent: look for input NAME="torrent"
UPLOADTOR="torrent"
#UPLOADNFO="nfo"
# upload form category: look for select NAME="category"
UPLOADCAT="category"
# upload form extras: look for other inputs with NAME and VALUE
# and add to the list with: -F 'name=value'
#UPLOADXTRA="-F 'submit=true' -F 'anonymous=on' -F 'auth=s0m34uthk3yf0rth3s1t3t00' -F 'nfo=@\$NFO'"
UPLOADXTRA="-F 'submit=true' -F 'nfo=@\$NFO'"
####################################
## PATH SETTINGS ##
####################################
# path to your downloads directory
DOWNLOADS="/home/$USER/torrents/rtorrent/"
# path to your torrent client watch directory
TORRENTS="/home/$USER/rwatch/"
# path to your log file: set to /dev/null to disable logging
LOGFILE="/home/$USER/upload/upload.log"
# path to curl: if in $PATH just enter curl
CURL="curl"
# path to mktorrent: if in $PATH just enter mktorrent
MKT="mktorrent"
# path to rtorrent_fast_resume.pl: leave empty if you dont want to use this
#RFR="/home/user/rtorrent_fast_resume.pl"
####################################
## ADVANCED SETTINGS ##
####################################
# string used to identify as a specific user-agent
USERAGENT="Mozilla/4.0"
# text to prepend on the torrent file before moving it to your torrents dir
PREPEND="au."
# check for already uploading: use with UPCHECK - 1 = yes, 0 = no
# you only need to disable this if you expect to upload the same torrent multiple times at the same time
UPCHECK=1
# list of categories able to be uploaded into: look for options after select NAME=category
# if the option value is a number add it _after_ the category name
#ALLCATS=(
# "TV/XviD" "TV/HD" "TV/Pack"
# "Movies/XviD" "Movies/DVDR" "Movies/BluRay" "Movie/Pack" "XXX/XviD"
# "Games/PC" "Games/Xbox" "Games/PSX" "Games/Wii" "Games/Misc" "Games/Pack"
# "Music/MP3" "Music/FLAC" "Music/Video" "Music/Misc" "Music/Pack"
# "0day" "Ebook" "Misc"
#)*/
ALLCATS=(
"Movies" 1
"Tv" 2
)
# is the option value different than the category name? 1 = yes, 0 = no
KEYVAL=1
####################################
## FILTERS SETTING ##
## ##
## - FILTERS : case insensitive ##
## - EXCEPTS : case insensitive ##
## - MINS : min size in MB ##
## - MAXS : max size in MB ##
## - CATS : case sensitive, ##
## look at allcats. ##
## if KEYVAL use NUM ##
## ##
## NOTE: make sure the filter ##
## ends with `let n+=1' ##
## ##
####################################
#FILTERS[n]=REGEX
#EXCEPTS[n]=REGEX
#MINS[n]=NUMBER
#MAXS[n]=NUMBER
#CATS[n]=NUMBER|STRING
n=0
# match starts with House or Simpsons or South Park S00E00 in format XviD which are not DSR or REPACK and are between 70 and 400 MB
FILTERS[n]=".(S[0-9]{2}E[0-9]{2}|S[0-9]{2})."
EXCEPTS[n]=
MINS[n]=0
MAXS[n]=999999
CATS[n]=2
let n+=1
# match starts with House or CSI or NCIS S00E00 in format 720p which are between 800 and 1500 MB (1.5 GB)
FILTERS[n]=".[0-9]{4}."
EXCEPTS[n]=
MINS[n]=0
MAXS[n]=9999999
CATS[n]=1
let n+=1
# match XXX.DVDRip.XviD which are not REPACK or PROPER and are between 650 and 750 MB
#FILTERS[n]="XXX.DVDRip.XviD"
#EXCEPTS[n]="REPACK|PROPER"
#MINS[n]=650
#MAXS[n]=750
#CATS[n]="XXX/XviD"
#let n+=1
# match DVDRip.XviD which are between 650 and 1500 MB (1.5 GB)
# NOTE: this is placed after series and XXX filters so it doesn't match most DVDRip series or XXX
# NOTE: if a DVDRip series or documentary which is not S00E00 format it will be matched as well so this filter might not be trusted
#FILTERS[n]="DVDRip.XviD"
#EXCEPTS[n]=
#MINS[n]=650
#MAXS[n]=1500
#CATS[n]="Movies/XviD"
#let n+=1
##################################
## SETTINGS END ##
##################################