Skip to content
Commits on Jun 24, 2016
  1. @bennettpeter
  2. HTTP Server: Change HOST_NAME_MAX to 1024 for some buildbots

    I missed the 2nd place where this was used in my initial commit.
    Bill Meek committed Jun 24, 2016
  3. HTTP Server: Provide additional CORS support

    This commit adds a new AllowedOriginsList setting that
    stores a comma separated list of Origins. If the setting
    is missing, the list defaults to:
    Access-Control-Allow -Credentials and -Headers were also
    added to the response to support Chromecast.
    A TODO item is closed by adding the hostname to
    the existing list of IP addresses (no change in
    the ports checked.)
    Note that previously, if ResponseTypeFile was found, the
    CORS header wasn't being added. This caused the Chromecast
    feature to fail.
    There is no GUI. Clients have the ability to change the value
    with the Services API. May need to rethink using settings as
    this is a security risk.
    For example, it a valid Origin exists in the request, the
    following will appear in the response:
        Access-Control-Allow-Credentials: true
        Access-Control-Allow-Headers: Content-Type
    If there is no match, an existing critical log will fire:
        Cross-origin request received with origin (
    Missing http://, https:// or a '*' character in list entries will
    be ignored, and the following will be logged:
        Illegal AllowedOriginsList entry '*'. Must start with http[s]:// and not be *
    Bill Meek committed Jun 24, 2016
  4. @dizygotheca

    Hide recordings from passworded recording groups
    notes that "All programs" shows recordings from passworded groups.
    Also fixes:
    - An entered password is not retained; the user is obliged to re-enter it
     every time the passworded group is selected.
    - After exiting WR from the Deleted group, upon re-entry a password is
    wrongly prompted even if Deleted is not password-protected (password cache gets corrupted)
    This also leaves password-protected groups unprotected.
    - When category filters are shown, changing recording groups can result in deleted
    recordings being shown and/or recordings not being shown.
    - If display of Watched and Live recordings is turned off they will not be shown
    in the Deleted group even though they are about to be erased.
    Deleted should show everything that is queued for erasure.
    Once a password has been entered all groups using that password are accessible.
    Their recordings will also appear in "All programs".
    They are re-locked when WR exits.
    The Deleted group still requires a password to prevent access to recordings that have
    been deleted from password-protected groups.
    dizygotheca committed Jun 20, 2016
  5. @dizygotheca

    Clean up timers on Watch Recordings exit

    When exiting Watch Recordings Qt issues a warning:
    Timers cannot be stopped from another thread
    PlaybackBoxHelper event handler must clean up its own timers
    dizygotheca committed Jun 20, 2016
  6. @dizygotheca
  7. @dizygotheca

    Gallery: Don't show folder dates in caption

    Dates shown for sub-folders are creation time, which is unlikely to be informative.
    So hide them from caption of selected item.
    Dates of devices ("Photographs" & local media) are the time of last scan, so are shown.
    dizygotheca committed Jun 24, 2016
Commits on Jun 23, 2016
  1. @peper03

    Allow the backend to shut down if the frontend is in standby mode.

    This handles the scenario of a combined BE/FE waking up for a recording but being prevented from shutting down afterwards because the FE started before the BE.
    peper03 committed Jun 23, 2016
Commits on Jun 19, 2016
  1. @gigem

    Add reccount to the InputInfo class.

    Also fix a couple of issues with commit 1f8c275.
    gigem committed Jun 19, 2016
  2. @gigem

    Tweak the finsl sorting in the scheduler to be slightly more stable.

    Demote sorting by recording end time to after by scheduling ID (aka
    callsign).  The common action of adding an override to extend a
    recording will no longer change the ordering in ViewSceduled.
    gigem committed Jun 19, 2016
Commits on Jun 14, 2016
  1. @dblain

    Change the way webkit support is removed for Qt 5.6.

    Some distros are packaging WebKit with Qt 5.6 so must support them.
    dblain committed Jun 14, 2016
Commits on Jun 12, 2016
  1. @jpoet

    Revert "From 11d3185a118ff0e42e2b8ab3e6499b8d97ad3b07 Mon Sep 17 00:0…

    …0:00 2001"
    This reverts commit 009758c, which I
    accedentally committed along with my own changes.
    jpoet committed Jun 12, 2016
  2. @jpoet

    Revert "From 7bfc97ed65809d0ecd8c7b0394f7fa12e50ea28f Mon Sep 17 00:0…

    …0:00 2001"
    This reverts commit 67f4135, which I
    accedentally committed along with my own changes.
    jpoet committed Jun 12, 2016
  3. @jpoet
  4. @dizygotheca @jpoet

    From 7bfc97ed65809d0ecd8c7b0394f7fa12e50ea28f Mon Sep 17 00:00:00 2001

    Subject: [PATCH 2/2] Watchlist with lastPlayPos
    Watchlist: Refactor & remove debug info
    The watchlist abuses ProgramInfo::recpriority2 to cache scores for display on the Info/ProgDetails screen.
    The score/state is of no interest to the user, who cannot alter it. It is debug information that belongs in the logs and has been removed from the screens.
    Themes should remove WATCH_LIST_SCORE & WATCH_LIST_STATUS widgets from htmls/progdetails*.html. However they are set as empty to prevent breakage for now.
    Refs #12296
    Watchlist: Group by title rather than record rule
    Watchlist groups titles using the record rule id.
    Thus different titles recorded by a one rule are confusingly grouped together.
    And the same title recorded by different rules are shown in different groups.
    Also a pre-requisite for selection by episode number.
    Grouping ignores title case, whitespace and punctuation.
    Ref #12296
    Watchlist: Use season/episode when selecting an episode
    Watchlist always selects the earliest/oldest episode, so the wrong recording is shown when episodes are recorded out of order.
    This patch uses season/episode data to override the oldest selection, where appropriate.
    Refs #12296
    Watchlist: Add theme widget to show watchlist episode count
    A new UI widget "watchtotal" enables the watchlist to show the number of episodes available for each title.
    For example a "recordings" buttonlist specification of:
    <textarea name="title">
      <template>%title%% (|watchtotal| episodes)%% - "|subtitle|"%</template>
    will produce:
    The Simpsons (15 episodes) - "Homer does something stupid"
    This widget is only set when the Watchlist group is selected in the groups list - for other groups it will show the usual:
    The Simpsons - "Homer does something stupid"
    Refs #12296
    Watchlist: Add 'Limited Oldest' strategy
    Adds a new simplified sort strategy "LimitedOldest" that is more stable, intuitive & useful than the current 'Classic' one.
    Titles are ordered by record date (oldest first) so the list is predictable and does not spontaneously shuffle.
    Optionally new titles & quickly-watched titles can be promoted to the top and titles that remain unwatched for a long period can be relegated to the bottom.
    Two new settings "PlaybackWLRecentLimit" & "PlaybackWLOldLimit" are introduced so the user can adjust this behaviour.
    User can choose between this and the 'classic' sort strategy via a new setting "PlaybackWLOrder"
    Fixes #12296
    Watchlist: Place part-watched shows at top
    Watchlist: Update watchlist after metadata edits
    Prevent metadata edits updating the recording list directly.
    They must be processed by a ProgInfo update in order to update watchlist.
    dizygotheca committed with jpoet Jan 21, 2016
  5. @dizygotheca @jpoet

    From 11d3185a118ff0e42e2b8ab3e6499b8d97ad3b07 Mon Sep 17 00:00:00 2001

    Subject: [PATCH 1/2] Use lastPlayPos instead of bookmark
    This is a combination of 11 commits
    Enable 'Play from last play position'
    38443b8 disabled playing recordings from last play position mark.
    This patch re-enables it for recordings.
    Add MConcurrent
    Provides a simple version of QtConcurrent::run() that uses MThreadPool rather
    than QThreadPool. Useful for starting background threads in 1 line.
    Given a class method of:
      void Class::fn(arg1, arg2...)
    you can run it in a different thread using:
      MConcurrent::run("thread name", &Class instance, &Class::fn, arg1, arg2...)
    Refer to QtConcurrent::run for further details
    1. Accepts 0-5 arguments
    2. Only class methods are supported (most typical in Myth)
    3. Only non-const classes & methods are supported (most typical in Myth)
    4. The method must have return type of void (QFuture is not easily ported to
       MThreadPool. Use signals/events instead)
    Add UI progress indicator to Watch Recordings
    Adds theme widget 'progresspercent' to watchrecordings window to show
    percentage of recording that has been watched.
    MythUI: Implement progressbar on buttonlist items
    Allows buttonlists to contain a progressbar.
    Show play position as a progress bar in Watch recordings
    Allows recording list to show part-watched recordings using a progressbar.
    Demo uses Mythcenter-wide theme
    Move automatic bookmark updates to last play position.
    Convert bookmarks to a user aid only. They will never be automatically updated/removed by playback.
    Last play position mark is now used instead.
    Settings "Clear bookmark on playback" & "Action on playback exit"/"Save position and exit" are
    removed (from UI only) as they are now redundant.
    Last play position is never updated within 30 secs of playback start.
    Thereafter it records position on playback exit (as well as the existing periodic 30 sec update).
    At end of recording it is reset.
    Note: 'Automatically Mark watched' is now also actioned by end-of-playback dialog (it wasn't previously)
    It also will not trigger for first 30 secs of playback.
    Default recording playback from last play position
    Playback of recordings now starts from:
    - last play position, if present
    - bookmark, if present (so user can override progstart)
    - program start mark, if present
    - beginning of file
    Menu options allow user to start from last play position, bookmark or 'beginning'
    (prog start/file start) where applicable.
    Add menu options to Clear bookmark and Clear last play position for recordings
    Allow user to easily reset last play position and bookmark.
    Start video playback as per recordings
    Video playback starts from:
    - last played position, if present
    - bookmark, if present
    - file start
    Menu options allow user to explicitly select option and reset last played position & bookmark
    Plays from last played position, then bookmark, then file start
    Add menu options to Play from bookmark & Play from beginning
    Add menu options to Clear Bookmark & Clear last played position
    Preview generator uses last played position
    Previews are now generated from:
    - last played position, if present
    - bookmark, if present,
    - prog start mark, if present
    - existing offset, which us unchanged (it does not use the progstart mark.)
    Add progress bar to Upcoming Recordings.
    Progress of an active recording is shown by a progress bar and
    'progresspercent' theme widget. Both are based on rec start/end and current time.
    dizygotheca committed with jpoet May 6, 2016
Commits on Jun 11, 2016
  1. @gigem
  2. @gigem

    Add reclimit to the InputInfo class.

    Note that this bumps the MythTV protocol to version 89.
    gigem committed Jun 11, 2016
Commits on Jun 9, 2016
  1. @gigem

    Add maximum recording limit to the capturecard table.

    The main reason for this is to put it in a single, easily accessible
    place.  Future changes will add support for using the special value of
    0 to indicate unlimited simultaneous recordings.
    In addition, put this setting in a common and consistent location for
    all tuner types to which it applies.
    gigem committed Jun 9, 2016
Commits on Jun 8, 2016
  1. @garybuhrmaster @stuarta

    Fixes #12764 - compilation of abs function with latest gcc/libstdc++

    Signed-off-by: Stuart Auchterlonie <>
    garybuhrmaster committed with stuarta Jun 8, 2016
Commits on Jun 6, 2016
  1. @mitchcapper
Commits on Jun 3, 2016
  1. @stuarta

    Revert "Refs #12784. Properly url encode channel icon search requests…

    …, part 2"
    This reverts commit 2bc4804.
    This didn't actually do what it was meant to do
    stuarta committed Jun 3, 2016
Commits on Jun 2, 2016
  1. @stuarta
Commits on May 29, 2016
  1. @dekarl

    test 1<<31 vs 1u<<31 in eit fixup flags

    Refs #12436
    dekarl committed May 29, 2016
  2. @dekarl

    extend 64bit eitfixup unit test

    dekarl committed May 29, 2016
Commits on May 28, 2016
  1. @dekarl

    test eitfixup enum

    dekarl committed May 28, 2016
  2. @dekarl

    add type to FixUpType enum

    this let gcc hint at a signed/unsigned issue (1 << 31 vs 1u << 31)
    dekarl committed May 28, 2016
  3. @dekarl

    remove unused type

    QMap<uint,uint> QMap_uint_t;
    dekarl committed May 28, 2016
Commits on May 27, 2016
  1. @dblain
  2. @dblain
  3. @dblain
  4. @dblain
  5. @dblain
  6. @dblain
Something went wrong with that request. Please try again.