Skip to content

Commit 1ca76bb

Browse files
author
Robert McNamara
committed
MythWeb: Update MythWeb metadata lookup to support generic TV.
Can now successfully look up "CBS Evening News," etc., see last commit.
1 parent 77eaf22 commit 1ca76bb

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

modules/tv/lookup_metadata.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
'Inetref' => $_REQUEST['inetref'],
2020
'Season' => $_REQUEST['season'],
2121
'Episode' => $_REQUEST['episode'],
22-
'GrabberType' => $_REQUEST['grabbertype']);
22+
'GrabberType' => $_REQUEST['grabbertype'],
23+
'AllowGeneric' => $_REQUEST['allowgeneric']);
2324

2425
echo MythBackend::find()->httpRequestAsJson($url, $args);

modules/tv/tmpl/default/_advanced_options.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ function lookupMetadata(success, failure) {
3434
new Ajax.Request('<?php echo root_url ?>tv/lookup_metadata',
3535
{
3636
parameters: {
37-
'title' : "<?php echo $schedule->title ?>",
38-
'subtitle' : "<?php echo $schedule->subtitle ?>",
39-
'inetref' : $("inetref").value,
40-
'season' : $("season").value,
41-
'episode' : $("episode").value
37+
'title' : "<?php echo $schedule->title ?>",
38+
'subtitle' : "<?php echo $schedule->subtitle ?>",
39+
'inetref' : $("inetref").value,
40+
'season' : $("season").value,
41+
'episode' : $("episode").value,
42+
'allowgeneric' : "true"
4243
},
4344
asynchronous: true,
4445
method: 'get',

modules/tv/tmpl/default/detail.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ function detailLookupMetadata() {
106106
new Ajax.Request('<?php echo root_url ?>tv/lookup_metadata',
107107
{
108108
parameters: {
109-
'title' : "<?php echo $schedule->title ?>",
110-
'subtitle' : "<?php echo $schedule->subtitle ?>",
111-
'inetref' : "<?php echo ($program ? $program->inetref : $schedule->inetref) ?>",
112-
'season' : "<?php echo ($program ? $program->season : $schedule->season) ?>",
113-
'episode' : "<?php echo ($program ? $program->episode : $schedule->episode) ?>"
109+
'title' : "<?php echo $schedule->title ?>",
110+
'subtitle' : "<?php echo $schedule->subtitle ?>",
111+
'inetref' : "<?php echo ($program ? $program->inetref : $schedule->inetref) ?>",
112+
'season' : "<?php echo ($program ? $program->season : $schedule->season) ?>",
113+
'episode' : "<?php echo ($program ? $program->episode : $schedule->episode) ?>",
114+
'allowgeneric' : "true"
114115
},
115116
asynchronous: true,
116117
method: 'get',

0 commit comments

Comments
 (0)