[mythtv-firehose] mythtv branch master updated by pbennett. v30-Pre-53-g2d1607f

Git Repo Owner noreply at mythtv.org
Mon Sep 18 15:56:04 UTC 2017


The branch, master has been updated on the
mythtv repository by gitolite user pbennett.
       via  2d1607f278c8cb18314e60a0ebc9c80b77950ff1 (commit)
       via  676320dbeadfa9015cfd4bb6d9c6c3582c1e696f (commit)
       via  44fd8a0e974121068f35fe9cf87634c97b43102c (commit)
       via  8ff43c83c20f9eb64678e44e96ed66f139ea9c4b (commit)
       via  64232e29781b10619232d7da1bfc81cbabdc3781 (commit)
       via  0ca5f7b57448d87bb3c7e522f5eedb8ba82eb759 (commit)
      from  b5a5e80f140d82c02e438d7263506db128930d07 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2d1607f278c8cb18314e60a0ebc9c80b77950ff1
Author:    David Hampton <mythtv at love2code.net> at Mon, 18 Sep 2017 11:52:56 -0400
Committer: Peter Bennett <pbennett at mythtv.org> at Mon, 18 Sep 2017 11:52:56 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=2d1607f278c8cb18314e60a0ebc9c80b77950ff1

Fixes #12274 - Provide cleanup for cache in .mythtv directory
Rearrange the placement of cached files and implement aging.

Merge remote-tracking branch 'linuxdude42/devel/dh/cacheing'

Signed-off-by: Peter Bennett <pbennett at mythtv.org>



commit 676320dbeadfa9015cfd4bb6d9c6c3582c1e696f
Author:    David Hampton <mythtv at love2code.net> at Wed, 30 Aug 2017 16:27:00 -0400
Committer: David Hampton <mythtv at love2code.net> at Thu, 31 Aug 2017 19:35:45 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=676320dbeadfa9015cfd4bb6d9c6c3582c1e696f

Make sure to destroy the singleton MythUIHelper object at exit.
Destroying this object after the main application loop exits will
cause the cache expiration to take place.



commit 44fd8a0e974121068f35fe9cf87634c97b43102c
Author:    David Hampton <mythtv at love2code.net> at Wed, 30 Aug 2017 16:14:07 -0400
Committer: David Hampton <mythtv at love2code.net> at Thu, 31 Aug 2017 19:35:45 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=44fd8a0e974121068f35fe9cf87634c97b43102c

Cache non-theme elements separately and expire them after a week.
This change diverts all non-theme cache files into the common
remotecache directory.  It also implements a mechanism for purging old
cache files at startup and showdown.



commit 8ff43c83c20f9eb64678e44e96ed66f139ea9c4b
Author:    David Hampton <mythtv at love2code.net> at Wed, 30 Aug 2017 08:41:04 -0400
Committer: David Hampton <mythtv at love2code.net> at Thu, 31 Aug 2017 19:35:45 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=8ff43c83c20f9eb64678e44e96ed66f139ea9c4b

Force existance of theme directories.
Existence of the base theme directory can be guaranteed once when then
mythuihelper object is created.  Existence of the per-theme directory
can be done in the GetThemeCacheDir function by tracking changes to
the computed directory string.  This then becomes a string comparison
instead of hitting the disk each time.



commit 64232e29781b10619232d7da1bfc81cbabdc3781
Author:    David Hampton <mythtv at love2code.net> at Wed, 30 Aug 2017 00:01:52 -0400
Committer: David Hampton <mythtv at love2code.net> at Thu, 31 Aug 2017 19:35:45 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=64232e29781b10619232d7da1bfc81cbabdc3781

Compute a couple of cache directory names at startup.
Add in functions to create/retrieve the base cache directory, the base
theme cache directory, and the cache for remote files.



commit 0ca5f7b57448d87bb3c7e522f5eedb8ba82eb759
Author:    David Hampton <mythtv at love2code.net> at Tue, 29 Aug 2017 22:32:04 -0400
Committer: David Hampton <mythtv at love2code.net> at Thu, 31 Aug 2017 19:35:45 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=0ca5f7b57448d87bb3c7e522f5eedb8ba82eb759

Move the themecache directory to a consistent location.
The cache for downloaded themes currently gets created in
<confdir>/cache/themecache/<themename>/themechooser, where themename
is the theme that you were using when to went into the theme chooser.
This means that there are likely multiple copies of this data on disk.
Move the cache to <confdir>/cache/themechooser so there is only ever
one copy present.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythbase/mythdirs.cpp            |   55 ++++++++++--
 mythtv/libs/libmythbase/mythdirs.h              |    4 +
 mythtv/libs/libmythtv/previewgeneratorqueue.cpp |    4 +-
 mythtv/libs/libmythui/mythuihelper.cpp          |  112 +++++++++++++++++------
 mythtv/libs/libmythui/mythuihelper.h            |    2 +
 mythtv/programs/mythfrontend/main.cpp           |    1 +
 mythtv/programs/mythfrontend/themechooser.cpp   |    8 +-
 7 files changed, 144 insertions(+), 42 deletions(-)

-- 



More information about the mythtv-firehose mailing list