Opened 14 years ago

Closed 14 years ago

#9939 closed Patch - Feature (Fixed)

Patch: Add metadata lookup to MythWeb

Reported by: Doug Haber <doug@…> Owned by: robertm
Priority: minor Milestone: unknown
Component: Plugin - MythWeb Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This patch adds metadata lookups to MythWeb similar to how they function in the front end. The new features are:

  1. Metadata Lookup Button on Recording Schedule screen

The recording schedule screen now has a "Look up Metdata" button next to the inetref field under advanced. If you click this button a call is made to the backend to lookup metdata for whatever data is available on the screen (title, subtitle, inetref, episode, season). If no results are found a dialog is displayed. If one result is found the inetref, season and episode fields are updated. If multiple results are found a dialog is displayed that shows the various shows a user can choose. When the user selects one, the inetref, season and episode are updated. In addition if a "home page" field is found then a link is added under the "More" field with a link to the metdata home page (e.g. the season and episode of a TV show).

  1. Recording Detail Screen

After the user hits the Recording Detail screen an ajax call is made to the back end to see if there is a metadata home page for this recording. If so a link is added after the inetref field

This patch includes a minor change to the MythBackend? PHP bindings (syntactic sugar for making JSON calls a little easier) and the bulk of the changes to mythweb. It does not include the translation changes for mythweb.

Thanks!
Doug

Attachments (6)

meta-bindings.diff (1.5 KB) - added by Doug Haber <doug@…> 14 years ago.
Minor changes to php bindings for getting JSON data from backend calls
meta-web.diff (32.0 KB) - added by Doug Haber <doug@…> 14 years ago.
The bulk of the patch
meta-web2.diff (34.4 KB) - added by Doug Haber <doug@…> 14 years ago.
meta-web3.diff (34.5 KB) - added by Doug Haber <doug@…> 14 years ago.
Minor formatting changes
meta-web4.diff (36.3 KB) - added by Doug Haber <doug@…> 14 years ago.
add home updates when metadata is looked up, namespace detail js functions
meta-web5.diff (36.8 KB) - added by Doug Haber <doug@…> 14 years ago.
A little more cleanup of how the home page links are created/updated

Download all attachments as: .zip

Change History (12)

Changed 14 years ago by Doug Haber <doug@…>

Attachment: meta-bindings.diff added

Minor changes to php bindings for getting JSON data from backend calls

Changed 14 years ago by Doug Haber <doug@…>

Attachment: meta-web.diff added

The bulk of the patch

comment:1 Changed 14 years ago by Doug Haber <doug@…>

FYI: This patch includes dialog.js and dialog.css from http://roland.devarea.nl/work/dialog/ (MIT license) which it uses to display the dialog boxes.

comment:2 Changed 14 years ago by Raymond Wagner

Component: MythTV - GeneralPlugin - MythWeb
Owner: set to Rob Smith
Status: newassigned

comment:3 Changed 14 years ago by Doug Haber <doug@…>

Attached is an updated patch for the mythweb portion based on suggestions from iamlindoro on IRC. It contains the previous patch plus:

  1. Guess Item from TMSRef

If multiple results are returned but we have a TMSRef then try to use that to narrow down the choices to one. Works on examples like "The Office" on Schedules Direct

  1. Add Data and Reformat Multiple Item List

Added Year and Description as well as changed the formatting to be a little more compressed on the Multiple Item List

  1. Images when using HTTP and ttvdb

ttvdb.com blocks linked images so if you were using HTTP (which includes a referrer header) then the images would show up as broken links. If an image comes from ttvdb.com and you're using HTTP we now proxy the request through the backend to avoid any hot linking issues.

  1. Style home page button as a command

The "Metadata Home Page" link is now styled as a command button to make it more obvious that you can click it.

  1. Fixed a typo

Thanks!

Doug

Changed 14 years ago by Doug Haber <doug@…>

Attachment: meta-web2.diff added

Changed 14 years ago by Doug Haber <doug@…>

Attachment: meta-web3.diff added

Minor formatting changes

Changed 14 years ago by Doug Haber <doug@…>

Attachment: meta-web4.diff added

add home updates when metadata is looked up, namespace detail js functions

Changed 14 years ago by Doug Haber <doug@…>

Attachment: meta-web5.diff added

A little more cleanup of how the home page links are created/updated

comment:4 Changed 14 years ago by robertm

Owner: changed from Rob Smith to robertm

comment:5 Changed 14 years ago by Github

Minor PHP bindings updates needed for Mythweb metadata lookup.

Refs #9939 with a patch from Doug Haber.

Branch: master Changeset: 2631935f56837a870840b2e4066bc8ac0beaf6e5

comment:6 Changed 14 years ago by robertm

Resolution: Fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.