After download

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Occuoy Journey
Posts: 2
Joined: Wed Nov 22, 2017 10:26 am

After download

Post by Occuoy Journey »

Hi all, first, I am new here and new to Transmission. :D

I have designed a small local area network system (not for Internet, just intranet usage) that tracks and sets up a database of available files, then offers them to the LAN. I've also got a Download on Demand system so that if someone wants the server to get a file, it does it. Here is where I'm running into a problem. When the file is downloaded, I need a way to update the MySQLi database with the sub-directory and file name.

Code: Select all

#! /bin/sh
cd /www/movie_watch/
torrent=`cat /www/movie_watch/torrent_link.txt`
transmission-cli -D -v -ep -w /www/movies/ "$torrent" 
Once the file is downloaded, I can't seem to find a way to automatically get sub/file to update the database and .sql backup file. It seems like this is something that has been done so if so, I apologize but after days goggling, I haven't found it. I can use perl, php or shell but to get that info from torrent-cli, I am at a loss.
Occuoy Journey
Posts: 2
Joined: Wed Nov 22, 2017 10:26 am

Re: After download

Post by Occuoy Journey »

Still looking for help here. How do I find the sub folder and file name to update the database, PLEASE???
zhijiang
Posts: 2
Joined: Fri Jan 19, 2018 9:20 am

Re: After download

Post by zhijiang »

How about the transmission-cli's -f option?
Post Reply