Ticket #9939 (closed Patch - Feature: Fixed)
Opened 22 months ago
Last modified 21 months ago
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:
- 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).
- 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
Change History
Changed 22 months ago by Doug Haber <doug@…>
- Attachment meta-bindings.diff added
comment:1 Changed 22 months 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 22 months ago by wagnerrp
- Owner set to kormoc
- Status changed from new to assigned
- Component changed from MythTV - General to Plugin - MythWeb
comment:3 Changed 22 months 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:
- 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
- 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
- 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.
- 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.
- Fixed a typo
Thanks!
Doug
Changed 22 months ago by Doug Haber <doug@…>
- Attachment meta-web3.diff added
Minor formatting changes
Changed 22 months ago by Doug Haber <doug@…>
- Attachment meta-web4.diff added
add home updates when metadata is looked up, namespace detail js functions
Changed 22 months ago by Doug Haber <doug@…>
- Attachment meta-web5.diff added
A little more cleanup of how the home page links are created/updated
comment:5 Changed 21 months 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 21 months ago by robertm
- Status changed from assigned to closed
- Resolution set to Fixed

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