[mythtv-users] Resurrecting mythadder.py to repopulate videometadata when plugging in a usb drive with media

Jay Harbeston jharbestonus at gmail.com
Tue Jul 19 18:53:41 UTC 2022



> On Jul 19, 2022, at 2:44 PM, Roland Ernst <rcrernst at gmail.com> wrote:
> 
> 
> On Tue, Jul 19, 2022 at 7:21 PM Jay Harbeston <jharbestonus at gmail.com <mailto:jharbestonus at gmail.com>> wrote:
> I remember there being issues long ago with udisks2 vs. udisks and I don’t recall where the problem was..
> 
> Questions regarding using external usb drives with media:
> 
> 1. Was the problem with udisks2 within mythtv code itself or in the mythadder.py routine?  While looking at the code in mythaddr.py,  I don’t see any reference to udisks  in it. It does add a rule for udev. 
> 
> 2. Also, I see that it uses the full path of the video files into the filename field of video metadata including the leading ‘/‘ .  If a file has the full path including the leading ‘/‘ does it use the full path when playing the video file?
> 
> 3. Should the external drive be attached to the backend, or can it be attached to the frontend only machine?
> 
> 
> I also understand that I will need to add new fields to it that have been added since it was created. As well as the handling of them.
> 
> Regards, and thanks in advance!
> 
> Mythadder was published 2010 (MythTV 0.22)  and last known good in 2012 (MythTV 0.24).
> See https://www.mythtv.org/wiki/Mythadder.py <https://www.mythtv.org/wiki/Mythadder.py>
> 
> Maybe, it is a better way to describe what you want to do and what you want to achieve?
> There might be other solutions available by now.  

What I would like is to ‘archive’ video metadata after I have moved video files to an external drive. And then when I feel the need, I can reattach the drive, and reload metadata for the media that is currently stored offline on the drive. 

My understanding is that when you do a scan of the video directories, that the metadata for missing files(archived to external disk) is wiped out of the video metadata table(has been so in the past.

Mythadder was very useful in keeping offline video metadata available in a table indexed by the drives UUID  that was then accessed when the given drive was plugged in again in the future.

The key is ‘remembering’ the video metadata for video that was moved off to external access. And then being able to reload that data when plugging the drive back in in the future.

Regards!



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20220719/4d5836f8/attachment.htm>


More information about the mythtv-users mailing list