[mythtv-commits] Ticket #10500: mythutil --scanvideos does not update database
MythTV
noreply at mythtv.org
Fri Jan 10 16:25:19 UTC 2014
#10500: mythutil --scanvideos does not update database
------------------------------------+-----------------------------
Reporter: yiannividalis@… | Owner: wagnerrp
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.28
Component: MythTV - Video Library | Version: Master Head
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
------------------------------------+-----------------------------
Comment (by yiannividalis@…):
I ran some more tests to ascertain the exact cirumstances of the error and
I came across something I think is strange.
When mythutil --scanvideos is ran on ANY backend, the hash each added
video takes is "QUERY_FILE_HASH", and not some actual hash. That's why
only the last video is inserted in the DB and the description is of the
first video.
If I run mythutil for a second time without removing the videos, the MB
log will complain:
{{{
Jan 10 18:07:32 storage mythbackend[23355]: E VideoScanner
mythcorecontext.cpp:327 (ConnectToMasterServer) ERROR: Master backend
tried to connect back to itself!
Jan 10 18:07:32 storage mythbackend[23355]: E VideoScanner
videoscan.cpp:326 (updateDB) Hash QUERY_FILE_HASH already exists in the
database, updating record 504654 with new filename ÎÏίλλεÏ/Aliens Vs
Predator - Requiem.avi
Jan 10 18:07:32 storage mythbackend[23355]: E VideoScanner
mythcorecontext.cpp:327 (ConnectToMasterServer) ERROR: Master backend
tried to connect back to itself!
Jan 10 18:07:32 storage mythbackend[23355]: E VideoScanner
videoscan.cpp:326 (updateDB) Hash QUERY_FILE_HASH already exists in the
database, updating record 504654 with new filename ÎÏίλλεÏ/Pan's
Labyrinth.avi
}}}
and the video played will be a different one. Usually the last two
alternate.
The "QUERY_FILE_HASH" is not present in the DB if I scan for changes from
either frontend.
{{{
MythTV Version : v0.28-pre-677-g864bbe0
MythTV Branch : master
Network Protocol : 79
Library API : 0.28.20140104-1
QT Version : 4.8.1
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_backend
using_bindings_perl using_bindings_python using_bindings_php using_dvb
using_frontend using_ceton using_hdpvr using_ivtv using_libcrypto
using_libfftw3 using_libudf using_lirc using_mheg using_opengl
using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_taglib
using_v4l2 using_x11 using_xrandr using_profiletype using_bindings_perl
using_bindings_python using_bindings_php using_mythtranscode using_opengl
using_vdpau using_ffmpeg_threads using_mheg using_libass using_libudf
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10500#comment:7>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list