Help Installing from Source

Linux specific questions, problems.
dinjo

Re: Help Installing from Source

Post by dinjo »

configure  --disable-gui  --with-qt4 --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
I was able to compile and run but it doesn't seems to be remembering the path location so all torrents has to be rechecked , God bring the fast resume feature.

Any ways the save path can be restored ?

*** Upgrade ***
You updated from an older version that saved things differently. You must migrate to the new saving system. You will not be able to use an older version than v3.3.0 again. Continue? [y/n]
y
******** Information ********
To control qBittorrent, access the Web UI at http://localhost:8080
The Web UI administrator user name is: admin
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
QDir::mkpath: Empty or null file name(s)
Last edited by dinjo on Sun Dec 13, 2015 4:32 pm, edited 1 time in total.
ciaobaby

Re: Help Installing from Source

Post by ciaobaby »

You updated from an older version that saved things differently. You must migrate to the new saving system. You will not be able to use an older version than v3.3.0 again. Continue?
index.php/topic,3684.0.html

Read the WHOLE of the first post.
dinjo

Re: Help Installing from Source

Post by dinjo »

With the new version how do i capture the torrent name ? Earlier it used to be %f %n where %f folder path and %n the torrent name but it does not seems working with newer version
autorun_enabled - true if external program should be run after torrent has finished downloading
autorun_program - program path/name/arguments to run if autorun_enabled is enabled; path is separated by slashes; you can use %f and %n arguments, which will be expanded by qBittorent
/root/extractq.sh %f %n

Printed the %f within the script

Code: Select all

root@c1:/tmp# more log_1072
%f
Here is the script

Code: Select all

#!/bin/bash -x

LOG_FILE=/var/log/unrar.log
TORRENT_DIR=$1
TR_TORRENT_NAME=$2
echo $TORRENT_DIR >> /tmp/log_$$
echo $TORRENT_NAME >> /tmp/log_$$
NOW=$(date +%Y-%m-%d\ %H:%M:%S)

SRC_DIR="${TORRENT_DIR}/${TR_TORRENT_NAME}"

DEST_DIR="${TORRENT_DIR}/${TR_TORRENT_NAME}"
echo "Torrent $TR_TORRENT_NAME completed"  |  mail -s "$TR_TORRENT_NAME"  [email protected]

IFS=$'\n'

unset RAR_FILES i

if [ -d "$SRC_DIR" ]; then

for RAR_FILE in $( find "$SRC_DIR" -iname "*.rar" ); do

  if [ `grep -c ".rar" $RAR_FILE` -gt 0 ]; then

    RAR_FILES[i++]=$RAR_FILE

  fi
done

unset IFS

if [ ${#RAR_FILES} -gt 0 ]; then
for RAR_FILE in "${RAR_FILES[@]}"; do
  unrar x -inul "$RAR_FILE" "$DEST_DIR" >> $LOG_FILE
  echo "Torrent Unrarred $TR_TORRENT_NAME "  |  mail -s "$TR_TORRENT_NAME"  [email protected]

done

echo $NOW "Unrarred $TR_TORRENT_NAME" >> $LOG_FILE

fi

fi
Last edited by dinjo on Mon Dec 14, 2015 7:38 am, edited 1 time in total.
ciaobaby

Re: Help Installing from Source

Post by ciaobaby »

%N  ... as it says on the options panel,  the parameters are case sensitive.
dinjo

Re: Help Installing from Source

Post by dinjo »

Thanks as it seems the WebGUI needs to be changed , i can see the correct options on Windows GUI , linux still say small case.

Image
Last edited by dinjo on Tue Dec 15, 2015 2:59 am, edited 1 time in total.
ciaobaby

Re: Help Installing from Source

Post by ciaobaby »

linux still say small case
Not on 3.3.1

Screenshot attached.

WEB UI issue reported https://github.com/qbittorrent/qBittorrent/issues/4384
Attachments
options-downloads-tab.png
Post Reply