-
Notifications
You must be signed in to change notification settings - Fork 346
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
Rare duplicate recordings with manual recording rules #909
Comments
What is the recording rule ID for the manual rule and what are the recording rule IDs for the two recordings? Also, can you please upload the backend log for the time in question? |
We already deleted the duplicate recording. From what I can tell in mythfrontend, the recording rule ID for the recording is 1752. I don't know how to find the recording rule ID for the rule itself. However, looking at the log mythbackend.log.gz the recording rule ID does appear to be 1752 for both recordings. The titles are "GP Rodgers & Hammerstein (Manual Record)" and "Great Performances". It appears the recording rule was set up on 2024-05-26T17:47:03.294738-04:00. The recording was on 2024-05-31 from 20:58 to 23:02, and the duplicate deleted 2024-06-01T19:53.
Similar log for a duplicated NOVA (rule 1743) on 2024-05-15T20:58. |
Thanks. Can you also please dump the guide data from the program table in the database for the channel in question around the time of the recording. Since you said you're using EIT, I want to see what's actually there to cause an unexpected match. |
I'm not sure what exactly you want by "dump the guide data from the program table in the database for the channel in question around the time of the recording". I don't know mysql but I determined 'SELECT * FROM program WHERE chanid = 12601' but I don't know how to get that into a file. Regardless, the database backup is only about 70 MiB, so I could upload that if it is easier? I just triggered it on my development system while testing #646 rebased onto master:
"The Real Crown: Inside the House of Windsor" shows recording rule: 1202, "The Real Crown: Inside the House of Windsor" |
The easiest way to get the query output is to redirect the output from the mysql command to a file. For example:
Next easiest, IMHO, is to use the mycli client (https://github.com/dbcli/mycli). For example:
I use manual recordings occasionally (as recently as a few weeks ago) and have never seen anything like this. I'll retest tomorrow to be sure. |
program_table-dev.tsv.txt It looks like on my dev machine it took the manualid from a deleted recording rule, but on my other machine I see no evidence of this. |
Thanks for the program table data. It looks normal. Do you have regular, recording rules which match programs at the same time/channel as your manual rules? |
We only use manual recording rules since the broadcast EIT data in the US is poor (some channels appear to not transmit anything) and anything we want to record is either at the same time every week or we only want a single episode (e.g. we are not necessarily interested in every episode of "Great Performances"). Also, the EIT data does not appear to include a subtitle. We don't record very much, so setting up the manual recording rules works for us. Also, it allows us to force the recording to start early and end late. |
How you record is your business. Though, I must say the Schedules Direct, guide data is accurate, useful and very affordable. I don't get any money from them but the more subscribers they have, the easier it is for them to keep the service available and affordable. Anyway, something is causing programs in the guide data you have to match. Manual recording rules should not do that and don't in my testing. I will have to add some more information to the log messages in hopes of shedding some light on the problem. I'll try to do that in the next day or two. |
I apologize for taking so long to get back to you. Other things keep getting in the way and now I have something weird going on that makes every MythTV program to pause for several minutes at start up. Anyway, I realized that most of what I need to know for now can be found by a simple patch and increasing the log level. Please apply the patch below and then change your backend logging to use --loglevel debug and --verbose schedule.
|
I didn't have time to test with your logging patch on my development machine, but I did increase the logging on my production machine (which uses Ubuntu's package for v34). Search for "Disco": mythbackend.log.2.gz |
This latest log is helpful but not helpful enough to confirm what I think might be happening. To be sure, I really need to know the matched recordid. Please apply the patch above at your convenience and upload the resulting log the next time the issue occurs. |
With the patch applied to master: Around 01:00 in the log:
Similar behavior when I deleted rule 1251 around 01:34. Perhaps it's relevant that rule 1251 is a weekly recording rule? |
I haven't forgotten about this problem. Besides trying to watch as much Olympics as I can, I've been dealing with a mediacl issue that often makes working on the computer painful. Anyway, my fear was that the EIT code was overwriting the artificial, manual programs in the program table. I just checked and I don't see how that can happen. I need to check another code path or two to look for errors. Besides the manual recording rule, what other rules are you careating at the same time? They might be interacting with the manual rule/programs in an unexpteted way. |
We only use manual recordings (single or weekly). The only other rules would be whatever MythTV create automatically for EIT scanning. (We rarely use live TV but I don't think it is relevant to this issue.) Console log from a different branch without your extra logging: For future reference use |
Xubuntu 23.10
Linux htpc-HP 6.5.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Fri Apr 26 11:23:57 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
fixes/33
v33.0+fixes.20230210.026e506-0ubuntu0
backend?
What steps will reproduce the bug?
Set up a manual recording rule in mythfrontend. Rarely, there will be two recordings from that rule.
How often does it reproduce? Is there a required condition?
Rarely. No known requirements.
What is the expected behaviour?
Only one recording is made per manual recording rule.
What do you see instead?
The expected recording with the entered title with " (Manual Record)" appended as the title and description.
A second recording that is identical except the title and description are different. I assume they match the broadcast EIT data for that time. (No " (Manual Record)" in the title and the description is a few sentences.)
Additional information
This has been occurring rarely for many years.
We set our recordings to start 2 minutes early and end 2 minutes late and the duplicate recording always has the correct title and description for the normal recording time.
We have never seen the duplicate recording in mythfrontend -> Manage Recordings -> Upcoming Recordings, but we don't check there very often.
The text was updated successfully, but these errors were encountered: