Hey wally007,
wally007 wrote:
how exactly does scheduling work ?
Here's a general idea of what's going on when you run the scheduler:
1. build a list of watched series by scanning each configured tv_root directory
2. retrieve delayed items from database and process them. If any items are missing
*, schedule them for download
3. scan each configured RSS source and process items. If any items are missing
*, schedule them for download
4. add new delayed items to database
* the most complicated job of the scheduler is determining if a given item should be downloaded. This involves several steps:
1. check if the item belongs to a series that MR is watching for
2. make sure that the season / broadcast year of current item isn't being ignored by a series filter
3. if the item represents a multipart episode (ie s01e01-s01e02), check the config to see if the user preference is to accept it
4. make sure that exact item hasn't already been processed by the queue
5. check if episode is already on disk
**
6. make sure episode isn't already in queue
**
** determining if an episode is already on disk
(note: same process applies when checking the queue):
1. compile list of
single episodes found on disk for a given series. List includes all parts of multiepisode files. For example, two files s01e01-02, s01e03 translates into the following list of episodes: s01e01, s01e02, s01e03
2. check list to see if current episode is already on disk. At this point if the potential download is missing, MR will stop processing and mark it desirable (meaning it should be downloaded). If it's already on disk...
3. and quality management is on, compare the quality of potential download with that of current episode on disk. If we don't know the quality of an episode on disk, MR defaults to:
a) using the extension (if configured), or
b) the default quality level for the series, or
c) the default quality level for all tv
At this point, if MR hasn't found any reason to schedule the item for download it will be skipped. If it is found to be desirable (missing, of more desirable quality, etc), it will be scheduled for download.
I hope this clears things up a bit. Let me know if something is unclear
Kierse