Project

General

Profile

Feature #3417

Allow filter/autorec based on note (rating)

Added by Sébastien Aubry almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-12-13
Due date:
% Done:

0%

Estimated time:

Description

Hi,
I would love to be able to add some rules for filter/autorec such as : "Record every movie with a note of 100/100"

It would allow me to always have my hard disk full of good movies :-)
Currently, I do that manually every week.
Adding a filter on the "Note column" would allow that.

Thank you very much

History

#1

Updated by Sébastien Aubry almost 9 years ago

Hello,
I have done that using the Python HTSP interface. The following program records every program rated 60% or more, or every program of 1 hour or more which is rated >0%.

import htsp
import log
client = htsp.HTSPClient(('192.168.0.2',9982))
client.getEvents()
events = client.recv()['events']
for event in events:
  duration = event["stop"] - event["start"]
  rating = event.get("starRating")
  if rating >= 60 or (duration >= 3600 and rating):
    log.info("Recording " + event["title"])
    log.info(event, pretty=True)
    client.addDvrEntry({"eventId":event["eventId"]})

Also available in: Atom PDF