Mailing List Archive

Mythutil --scanvideos : how does it determine if an update of a particular record is needed?
I notice in the mythutil code that there are 3 types of videos scanned that would be updated; .. added, moved, or deleted.

I can understand deleted as having a record in videometadata(VMD), but no file to be processed and so would remove the VMD record.

For a moved record I imagine that the file is in a different location in the directory structure, and so would update VMD with the new directory.

Finally the addition of records.. Does mythutil scanvideos only consider a video as new if there is a new file not in the VMD table?

Or does it also consider it a new file if the video is in VMD , but is missing a lot of information?

If the video is only considered new if not in VMD, is there a way to only run a videometadata lookup for that particular video from a shell script to update VMD with information?

Regards!
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Mythutil --scanvideos : how does it determine if an update of a particular record is needed? [ In reply to ]
On 4/10/23 14:40, Jay Harbeston wrote:
> I notice in the mythutil code that there are 3 types of videos scanned that would be updated; .. added, moved, or deleted.
>
> I can understand deleted as having a record in videometadata(VMD), but no file to be processed and so would remove the VMD record.
>
> For a moved record I imagine that the file is in a different location in the directory structure, and so would update VMD with the new directory.
>
> Finally the addition of records.. Does mythutil scanvideos only consider a video as new if there is a new file not in the VMD table?
>
> Or does it also consider it a new file if the video is in VMD , but is missing a lot of information?
>
> If the video is only considered new if not in VMD, is there a way to only run a videometadata lookup for that particular video from a shell script to update VMD with information?
>
> Regards!
> _______________________________________________

It only looks up information if the file is new, based on contents of
the file not the name.

What you can do is move the video to a new location outside of the
videos storage group, then run mythutil --scanvideos. This removes it
from the database. Then move it back into the videos storage group,
rename if needed, and run mythutil --scanvideos again. This adds it back
and looks up metadata based on the (possibly new) file name and
directory name.

Peter

_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org