[mythtv-users] Storage group cover art not updating

Rich West Rich.West at wesmo.com
Fri Oct 17 02:36:11 UTC 2014


On 10/16/2014 10:07 PM, Rich West wrote:
> On 10/5/2014 9:17 PM, Jean-Yves Avenard wrote:
>> On 6 October 2014 11:45, Rich West <Rich.West at wesmo.com> wrote:
>>> I have searched around, but cannot seem to find the answer as to why when I converted over to storage groups for my video cover art that it no longer gets and saves the images.
>>>
>>> Previously, I had everything configured to use an nfs mount.. access to the video storage directory (movies & etc) as well as cover images.  I converted over to using storage groups, and while I have no problems viewing movies & etc, the cover art isn't updating when I scan for changes.
>>>
>>> I followed the how to's and such to make sure that all of the front ends no longer have the paths set, but it is just this one piece that isn't playing nice.  What could I be missing?
>> I don't think that by default scanning for changes will also search for artwork.
>>
>> The existing artwork as stored in the database could contains an old
>> path to the previous location, which isn't valid anymore.
>>
>> What you can do is reset the metadata, and perform a scan again.
>>
>> Additionally, posting the log with --loglevel=debug for when you
>> perform a metadata search on a single video would help.
> Sorry for the delay.. real life got in the way.
>
> >From the frontend:
> I started mythtv and went into videos:
> 2014-10-16 21:46:29.359292 E  MythUIHelper:
> LoadScaleImage(/home/video/Action/folder.png) failed to load image
>
> Odd, because I thought it was documented to pick up folder.(png|jpg|gif) and
> I have folder.jpg in that directory
>
> The log continues with a few "unable to find image files" as I navigate
> about.  Not sure where they are coming from.
> 2014-10-16 21:46:30.376093 E  MythUIHelper:
> LoadScaleImage(101299_coverart.jpg) Unable to find image file
> 2014-10-16 21:46:30.984824 E  MythUIHelper:
> LoadScaleImage(101299_coverart.jpg) Unable to find image file
> 2014-10-16 21:46:31.200764 E  MythUIHelper:
> LoadScaleImage(101299_coverart.jpg) Unable to find image file
> 2014-10-16 21:46:41.189503 E  XMLParseBase: Parent is NULL
> 2014-10-16 21:46:52.833303 E  XMLParseBase: Parent is NULL
> 2014-10-16 21:46:58.427798 I  Database connection created: DBManager5
> 2014-10-16 21:46:58.428475 I  New DB connection, total: 5
> 2014-10-16 21:46:58.454701 I  Connected to database 'mythconverg' at host:
> mythtv1
>
> I selected "Dark Knight Rises" and selected "Retrieve all details":
> 2014-10-16 21:46:58.462434 I  Running Grabber:
> /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 49026
> 2014-10-16 21:47:01.580710 I  Returning Metadata Results: The Dark Knight
> Rises 0 0
> 2014-10-16 21:47:01.580844 I  Closing DB connection named 'DBManager5'
> 2014-10-16 21:47:01.582294 I  Metadata Image Download:
> http://image.tmdb.org/t/p/original/dEYnvnUfXrqvqeRSqvIEtmzhoA8.jpg
> ->/49026_coverart.jpg
> 2014-10-16 21:47:02.410636 I  Metadata Image Download:
> http://image.tmdb.org/t/p/original/gOI8TcAG9kKjIEL307nM0xB4wv5.jpg
> ->/49026_fanart.jpg
>
> It appears to have done *something* but the file never gets downloaded and
> the database hasn't gotten updated:
> MariaDB [mythconverg]> select * from videometadata where filename like
> '%rises%' \G;
> *************************** 1. row ***************************
>         intid: 30006
>         title: The Dark Knight Rises
>      subtitle:
>       tagline: The Legend Ends
>      director: Christopher Nolan
>        studio: Warner Bros. Pictures
>          plot: Following the death of District Attorney Harvey Dent, Batman
> assumes responsibility for Dent's crimes to protect the late attorney's
> reputation and is subsequently hunted by the Gotham City Police Department.
> Eight years later, Batman encounters the mysterious Selina Kyle and the
> villainous Bane, a new terrorist leader who overwhelms Gotham's finest. The
> Dark Knight resurfaces to protect a city that has branded him an enemy.
>        rating: PG-13
>       inetref: 49026
> collectionref: -1
>      homepage: http://www.thedarkknightrises.com/
>          year: 2012
>   releasedate: 2012-07-20
>    userrating: 7.2
>        length: 165
>     playcount: 0
>        season: 0
>       episode: 0
>     showlevel: 1
>      filename: /home/video/Action/The Dark Knight Rises.avi
>          hash: c56416b59d768b2f
>     coverfile:
>       childid: -1
>        browse: 1
>       watched: 0
>     processed: 1
>   playcommand: NULL
>      category: 0
>       trailer:
>          host:
>    screenshot:
>        banner:
>        fanart:
>    insertdate: 2014-06-05 15:10:10
>   contenttype: MOVIE
> 1 row in set (0.02 sec)
>
> I also looked through the global settings to make sure that the coverart
> variables were definitely not set to anything (I've read that can confuse
> mythtv):
> MariaDB [mythconverg]> select * from settings where value like 'mythvideo.%'
> and hostname='mythtvtest';
> | mythvideo.bannerDir               |                   | mythtvtest |
> | mythvideo.fanartDir               |                   | mythtvtest |
> | mythvideo.screenshotDir           |                   | mythtvtest |
> | mythvideo.TrailersDir             |                   | mythtvtest |
>
> I also verified that the storage groups were set up (via the mythtv-setup
> and the database):
> MariaDB [mythconverg]> select * from storagegroup;
> +----+-------------+----------+-------------------------------------+
> | id | groupname   | hostname | dirname                             |
> +----+-------------+----------+-------------------------------------+
> | 14 | Default     | mythtv1  | /video/                             |
> | 25 | Fanart      | mythtv1  | /home/mythtv/MythVideo/Fanart/      |
> | 15 | Default     | mythtv1  | /video1/                            |
> | 21 | Banners     | mythtv1  | /home/mythtv/MythVideo/Banners/     |
> | 22 | Screenshots | mythtv1  | /home/mythtv/MythVideo/Screenshots/ |
> | 27 | Trailers    | mythtv1  | /home/mythtv/MythVideo/Trailers/    |
> | 24 | Coverart    | mythtv1  | /home/mythtv/MythVideo/Posters/     |
> +----+-------------+----------+-------------------------------------+
>
> I ran the backend in debug mode, but I didn't see anything erroring out.  I
> did make sure that mythbackend runs as the 'mythtv' user and that it has
> write access to the entire /home/mythtv tree.  /home/mythtv is accessible
> from "mythtv1", which is my dedicated backend.
>
> I know I could switch back to each of the frontends using NFS to get to the
> shared /home/mythtv directory, but the whole point of going this route was
> to funnel everything through mythtv (the videos work fine).
>
> I'm sure I am missing a simple step somewhere, though, and was hoping
> someone might be able to point me in the right direction.

I also just noticed I had "/home/video" set on the frontend for where the
videos were stored.  When I blanked that out and restarted the frontend, it
couldn't find the videos. So.. it doesn't look like the storage groups are
working for me for videos, coverart, etc.  I definitely think i missed a
step somewhere along the line when migrating from frontend accessible
videos, coverart, etc, and to storage groups managed by the backend.

-Rich


More information about the mythtv-users mailing list