100 Commits
Author SHA1 Message Date
test 92a0096b54 Merge remote-tracking branch 'upstream/develop' into develop 2014-11-10 08:29:27 -06:00
clinton-hall 5a0a5ad83b only compare filesize as int. 2014-03-19 15:45:20 +10:30
rbfblk b1e66478f0 Fixing an issue which strips all read bits from utorrent downloaded files on Linux 2013-10-16 22:17:17 +02:00
cicavey 79fd5fe332 Changed MIME type of JSONP requests to text/javascript 2013-10-12 07:11:37 -04:00
mano3m 871aecb689 Fix transmission #2168 2013-09-28 13:35:26 +02:00
mano3m 00bb055474 set backlog to False after backlog search 2013-09-28 12:36:43 +02:00
mano3m f10d182468 Added Blu-ray.com backlog automation
I missed a few movies, so I added backlog functionality to Blu-ray.com

If you want to add all Blu-rays that ever came out to the wanted list,
you can use this. Be careful with what you wish for :D
2013-09-28 12:36:43 +02:00
mano3m cfa89c8921 [uTorrent] Guarantee a folder
uTorrent does not create a folder in case only one file is present in
the torrent. This is a workaround that detects torrents with one file.
It then removes the torrent and readds it with a specified subfolder.
2013-09-15 10:01:59 +02:00
mano3m c13c0f24e5 Change type to protocol in release and renamer 2013-08-24 15:50:19 +02:00
mano3m 7eb1d72333 remove move exception from unrar PR 2013-08-24 15:50:19 +02:00
mano3m bf6bcaed72 provide more info in case no movie is found
Several users reported an issue with "more than one group found (0)",
and it was unclear to them what it meant. This might help.
2013-08-22 21:20:02 +02:00
mano3m 70bc2a6656 use right variable for pause
fixes #2049
2013-08-21 20:59:39 +02:00
mano3m 695cdea447 Remove 'move' exception
No need to remove files when 'move' is selected as the downloaders do
this themselves now when cleaning up
2013-08-21 20:59:38 +02:00
mano3m d0735a6d58 Add failsafe for symlink errors
E.g. on Windows you need Admin rights to symlink...
2013-08-21 20:59:38 +02:00
mano3m 175c26bea9 Fix untagDir and hastagDir
Changes in commit 8a252bff64 broke the
tagging functionality
2013-08-21 20:59:23 +02:00
mano3m 448c1d69a7 Regard torrents and torrent_magnet the same
When sorting the torrents and torrent_magnets were sorted, by taking
only the three first characters (as 'nzb; is three chars), the score
prevails. Fixes #2004
2013-08-11 00:06:07 +02:00
mano3m 0492e90d6f XBMC: properly check if host is local
And added option to scan if remote
2013-08-03 01:52:20 +02:00
mano3m b32d4fc42d Fix NZBGet url issue 2013-08-01 23:24:25 +02:00
mano3m fd95364d5f uTorrent ratio issue fixed
The tryFloat function returns 0 if it is fed with a float(!). This resulted in the seed_ratio being set to 0 on first/automatic download. When manually downloading, it did work as the ratio is stored as a string.
2013-07-31 15:04:48 +02:00
mano3m 470fde0890 Unset the uTorrent read only flags
Fix for #1871

Note that this is a fix for Windows only. I am unaware if this issue
arises on Linux/Mac and what happens with this fix on those systems.
2013-07-23 19:07:36 +02:00
mano3m 046c7e732f Add rpc_url to Transmission options
Fixes  #1832
2013-07-14 23:43:07 +02:00
mano3m 564a27461d XBMC: Only add directory if XBMC is on localhost 2013-07-14 23:30:37 +02:00
mano3m 4ebbc1a01d XBMC: Only scan the new movie folder 2013-07-14 02:19:35 +02:00
mano3m 2584abda0e Several fixes and increased readability 2013-07-13 17:06:59 +02:00
mano3m 998e487fe8 NZBs are not torrents :) 2013-06-30 10:14:08 +02:00
mano3m 7d9920691f Fix uTorrent settings automatically
Note that this might not be the way we want to go?
2013-06-29 22:50:25 +02:00
mano3m 7411670e22 Added complete download removal to SabNZBd 2013-06-29 10:36:02 +02:00
mano3m cfd23c395a Add failed download handling to Transmission 2013-06-29 10:23:08 +02:00
mano3m 18a88eab51 Textual change 2013-06-26 20:02:25 +02:00
mano3m 84e9f9794d Add awesomehd torrent provider 2013-06-26 19:53:28 +02:00
mano3m 628c0e5dcc Add yify torrent provider 2013-06-26 19:52:39 +02:00
mano3m cdee08bd36 Add status colours in dashboard 2013-06-26 19:49:05 +02:00
mano3m 7ed43da425 Also set seeding status in case nothing is done 2013-06-26 19:49:05 +02:00
mano3m 461a0b3645 Seeding support
Design intent:
- Option to turn seeding support on or off
- After torrent downloading is complete the seeding phase starts, seeding parameters can be set per torrent provide (0 disables them)
- When the seeding phase starts the checkSnatched function renames all files if (sym)linking/copying is used. The movie is set to done (!), the release to seeding status.
- Note that Direct symlink functionality is removed as the original file needs to end up in the movies store and not the downloader store (if the downloader cleans up his files, the original is deleted and the symlinks are useless)
- checkSnatched waits until downloader sets the download to completed (met the seeding parameters)
- When completed, checkSnatched intiates the renamer if move is used, or if linking is used asks the downloader to remove the torrent and clean-up it's files and sets the release to downloaded
- Updated some of the .ignore file behavior to allow the downloader to remove its files

Known items/issues:
- only implemented for uTorrent and Transmission
- text in downloader settings is too long and messes up the layout...

To do (after this PR):
- implement for other torrent downloaders
- complete download removal for NZBs (remove from history in sabNZBd)
- failed download management for torrents (no seeders, takes too long, etc.)
- unrar support

Updates:
- Added transmission support
- Simplified uTorrent
- Added checkSnatched to renamer to make sure the poller is always first
- Updated default values and removed advanced option tag for providers
- Updated the tagger to allow removing of ignore tags and tagging when the group is not known
- Added tagging of downloading torrents
- fixed subtitles being leftover after seeding
2013-06-26 19:49:04 +02:00
Ben Fox-Moore a5b1c685e1 Allow IPTorrents provider to read results across multiple pages
Conflicts:
	couchpotato/core/providers/torrent/iptorrents/main.py
2013-06-14 20:47:05 +02:00
clinton-hall 60034f2c96 add category preffered words and partial ignore. 2013-06-14 21:56:26 +09:30
clinton-hall 007597239f add categories 2013-06-14 15:06:59 +09:30
mano3m 2f30c6c781 fix failed issues
As reported in issue #1822 I broke try next release when failed. This
commit adds the failed status to several items.
2013-06-11 21:43:01 +02:00
clinton-hall 563e3072a5 add audio channels to renamer 2013-05-31 13:44:40 +09:30
mano3m 42e19e1e2b Replace linktastic with simple ctypes
Linktastic calls the command line interpreter to do linking. This
solution calls the windows API directly. This is faster and cleaner, but
most important of all: it doesn't cause a command window to popup every
time a link is made. This popup asks window focus and thus interrupts a
movie you are watching!!

Hopefully this also works on non-windows systems. I am unable to test
this so please let me know :)
2013-04-30 19:24:28 +02:00
mano3m 6ee68d1418 Fix getDownloadInfo 2013-04-26 19:37:47 +02:00
clinton-hall 92998bafc8 write unique id to nzbget params
My mistake. Fixed now.

Yeah... sorry ;)
This does work for check_snatched... Marks as busy, or failed etc.

keep consistent release table format

fix check_snatched

correctly parse the NZBGet Parameters and Pass status.downloader

remove downloader and fix id

My mistake. Fixed now.

Yeah... sorry ;)
This does work for check_snatched... Marks as busy, or failed etc.

keep consistent release table format

fix check_snatched

correctly parse the NZBGet Parameters and Pass status.downloader

remove downloader and fix id
2013-04-26 16:03:20 +09:30
mano3m 1022753213 Add username to nzbget downloader
For raspberry pi a different username than normal is required. Fixes
#1652
2013-04-24 22:19:34 +02:00
mano3m b85942989d Standardise failed status
apply the failed status in case of a manual re-add and automatic try
next release
2013-04-21 23:46:21 +02:00
mano3m 2979a8edec Cleanup 2013-04-19 21:28:53 +02:00
mano3m 185a530b59 only link for torrents not nzbs 2013-04-17 21:19:50 +02:00
mano3m 63609bb52c Fix Transmission 2013-04-05 00:09:23 +02:00
mano3m 2851781a72 Move around items between scanner and renamer 2013-04-01 13:03:05 +02:00
mano3m 45b9919f67 Added some debugging info 2013-04-01 10:16:30 +02:00
mano3m 8fe60a893c Update of uTorrent 2013-03-31 18:53:19 +02:00
mano3m 6a18e546ca Add and make use of renamer.scanfolder in downloaders
This is the next step in closing the loop between the downloaders and CPS. The download_id and folder from the downloader are used to find the downloaded files and start the renamer. This is done by adding an additional API call: renamer.scanfolder.

I tested this for SabNZBd only (!) and everything works as expected.

I also added transmission with thanks @manusfreedom for setting this up in f1cf0d91da. @manusfreedom, please check if this works as expected. Note that transmission now has a feature which is not in the other torrent providers: it waits until the seed ratio is met and then removes the torrent. I opened a topic in the forum to discuss how we want to deal with torrents: https://couchpota.to/forum/thread-1704.html
2013-03-31 10:49:40 +02:00
mano3m f9ace29cab Fix the names of quality identifiers
720P should be 720p, 1080P should be 1080p. Ref
http://en.wikipedia.org/wiki/720p and http://en.wikipedia.org/wiki/1080p

Note that this update only changes anything for new databases. For as
far as I can see the change for existing databases is minimal.
2013-03-23 00:40:38 +01:00
mano3m 2cb6ddfe9a Add automation genre checking
With this commit you can set requirements to the genres of movie
automation downloading. Required sets e.g. Action&Crime and/or ignored
sets e.g. Romance&Comedy.
2013-03-19 23:16:25 +01:00
dfiore1230 bba18d8bc9 added the ability to source /etc/default/couchpotato file
added the ability to source /etc/default/couchpotato file by testing for file existence and source when available

added lines 39 - 45
2013-03-15 13:58:33 +01:00
clinton-hall bb7b4cbbed Added try: except for two common errors
Does not fix the errors, but prevents the renamer being stuck as "in progress"
Allows next instance to run.
2012-12-13 19:45:13 -08:00
clinton-hall 5530fbf792 Remove ignore words. URL too long
Most people are experiencing 401 errors with nzbclub
2012-12-05 22:07:33 +01:00
clinton-hall 4bffce637e Fixed double-up in wording 2012-12-04 22:49:20 +01:00
clinton-hall 9f2941a45c Changed description for required words 2012-12-04 22:49:20 +01:00
clinton-hall f452106bfc Added comparison of sets of required words
Can now match sets of words containing words separated by & with each set separated by ,
This only requires any set of word(s) to be matched, but within each set ALL words must match.
2012-12-04 22:49:20 +01:00
Guillaume BIENKOWSKI c29a8b47d6 Basic support of Synology DownloadStation API
VERY basic. We're not logging out at the moment, and we keep the
session open.
No verification of the protocol version either (I assume DSM 4.1).

Very basic, indeed
2012-11-30 21:32:20 +01:00
Alexej Haak fdd0826b4f Added custom categories
less big api requests this way and better results (the cats include
audio quality filter)
2012-11-30 21:29:45 +01:00
Alexej Haak 81b7ebaf51 Kere.ws Implementation from Pheelee
Implementation by Pheelee
he closed the pull request some time ago and I dont know why.. Using
this for some time now with no problems at all
2012-11-30 21:29:45 +01:00
clinton-hall 71cca6b87f Removed excess tags from title
Now only adds "Source", "Video Format", "Audio Format", and "Language"
2012-11-13 18:43:31 -08:00
clinton-hall fef3eb1b84 Added replacement of uid and key for nzbsrus
Prevent people posting log files with their account information
2012-10-12 13:29:41 -07:00
clinton-hall dc63796e48 Added nzbname
previously defined in Downloader. I forgot to bring this across.
2012-09-26 17:12:19 +09:30
clinton-hall c6cba2f6e5 Only request SABnzbd status once
Performs the checking of queue and history here. Requests delete of failed downlaods via download.remove event.
2012-09-26 16:59:36 +09:30
clinton-hall ef945597d2 Removed checking of status results from here
getDownloadStatus is only called once from renamer and all results are passed back. Def remove is added so that renamer can request a failed downlaod to be deleted from SABnzbd if enabled.
2012-09-26 16:51:51 +09:30
clinton-hall ba36c738c7 Added def remove
Allows renamer to request deletion of failed downloads
2012-09-26 16:46:10 +09:30
mano3m 2d6c31af97 Some failure messages do not contain 'fail'. No message at all means success. 2012-08-18 19:52:07 +02:00
mano3m 71c181379a Fixed behavior for not compatible downloaders + typo's 2012-08-02 20:56:05 +02:00
mano3m 0193f7ad81 scan only once when multiple releases are snatched 2012-08-02 20:05:31 +02:00
mano3m 928c440f90 renamer cleanup 2012-08-02 19:01:19 +02:00
mano3m 4223ed4b5a Put the renamer as a function of a download status checker in the searcher class
The changed functionality is as follows:
- the renamer is not on scheduled interval anymore
- the download status checker checks the status of all snatched releases every x minutes
- if a release has downloaded it fires up the renamer (if enabled)
- if it failed, it sets the release to ignored and snatches the next best release

With these additions the renamer wont scan your hd anymore when it is not required, and will retry failed downloads with new releases.

To do:
- the only downloader implemented is SabNZBd, for the others it defaults to the old behavior when releases are snatched (I think!?)
- a button to scan manually: Items added to the renamer folder are only picked up after a download completed
2012-08-02 18:59:04 +02:00
mano3m 100b563e10 typo 2012-08-01 03:11:19 +02:00
mano3m db2c9e5156 Added config options 2012-08-01 03:09:34 +02:00
mano3m 4aae3c45ea Bug fixes, it should actually restart the download now 2012-08-01 02:38:00 +02:00
mano3m b262ed59a8 Fixed sab api bug 2012-07-30 19:15:25 +02:00
mano3m 2884488338 Removed double logging, bug fixes 2012-07-29 22:02:51 +02:00
mano3m 684ef44f84 Fixed typo and added some error handling 2012-07-29 20:18:31 +02:00
mano3m 6225ed92b1 Added failed download handling for sabnzbd.
It will check for failed downloads from the sabnzbd api and then set the failed release to ignore and try the search again.
2012-07-29 20:17:25 +02:00
mano3m 46c73dc43c Fix hint being added to the notification test button texts 2012-07-25 00:09:13 +02:00
mano3m 2406e9ef85 Fixed NMJ test 2012-07-24 23:27:26 +02:00
mano3m 80929b5806 small fix to xbmc notification test 2012-07-24 22:55:53 +02:00
mano3m 108044948f Fix XBMC and NMA Notification tests 2012-07-24 22:49:49 +02:00
mano3m 64c044acc1 Shutdown the logger before restarting CPS. Fixes issue #587 2012-07-15 19:09:48 +02:00
itsmegb 35c1dc70f0 pull priority from the config and uses a very hacky way to to show the
event type
2012-01-09 20:42:38 +00:00
alshain 89b783c3d1 PEP8 for cli.py 2011-02-13 13:14:51 +01:00
alshain 92f30fbe47 Adds RenameHistory. 2011-02-11 01:00:45 +01:00
alshain 33b30301fb Adds identifier, name not nullable in FileType. 2011-02-11 01:00:24 +01:00
alshain b6c4e451b4 Make size not nullable on File. 2011-02-11 00:59:27 +01:00
alshain ce5a91eaa7 Changes File model. 2011-02-11 00:58:40 +01:00
alshain 59f84df52f Adds mooli_id and resource relation to Release. 2011-02-11 00:57:58 +01:00
alshain 5374b633a6 Adds releases relation to Resource. 2011-02-11 00:56:58 +01:00
alshain 48f62a505c Adds new models to CP. 2011-02-11 00:27:20 +01:00
alshain 34acf6f225 Changes Flask initalization. 2011-02-10 21:18:55 +01:00
alshain aa0c2f471a Removing model. Restructuring. 2011-02-10 21:18:32 +01:00
alshain 6ef510457a Adds traceback if wrapper fails. 2011-02-08 00:26:09 +01:00
alshain 2d16458ff3 Fix bad submodule URL. 2011-02-07 23:46:24 +01:00
alshain 079d65ec59 Also adds src path when running from script. 2011-02-07 23:40:02 +01:00
alshain 34486e06a5 Updates CouchPotato wrapper code. 2011-02-07 23:34:25 +01:00