Commit Graph

117 Commits

Author SHA1 Message Date
kay.one 4da2e1cb72 Episode auto-ignore is now done in realtime rather than using a job. 2012-01-16 20:05:36 -08:00
Mark McDowall 218059e08d Added the ability to auto-ignore episodes for files that are deleted, good for people that delete after watching. Option is not exposed in the UI and is disabled by default (obviously). 2012-01-15 20:12:47 -08:00
Mark McDowall 7ff53e5ac2 Season 1, Episode 0 will not be automatically ignored (usually a pilot), with test. 2012-01-14 11:09:48 -08:00
kay.one 721bb51886 logging updates. 2012-01-09 14:01:39 -08:00
kay.one 7ec89056af Auto adding of episodes is now disabled. (we should make it more conservative if we want to bring it back) 2012-01-06 13:26:05 -08:00
Mark McDowall e4985cbd66 Moved try/catch for failed refresh episode info to job. 2012-01-04 11:24:17 -08:00
Mark McDowall 6bd0b8a39e Added additional logging when updating episode info. 2012-01-01 12:09:53 -08:00
Mark McDowall 77bf257132 GetEpisodesByParseResult will log a warning when an episode is daily, but series isn't. 2011-12-19 16:46:14 -08:00
kay.one 98e8f4361e Better logging for auto adding new episodes. 2011-12-14 00:07:47 -08:00
Mark McDowall d2779d2cdf Fixed bug with duplicate episode naming. 2011-12-05 18:22:55 -08:00
Mark McDowall f3fbcec8cb GetEpisodesByParseResult will return multiple episode names when multiple episodes are found. 2011-12-01 22:26:24 -08:00
kay.one cc8c70d7f5 Fixed some bugs, cleaned up some code. 2011-12-01 11:05:17 -08:00
Mark McDowall fbc0a561ca Fixed a big where Season 0 wasn't being ignored for new seasons + a test to confirm it. 2011-11-30 00:21:18 -08:00
kay.one 30497357b4 Removed single search method in indexer base. 2011-11-28 22:49:38 -08:00
Mark McDowall 290e5d5897 Daily episodes that are added via RSS feed will have proper season and episode numbers. 2011-11-24 23:56:07 -08:00
Mark McDowall 38790e9f9c GetEpisodesByParseResult will properly handle Daily episodes. 2011-11-24 00:28:20 -08:00
Mark McDowall 2aaa23b11d Refreshing EpisodeInfo will now set new or existing episodes that have air times prior to 1900 to null. 2011-11-23 22:28:52 -08:00
Keivan Beigi ae1a32b874 Fixed an issue where GetEpisodesByParseResult would throw object reference when episode list was null 2011-10-20 16:07:47 -07:00
Keivan Beigi 6af98f9e96 more better exception handling. 2011-10-17 12:23:34 -07:00
Mark McDowall 117cebe655 Found and fixed a bug in EpisodeProvider.GetEpisodesByParseResults, where it would incorrectly return all episodes for a season when a file was detected as a Full Season release. 2011-10-15 11:51:11 -07:00
Mark McDowall 8cac84b4ad PostDownloadProvider broken down further.
Will try to reprocess _NzbDrone_ directories each pass, but will mark with an error when possible.
Attempt to process _UNPACK_ and _FAILED_ directories 30 minutes after first detected by NzbDrone (to give SAB time to unpack properly before processing).
2011-10-14 08:37:19 -07:00
Mark McDowall 5098ea3249 Added two new Episode Statuses - Unpacking and Failed.
Tests added to support new Statuses.
PostDownloadScanJob will update PostDownloadStatus for failed or unpacking.
ImportFile will set the PostDownloadStatus to Processed when added to the database.
2011-10-11 20:44:19 -07:00
Mark McDowall 33930534c2 Ignore Episode Zero when adding a new episode to the database, either via GetEpisodesByParseResult
or RefreshEpisodeInfo. With tests.
2011-10-03 19:01:39 -07:00
Mark McDowall 79472964ed DeleteInvalidEpisodes Deletes by TvDbId only, skipping any manually added episodes (TvDbEpisodeId is 0 or null) 2011-09-30 09:32:57 -07:00
Mark McDowall 30ffe79442 DeleteInvalidEpisodes with tests added to delete episodes that TheTvDb no longer has (previously bad data). 2011-09-29 21:40:00 -07:00
Mark McDowall 4b2427ade7 Report size is now verified to ensure it is under the MaxSize for that quality type, with tests. 2011-09-13 21:37:22 -07:00
Mark McDowall 179de93a6e Removed AttachSeries for IEnumerable and using join instead, speed difference is negligible or in some cases faster . 2011-09-04 19:56:45 -07:00
Mark McDowall 8592ae4c88 AttachSeries is no longer used for single episodes, PetaPoco will get the series in a single call for us. 2011-09-04 02:20:49 -07:00
Mark McDowall 0a65e85e21 EpisodesWithFiles now returns the full series object, instead of just the SeriesTitle (So we don't need to add junk to the Episode class) 2011-09-04 00:45:58 -07:00
Mark McDowall 0b586de226 Added misnamed provider, PLINQ speeds it up, but still to slow for use, paging helps, but isn't consistent.
A bunch of files changed removing System.Linq, thanks Resharper :(
2011-09-03 20:05:44 -07:00
kay.one 9244a4e6ef Update episode info now uses UpdateMany, InsertMany 2011-08-28 20:03:40 -07:00
Mark McDowall f604c35768 Backlog search added (disabled) - It will search for a full season if a full season is missing. 2011-08-28 12:07:56 -07:00
Mark McDowall 412a3fc476 EpisodesWithoutFiles now skips ignored episodes, Tests updated. 2011-08-03 22:56:42 -07:00
Mark McDowall 4f68d07c9a Fixed issue with missing episodes incorrectly using include specials.
Added tests for missing episodes.
2011-08-03 22:44:24 -07:00
Mark McDowall c88ead0585 Wired in the season and episode ignore saving.
Converted setSeasonIgnore & setEpisodeIgnore to use inline SQL.
Added tests for setSeasonIgnore & setEpisodeIgnore.
2011-08-03 18:45:45 -07:00
kay.one 28b840766e Merge branch 'markus101' 2011-07-27 16:05:08 -07:00
kay.one b4fb3002a4 Updated Add Series 2011-07-27 15:59:48 -07:00
Mark McDowall 0ed898b6db IsIgnored will now be checked when adding new episodes to the DB, it will:
- ignore new episodes of a season if that season was already ignored
- ignore new seasons if the previous was ignored
- ignore specials (when a new series is added), if a user chooses to download specials, all new specials will not be ignored

Added tests for IsIgnored and AddEpisode changes.
2011-07-22 17:57:52 -07:00
kay.one c37544d4ce Episode is now marked as grabbed on download 2011-07-03 16:04:57 -07:00
kay.one 69239bc371 Switched to SQLCE 4.0 2011-06-22 23:56:17 -07:00
kay.one 5fb2c61c77 Fixed sab title issue
Added profiling to OpenSharedconnection
2011-06-21 20:38:46 -07:00
kay.one 31c16b9004 Merge branch 'markus101' 2011-06-21 18:17:03 -07:00
kay.one 01163a4f87 Cleanup and tests around ImportFile 2011-06-21 18:12:20 -07:00
Mark McDowall cdf77ad2df Changed QualityProfile to a ResultColumn to make note that it will be used as a result only.
Wrapped find series in try/catch to prevent a case where the series is in SceneMapping, but isn't in the users database.
2011-06-21 17:11:08 -07:00
Mark McDowall 244e0f04f4 Fixed UnitTests (set EpisodeFileId to zero where no episo.de file is expected back) 2011-06-20 00:40:45 -07:00
kay.one 852b1e9bb5 Merge branch 'markus101' 2011-06-19 20:28:09 -07:00
kay.one 45549fa50b Fixed attach series issue and null episodes. 2011-06-19 20:25:24 -07:00
kay.one d3f823734e Cleanedup get GetNewFilename 2011-06-19 18:59:31 -07:00
Mark McDowall b084a3bc46 EpisodeProvider GetEpisode(s) returns episodes with EpisodeFiles. 2011-06-19 18:46:32 -07:00
kay.one 3d3e864094 EpisodeProvider now fills Series property for all episodes returned. 2011-06-18 22:57:24 -07:00