Coder Social home page Coder Social logo

evilhero / harpoon Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 2.0 167 KB

an rtorrent automated monitor script that will transfer from a seedbox to local machine, with additional post-processing for sonarr, radarr, lidarr, mylar, lazylibrarian and sickrage. Can also manually drop torrents for monitoring/transfer/post-processing...

License: GNU General Public License v3.0

Python 98.61% Shell 1.39%

harpoon's People

Contributors

evilhero avatar willowmist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

harpoon's Issues

Your FAEC

I'm not sure exactly how to get into this situation, but if you already have rars for a release in your PP folder, then Harpoon starts to do its thing and download/extract/delete the rars of a release, you'll wind up in a scenario wherein you've got both the rar files, and the unrared .mkv file.

After sonarr/radarr has PP'd the release, you're left with the untouched rars still. This requires manual cleanup.

Initiating

I'm probably going to regret posting this because it's probably going to be obvious when it's answered. But how do you get this to run? I've made a copy of conf.ini.sample to get conf.ini. I've filled it in. I've tried python harpoon.py, I've tried python harpoonshot.py, I've tried python harpoon.py --(different options). I always get:

Traceback (most recent call last):
File "harpoon.py", line 28, in
import requests
ImportError: No module named requests

What's staring in the face is where it says Linux only. But Mac is UNIX based just like Linux, so I'm hoping that's not it.

Your error messages suck

When there's an error with PPing, Harpoon will assume that it completed successfully even though there's an error. Here's the error in question:

[17:39] 26-May-2018 09:39:12 - INFO :: MainThread : Label: sports
[17:39] 26-May-2018 09:39:12 - INFO :: MainThread : Multiple Seedbox: 2
[17:39] 26-May-2018 09:39:12 - INFO :: MainThread : Executing command ['/bin/bash', '/opt/harpoon/snatcher/getlftp.sh']
[17:39] 26-May-2018 09:39:12 - WARNING :: MainThread : Exception occured: execve() arg 3 contains a non-string value
[17:40] 26-May-2018 09:40:32 - INFO :: MainThread : [OUTPUT] mirror: Fatal error: Host key verification failed
[17:40] 26-May-2018 09:40:32 - INFO :: MainThread : Successfully auto-snatched!
[17:40] 26-May-2018 09:40:32 - INFO :: MainThread : [CLEANUP-CHECK] item: {'item': u'C65C61AF08E6F50A4D0AA56E457FCB0E484D51F2', 'client': 'rtorrent', 'mode': 'hash-add', 'label': u'sports'}
[17:40] 26-May-2018 09:40:32 - INFO :: MainThread : Completed status returned for manual post-processing of file.
[17:40] 26-May-2018 09:40:32 - INFO :: MainThread : Auto-Snatch of torrent completed.

Download next item in queue while PP is processing

As mentioned on IRC, to help speed Harpoon up, if we can download the next item in the queue while Sonarr/Radarr/Lidarr/whatever is post-processing the current release would be great and it would wind up allowing Harpoon to work that much faster.

harpoon crashes on Apple ._ files

When adding a torrent from a mac with the harpoon watch folder mounted as a smb share, harpoon seems to stop at apple resources forks (._filename.torrent).

There's no way to disable the creation of these files when moving a file to the share.

Here's the entry from the log:

Traceback (most recent call last):
File "./lib/apscheduler/scheduler.py", line 476, in _run_job
retval = job.func(*job.args, **job.kwargs)
File "./harpoon.py", line 1258, in Scanner
torrent_info = tinfo.main()
File "/home/user/harpoon/harpoon/rtorrent.py", line 172, in main
loadit = self.client.load_torrent(self.filepath, self.label, self.start, self.applylabel, self.basedir)
File "/home/user/harpoon/harpoon/torrent/clients/rtorrent.py", line 112, in load_torrent
torrent = self.conn.load_torrent(filepath, verify_load=True)
File "/home/user/harpoon/lib/rtorrent/init.py", line 167, in load_torrent
tp = TorrentParser(torrent)
File "/home/user/harpoon/lib/rtorrent/lib/torrentparser.py", line 54, in init
assert isinstance(self._torrent_decoded, dict), "Invalid torrent file."

As far as I can tell, it does not go past that point.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.