Opened 20 years ago
Closed 20 years ago
#1263 closed defect (fixed)
Update and improve myth.rebuilddatabase.pl
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | minor | Milestone: | 0.20 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
I tried to use myth.rebuilddatabase.pl for the first time today and noticed that it's stuck on recordings ending in .nuv and also that they should conform to the 0.18 format for filename (channel_starttime_endtime.nuv) so I thought I'd fix that up. Then I thought up a few features that I'd like to see so I started hacking...
The idea around --file and --answer are that you could write a (possibly spreadsheet-driven) script that would import tons of recordings without intervention. Like perhaps if you were importing all the episodes from one of those sitcom dvds...
Although this looks like a huge change (the entire body of the script has been rewritten) it's actually pretty much the same as before. I mostly reduced the two paths of execution (nuv vs. non-nuv) into one and added a helper routine for user queries.
- George
Attachments (3)
Change History (6)
by , 20 years ago
Attachment: | myth.rebuilddatabase.pl added |
---|
by , 20 years ago
Attachment: | myth.rebuilddatabase.pl.gz added |
---|
just noticed that commflag takes different arguments depending on the video file's origin
comment:1 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 20 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Sorry to reopen this.
Nathan Stratton wrote me off list to point out that matching recordings by filename *and* hostname works badly when you have multiple backends -- everything not recorded on the BE you're running on looks like an unknown recording and triggers a "Do you wish to import" prompt. I removed hostname from the matching query.
While I was in there I noticed that exec is being used to invoke mythcommflag. Obviously this isn't healthy inside a loop. Fixed.
Also, open up the default extensions to include the usual suspects.
Sundry other tweaks.
the new script