Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature request: omit frequently-scheduled programmes #5

Open
GoogleCodeExporter opened this issue Apr 19, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

I have a number of repeated schedules (mainly news). Their rule is matched
on most days, usually at the same time. 

I do not want my mythtv calendar to show these programmes, as the signal to
noise level drops, and it is harder to quickly see the irregular recordings
taking place.

I have added a few lines of code to cause mythcal to filter out any
programmes which appear more than 5 times (I get a schedule for the next 8
days). I would be happy to submit the code as a patch, if requested.

Original issue reported on code.google.com by nicholas.farrell on 21 Jan 2010 at 3:06

@GoogleCodeExporter
Copy link
Author

Nicholas, I'd be interested in seeing your patch.

Another solution is to have a predefined list of programme titles that should be
excluded from the calendar.

Original comment by richardfearn on 23 Jan 2010 at 2:55

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Richard, I've attached the patch. I have modified my original approach a little 
to be
more general. If you want to suppress entries for everything with news in the 
title,
you could put 'prog.title.lower().find('news') > -1', with a 
suppression_threshold of
1. (If the expression returns None or False that program will never be 
suppressed).

If you want to suppress all items with 'news' or 'football' in the title, you 
could
do something like: 
len(filter(lambda n: prog.title.lower().find(n) > -1, ['news', 'football'])) > 0

Granted, this is a little tricky for non-pythoners to figure out, but it does 
allow
power mythtv users to be in control. 

Personally, I use 'prog.recordid' as the suppression expression, with a 
threshold of
4 (with a DVB-T programme for the coming 8 days).

This diff assumes the configuration parameters are in the mythtv section, but 
you may
prefer to create a separate section.

If you :


Original comment by nicholas.farrell on 24 Jan 2010 at 12:04

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant