Search found 4 matches

by witwolf
Sun Jan 09, 2011 8:22 am
Forum: Plugins
Topic: Script to add torrent and change tracker with Python
Replies: 5
Views: 11427

Re: Script to add torrent and change tracker with Python

Flexget would have worked perfectly if I could set the download location on a file to file basis.
Ok maybe I was wrong. CLI-CONFIG might be the solution.
by witwolf
Sun Jan 09, 2011 8:14 am
Forum: Plugins
Topic: Script to add torrent and change tracker with Python
Replies: 5
Views: 11427

Re: Script to add torrent and change tracker with Python

Thank you for your reply gazpachoking. I had a look into the flexget solution. Although it is much simpler to do it this way I am unable to instruct it where to download the files on a torrent to torrent basis. My work flow is as follows: TV series get added by sickbeard to SABNZBD. This downloads t...
by witwolf
Sat Jan 08, 2011 3:08 pm
Forum: Plugins
Topic: Script to add torrent and change tracker with Python
Replies: 5
Views: 11427

Re: Script to add torrent and change tracker with Python

I now have the following. path = "/home/test/test.torrent" opts = {} opts['download_location'] = "/home/test/" f = open(path, 'rb') filedump = base64.encodestring(f.read()) f.close() filename = os.path.basename(path) addresult = client.core.add_torrent_file(filename, filedump, op...
by witwolf
Sat Jan 08, 2011 11:42 am
Forum: Plugins
Topic: Script to add torrent and change tracker with Python
Replies: 5
Views: 11427

Script to add torrent and change tracker with Python

Hi, I am a complete noob with python as well as with the UI of deluge. I am trying to create a script in Python which could be called in the command line by a bash script to add a created torrent file and then change the tracker to another entry. I have started to play with the script but are unable...