Opened 3 years ago

Closed 9 months ago

#12712 closed Patch - Bug Fix (Won't Fix)

Python binding for class Recorded does not accept recordedid

Reported by: lomion@… Owned by: Raymond Wagner
Priority: minor Milestone: 0.28.2
Component: Bindings - Python Version: 0.28.0
Severity: medium Keywords:
Cc: Ticket locked: no

Description

For some reason class Recorded in dataheap.py requires the recordedid as key instead of [chanid,starttime] as it was in the past.

This patch allows to pass a single parameter instead of a tuble (chanid,starttime) as before.

In order to use this fix with user jobs I provide a second patch which adds recordedid to the Jobqueue parameters

Attachments (2)

12712_1.patch (584 bytes) - added by lomion@… 3 years ago.
12712_2.patch (592 bytes) - added by lomion@… 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by lomion@…

Attachment: 12712_1.patch added

Changed 3 years ago by lomion@…

Attachment: 12712_2.patch added

comment:1 Changed 2 years ago by lomion@…

To get the RECORDED ID into the user job I had to patch mythtv/libs/libmyth/programinfo.cpp line 5342:

void ProgramInfo::SubstituteMatches(QString &str) 
    str.replace(QString("%INETREF%"), inetref);  
    str.replace(QString("%PARTNUMBER%"), QString::number(partnumber));  
    str.replace(QString("%PARTTOTAL%"), QString::number(parttotal));  
+    str.replace(QString("%RECORDEDID%"), QString::number(recordedid));  
    str.replace(QString("%ORIGINALAIRDATE%"),  
        originalAirDate.toString(Qt::ISODate));  
    static const char *time_str[] =  

 
  

comment:2 Changed 2 years ago by Stuart Auchterlonie

Milestone: unknown0.28.1

comment:3 Changed 21 months ago by Stuart Auchterlonie

Milestone: 0.28.10.28.2

Moving remaining open 0.28.1 tickets to 0.28.2

comment:4 Changed 9 months ago by Stuart Auchterlonie

Resolution: Won't Fix
Status: newclosed

Closing any remaining tickets for 0.28, if the issue persists, feel free to reopen and align to v29 or master

Note: See TracTickets for help on using tickets.