cm277 / upload

Automatically exported from code.google.com/p/upload
0 stars 1 forks source link

rtorrent_fast_resume + other problems #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Tried to use this script,but i get an error: error: 
`/home/user/rtorrent_fast_resume.pl' is not a command. make sure the path of 
RFR [ rtorrent_fast_resume.pl ] is right.
In .upload.rc i have wrote: RFR="/home/nikodemu/rtorrent_fast_resume.pl" and 
checked if rtorrent_fast_resume.pl is there and it is really there.

Here is .upload.rc

#!/bin/bash
####################################
##    example resource file for   ##
##      torrent upload script     ##
##                                ##
##      save in ~/.upload.rc      ##
##  chmod 700 to restrict access  ##
####################################
##         LOGIN SETTINGS         ##
####################################

# your website username
USERNAME="need4speed"

# your website password
PASSWORD="*******"

# website login URL
LOGINURL="http://www.extremeshare.org/tracker/login.php"

# 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="need4speed"

# login form username: look for input NAME="username"
LOGINUSR="uid"

# login form password: look for input NAME="password"
LOGINPWD="pwd"

####################################
##         SEARCH SETTINGS        ##
####################################

# website search URL
SEARCHURL="http://www.extremeshare.org/tracker/torrents.php?search="

# search no result text: something _unique_ to check if no results are found
SEARCHTXT="No torrents here..."

# 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="http://www.extremeshare.org/"

# search download link text:  something _unique_ to find the exact line
DUPETXT="download.php?id="

# 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="http://www.extremeshare.org/tracker/upload.php"

# your personal announce URL
ANNOUNCEURL="http://tracker.extremeshare.org:5555/************/announce"

# upload form torrent: look for input NAME="torrent"
UPLOADTOR="torrent"

# 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 'auth=*****' -F 'nfo=@\$NFO'"

####################################
##          PATH SETTINGS         ##
####################################

# path to your downloads directory
DOWNLOADS="/home/seeder1/rtorrent/downloads/"

# path to your torrent client watch directory
TORRENTS="/home/seeder1/rtorrent/watch/"

# path to your log file: set to /dev/null to disable logging
LOGFILE="/home/seeder1/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/nikodemu/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=(
    "Episodes" 18 "HDTV" 29 "Boxsets" 50
    "DVD-R" 10 "Other" 11 "XviD" 13 "Top 250 IMDB" 26 "HD x264" 27 "DVD-RO" 28 "Oldies" 32 "BRRip x264" 38 "BRRip XviD" 42 "Blu-Ray" 48
    "Games" 33 "PS2" 34 "PS3" 35 "WII" 36 "Xbox" 37 "PSP" 39
    "Music" 15 "Video" 16 "Music DVD" 31 "Packs" 44
    "Anime" 1 "Apps" 2 "Ebooks" 5 "DOX" 21 "Misc" 17 "Packs" 40 "XXX" 19 "Mobile" 45 "Sport" 20 "Linux" 30
)

# 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 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]=500
MAXS[n]=1800
CATS[n]="Movies/XviD"
let n+=1

# match for Games
FILTERS[n]="^-(SKIDROW|RELOADED|TINYSO|PROPHET|Unleashed|THETA|Razor1911)"
EXCEPTS[n]=
MINS[n]=
MAXS[n]=
CATS[n]="Games"
let n+=1

##################################
##         SETTINGS END         ##
##################################

2.I can't log into webui.I know that password is from .webui.rc but i don't 
know what user to use.
Here is .webui.rc: 
# password to access the webui: required
pass = 123

# path to downloads dir: required
data = /home/seeder1/rtorrent/download

# default directory sorting type: latest / alphabetically
datasort = latest

# default directory sorting order: asc[ending] / desc[ending]
dataorder = desc

# theme to use: light, dark, custom
theme = dark

# show directory size on hover over release: 1 = yes, 0 = no
sizes = 1

# print the upload command rather than executing it: 1 = yes, 0 = no
debug = 0

# show only these sites in the dropdown: case-insensitive comma seperated list
sites = AO, TV, ES

# sort sites alphabetically: 1 = yes, 0 = no
sitesort = 1

# sort categories alphabetically: 1 = yes, 0 = no
catsort = 1
3.

What is the expected output? What do you see instead?

root@ubuntu:~# upload -c "tv/xvid" download/
torrent upload script v0.9.4 by ScarS

loaded settings from `/root/upload/.upload.rc'

error: `/home/user/rtorrent_fast_resume.pl' is not a command. make sure the 
path of RFR [ rtorrent_fast_resume.pl ] is right.

What version of the product are you using? On what operating system?
Last revision.
Ubuntu 12.04 LTS 64 bits

Please provide any additional information below.

Please,i need help !

Original issue reported on code.google.com by kill3rma...@gmail.com on 25 Jul 2012 at 10:45

GoogleCodeExporter commented 9 years ago
Somehow i fixed first problem.But now i get :

nikodemu@ubuntu:~$ sudo upload -c "episodes" download
torrent upload script v0.9.4 by ScarS

loaded settings from `/home/nikodemu/upload/.upload.rc'

logging in . . .  failed

error: it appears you could not be logged in. check login settings.

Checked .upload.rc and everything looks ok.
Here it is: 

#!/bin/bash
####################################
##    example resource file for   ##
##      torrent upload script     ##
##                                ##
##      save in ~/.upload.rc      ##
##  chmod 700 to restrict access  ##
####################################
##         LOGIN SETTINGS         ##
####################################

# your website username
USERNAME="need4speed"

# your website password
PASSWORD="*******"

# website login URL
LOGINURL="http://www.extremeshare.org/tracker/login.php"

# 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="need4speed"

# login form username: look for input NAME="username"
LOGINUSR="uid"

# login form password: look for input NAME="password"
LOGINPWD="pwd"

####################################
##         SEARCH SETTINGS        ##
####################################

# website search URL
SEARCHURL="http://www.extremeshare.org/tracker/torrents.php?search="

# search no result text: something _unique_ to check if no results are found
SEARCHTXT="No torrents here..."

# 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="http://www.extremeshare.org/"

# search download link text:  something _unique_ to find the exact line
DUPETXT="download.php?id="

# 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="http://www.extremeshare.org/tracker/upload.php"

# your personal announce URL
ANNOUNCEURL="http://tracker.extremeshare.org:5555/****************/announce"

# upload form torrent: look for input NAME="torrent"
UPLOADTOR="torrent"

# 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 'auth=**********' -F 'nfo=@\$NFO'"

####################################
##          PATH SETTINGS         ##
####################################

# path to your downloads directory
DOWNLOADS="/home/seeder1/rtorrent/download/"

# path to your torrent client watch directory
TORRENTS="/home/seeder1/rtorrent/watch/"

# path to your log file: set to /dev/null to disable logging
LOGFILE="/home/seeder1/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/nikodemu/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=(
    "Episodes" 18 "HDTV" 29 "Boxsets" 50
    "DVD-R" 10 "Other" 11 "XviD" 13 "Top 250 IMDB" 26 "HD x264" 27 "DVD-RO" 28 "Oldies" 32 "BRRip x264" 38 "BRRip XviD" 42 "Blu-Ray" 48
    "Games" 33 "PS2" 34 "PS3" 35 "WII" 36 "Xbox" 37 "PSP" 39
    "Music" 15 "Video" 16 "Music DVD" 31 "Packs" 44
    "Anime" 1 "Apps" 2 "Ebooks" 5 "DOX" 21 "Misc" 17 "Packs" 40 "XXX" 19 "Mobile" 45 "Sport" 20 "Linux" 30
)

# 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 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]=500
MAXS[n]=1800
CATS[n]="Movies/XviD"
let n+=1

# match for Games
FILTERS[n]="^-(SKIDROW|RELOADED|TINYSO|PROPHET|Unleashed|THETA|Razor1911)"
EXCEPTS[n]=
MINS[n]=
MAXS[n]=
CATS[n]="Games"
let n+=1

##################################
##         SETTINGS END         ##
##################################

What's wrong?

Original comment by kill3rma...@gmail.com on 25 Jul 2012 at 11:19