Commit graph

121 commits

Author SHA1 Message Date
adam
d47ad5f332 Change to only rebuild namecache on show update instead of on every search
Add removal of old entries from namecache on show deletion
2015-05-26 09:33:58 +08:00
Adam
821e38adf7 Merge branch 'master' into develop 2015-05-25 11:06:09 +08:00
Adam
9d08b8ef8f Fix erroneous multiple downloads of torrent files which causes snatches to fail under certain conditions
Namely this fixes snatching with the IPtorrents provider. This issue is masked in develop as the requests library has been updated and fixes the error that is generated
2015-05-25 11:03:30 +08:00
JackDandy
9ad4b4cd30 Remove EZRSS provider. 2015-05-18 19:54:25 +01:00
JackDandy
ebdbf43d8b Merge pull request #321 from Prinz23/feature/AddSearchUnaired
Add Option to search for Unaired Episodes
2015-04-28 19:17:16 +01:00
Prinz23
8f69adaada Fix clearing provider cache 2015-04-25 16:48:15 +08:00
Prinz23
4ae30ab6ad Add option "Search for unaired episodes" to config/Search Settings
* Change reduce time to search recent result list by searching only once for a best result
* Fix replacing episodes that have a lower quality than what is selected in the initial and archive quality list
* Fix to include episodes marked Failed in the recent and backlog search processes
* Fix display of search status for an alternative release after episode is manually set to "Failed" on the Display Show page
* Change handle more varieties of media quality
* Change to prevent another scheduled search when one of the same type is already running
2015-04-24 20:45:45 +02:00
Adam
ee0dfbc357 Fix season pack search errors 2015-04-15 12:17:28 +08:00
JackDandy
c96dbf7ea6 Change to reduce the time taken to "Update shows" with show data.
Add "Enable IMDb info" option to config/General/Interface.
Change to not display IMDb info on UI when "Enable IMDb info" is disabled.
Change genre tags on displayShow page to link to IMDb instead of Trakt.
Change to reduce the time taken to "Update shows" with show data.
Change when IMDb info is updated...
a) stop updating the IMDb info during the scheduled daily update for every show.
b) update the IMDb info for a show after snatching an episode for it.
Develop changes...
Fix being able to actually turn IMDb off when it has been turned on.
Remove IMDb option from General Settings.
Change IMDb option to enable by default now the slow operation has been eliminated from process flows.
2015-03-14 15:09:39 +00:00
JackDandy
e6b7feef3d Change to simplify and reduce logging output of Recent-Search and Backlog processes. 2015-03-13 18:21:46 +00:00
adam
d1687dd401 Change layout of Recent Search code
Change naming of SEARCHQUEUE threads for shorter log lines
Fix Recent Search running status on Manage Searches page
2015-03-12 15:31:35 +08:00
JackDandy
692422cafa Change when picking a best result to only test items that have a size specifier against the failed history. 2015-02-15 02:47:46 +00:00
Supremicus
47da38a914 Logging message tweaks and minor PEP8 tweaks
* Change corrected spelling & better clarified various log messages
* Change minor PEP8 tweaks in sab.py
* Add api disabled error code for newznab providers
2015-02-08 12:59:10 +10:00
adam
ea99736939 Change anime release groups to in memory storage for lowered latency 2015-01-20 19:36:19 +08:00
JackDandy
c16903bd73 Change "Daily" search to "Recent" search. 2015-01-07 19:54:18 +08:00
Supremicus
4c8c6b21d5 Change logos, text etc. branding to SickGear. 2014-11-12 20:56:40 +00:00
KontiSR
0d415fcc20 This is a first attempt of getting the season pack downloading to work.
Unfortunately some of the old code I modified is still not 100% clear to me.. so I can't really oversee if this will work. That's why I suggest, this should be extensively tested, before merging into master!

I broke backlog searching.. Should be working again.

Tested, and seems to be working fine!
2014-09-25 13:18:07 +02:00
Adam
0aedf52997 Threads dailysearcher process for each provider. Allows dailysearcher to continue other operations without having to wait for providers with slow network operation 2014-09-22 13:41:29 +08:00
adam
5ac3895600 Fixes daily search and speed improvements 2014-09-20 20:34:00 +08:00
echel0n
627debcf88 Building of name cache executed now at start of searches to prevent building cache for show more then once when not needed 2014-09-15 02:46:08 -07:00
echel0n
67bd1a9e98 Fix for daily searches and high cpu usage plus increases search speed 2014-09-15 01:28:11 -07:00
echel0n
59675f27ac Fixed failed download handling.
Improved search queue code.
2014-09-06 21:36:23 -07:00
echel0n
65eda93b2b Fixed high CPU usage during searches, adding conditional check to prevent un-needed name parsing of search results when search result was previously already parsed and checked during filtering of bad releases 2014-09-06 17:25:07 -07:00
echel0n
ee458bd211 Fixed AttributeError: 'NoneType' object has no attribute 'is_scene' in scene_numbering code.
Show root dirs can not be set from general config menu.
Mass editing shows now has the ability to delete root dirs as well as edit them.
Daily search no longer is restricted to just 1 week of results for searching from which now allows for replacing lower quality downloads with higher quality ones if available.
RSS Cache is updated for each provider on demand now when performing manual, failed, backlog, or daily searches.
2014-08-30 01:47:00 -07:00
echel0n
bcffc09589 Replaced provider backlog only search option with 2 new options that allow you to enable daily searches and backlog searches individually per provider, default is enabled for both. 2014-08-28 22:16:25 -07:00
garvinob
dce55b3dac Renamed bestSeasonNZB to bestSeasonResult
bestSeasonNZB is confusing in this context
we are dealing with results which can be
NZBs or Torrents
2014-08-24 18:47:06 +01:00
garvinob
94063db43e Fixed result content for Season Pack results
Added an extra check into the snatchEpisode method
so that the result.content data for a required
torrent is always downloaded if needed
2014-08-24 00:19:17 +01:00
echel0n
11150efab0 Filter out possible torrent links that would return a 404 http error 2014-08-17 22:21:37 -07:00
echel0n
f3073174ed Possible fix for failed to send torrent errors 2014-08-17 22:02:29 -07:00
echel0n
88d68cfe11 Possible fix for failed to send torrent errors 2014-08-17 21:40:18 -07:00
echel0n
e2d1178515 Fix for season pack searches 2014-08-17 18:36:21 -07:00
echel0n
0a936ea1ef Changed log message to be less confusing for torrents 2014-08-17 18:32:47 -07:00
David Waldhans
16ae4c1db7 Fixed search pattern for checking ignored and required words in release names 2014-08-10 13:56:55 +02:00
echel0n
19a89d453c We now check if a torrent url links to a valid file before adding as a verified result to get snatched, this helps prevent issues when attempting to add torrent to client later on to find the url returned nothing resulting in a error. 2014-07-28 12:19:41 -07:00
echel0n
9493a8f7e5 Added back in missing code for finding propers, was removed by mistake.
Fixed issue with torrent clients not snatching due to improper handling of torrent hashes/files.
2014-07-27 07:04:37 -07:00
echel0n
14c354b551 Added proxy support to Indexer APIs.
Provider getURL and downloadResult functions now removed and replaced with ones from helpers.py to help slim the code down plus allow more better control over request sessions.

Removed TVTumbler code.

Fixed HDBits provider.

Fixed config settings that were ment to be booleans but instead where set as str or int, should help resolve random html errors.

XEM Refresh check re-coded.

NameParser code for creating show object has been changed to only attempt at the very end once its found the bestMatch result, helps on resources and performance.
2014-07-27 03:59:21 -07:00
echel0n
012baeda0c Fix for no providers found error during searches. 2014-07-24 12:05:49 -07:00
echel0n
b16ff81478 Fixes for thread naming issues where provider names are getting stacked on top each other per loop iteration.
Fix for speedcd no json data issue.

Fix for DB upgrade syntax errors caused by previous commit.
2014-07-24 09:12:29 -07:00
echel0n
636bbfa2de Fixes issues with scene exception updating when editing a show, should resolve problems with it duplicating scene exception name over and over again.
Reduced DB sleep timer to increase overall performance of application.

Improved generic queue code for threading.
2014-07-19 22:29:19 -07:00
echel0n
c25da850ab Updated scene exception code for checking when last refreshed. 2014-07-19 04:52:55 -07:00
echel0n
d02c0bd6eb Fixed issues with editing/saving custom scene exceptions.
Fixed charmap issues for anime show names.

Fixed issues with display show page and epCat key errors.

Fixed duplicate log messages for clearing provider caches.

Fixed issues with email notifier ep names not properly being encoded to UTF-8.

TVDB<->TVRAGE Indexer ID mapping is now performed on demand to be used when needed such as newznab providers can be searched with tvrage_id's and some will return tvrage_id's that later can be used to create show objects from for faster and more accurate name parsing, mapping is done via Trakt API calls.

Added stop event signals to schedualed tasks, SR now waits indefinate till task has been fully stopped before completing a restart or shutdown event.

NameParserCache is now persistent and stores 200 parsed results at any given time for quicker lookups and better performance, this helps maintain results between updates or shutdown/startup events.

Black and White lists for anime now only get used for anime shows as intended, performance gain for non-anime shows that dont need to load these lists.

Internal name cache now builds it self on demand when needed per show request plus checks if show is already in cache and if true exits routine to save time.

Schedualer and QueueItems classes are now a sub-class of threading.Thread and a stop threading event signal has been added to each.

If I forgot to list something it doesn't mean its not fixed so please test and report back if anything is wrong or has been corrected by this new release.
2014-07-14 19:00:53 -07:00
echel0n
7a95b0bb14 Added new InvalidShowException to NameParser, Removed isGoodResult search check and now attached parsed result show objects and compare them against the show object we use to search with instead. 2014-07-06 06:11:04 -07:00
echel0n
75f69396d4 Reverted some changes. 2014-06-30 08:57:32 -07:00
echel0n
5e507b3849 More memory reductions and cleanups 2014-06-30 04:44:36 -07:00
echel0n
301f124cbb Fixed dailysearcher to only update the cache results for each provider once at start of the dailysearch routine instead of per-show which was wasting cycles and time. 2014-06-26 17:13:41 -07:00
echel0n
7e0bb651b2 Database now closes connection after each query and reconnects if closed to ensure no more connection and locked database problems.
Fixed more internal 500 errors.
2014-06-21 15:46:59 -07:00
echel0n
d73cc1cbbd Replaced cherrypy with tornado which helped resolve our memory leak issue. 2014-06-14 20:56:15 -07:00
echel0n
d00d55fdfc Modified DB code to close its connection if right after its finished with it, helps performance-wise and should resolve locked db issues as well. 2014-06-07 14:32:38 -07:00
echel0n
997896a540 Fix for transactionals and None Types in sql lists 2014-05-30 04:42:31 -07:00
echel0n
70e7f1bfce Fixed issues with scene numbering being overwritten by ep objects.
Converted more object saves to database to use transactionals, better performance.
2014-05-30 03:01:49 -07:00