[mythtv-users] MythArchive native mode 0.26-fixes

HP-mini blm-ubunet at slingshot.co.nz
Sat Jul 27 22:48:31 UTC 2013


On Sat, 2013-07-27 at 23:26 +0100, John Pilkington wrote:
> I would like to transfer a few recordings from one 0.26-fixes box to 
> another.  In the past I could do this with MythArchive, although bitrot 
> has been progressing.  In 0.26 the creation process has failed, ISTR, 
> with multi-word titles, but I have just tried  a single-word title that 
> created the expected files.  Now, on attempting import, I get another 
> classic helpful failure message:
> 
>   CoreContext main.cpp:155 (copyFile) - Failed while running mythutil 
> --copyfile --infile /home/John/syncin/Horizon/1002_20130626195600.mpg 
> --outfile myth://Default@192.168.1.4:6543/1002_20130626195600.mpg. 
> Result: 128
> 
> Perhaps someone could interpret and suggest a course of action.
> 
> TIA
> 
> John P


Root cause could be..the command line parsing of the program "mythutil"
changed sometime in 0.26 release..
The command line parsing now requires <space> to be escaped or wrapped
in quotes, previously the cmd options were delimited by --option_keyword
& not messed up by spaces.

I had to modify private scripts that utilize "mythutil" to allow passing
start-time info, part of that was <space> character(s).

Non-compiling workarounds:
- you can copy the failed cmd from log file & run it (mythutil) from a
terminal with quotes or escapes..
- could make a wrapper "fake mythutil" script that just adds the quotes
(for --outfile) & then calls "mythutil.real"

Attached a possible patch to the multi-word titles problem (that works
for me). The patch is from couple months ago..

Your import problem appears to be a permissions problem writing to 
target ??

There was a mytharchive bug related to storage groups. 

There was a mytharchive bug where it was messing up the seektable
output. This was caused by using the wrong DB fields.
http://www.gossamer-threads.com/lists/mythtv/commits/541033?search_string=mytharchive;#541033

B.

-------------- next part --------------
diff --git a/mythplugins/mytharchive/mytharchivehelper/main.cpp b/mythplugins/mytharchive/mytharchivehelper/main.cpp
index cff672f..a8127d0 100644
--- a/mythplugins/mytharchive/mytharchivehelper/main.cpp
+++ b/mythplugins/mytharchive/mytharchivehelper/main.cpp
@@ -146,7 +146,7 @@ NativeArchive::~NativeArchive(void)
 
 bool NativeArchive::copyFile(const QString &source, const QString &destination)
 {
-    QString command = QString("mythutil --copyfile --infile %1 --outfile %2")
+    QString command = QString("mythutil --copyfile --infile %1 --outfile \"%2\"")
                               .arg(source).arg(destination);
     uint res = myth_system(command);
     if (res != GENERIC_EXIT_OK)



More information about the mythtv-users mailing list