Skip to content

Commit 3756482

Browse files
committed
Update plugin name
1 parent 113a912 commit 3756482

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ https://tools.bcc.media/cantemo/?id=VX-2
1111
## Changing the target URL
1212

1313
Edit the `src` of the iframe in
14-
[`templates/manual_rule_button_plugin.html`](templates/manual_rule_button_plugin.html).
14+
[`templates/iframe_plugin.html`](templates/iframe_plugin.html).
1515
`{{ item_id }}` is the Cantemo item id (e.g. `VX-2`) supplied by the plugin
1616
context.
1717

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -o pipefail
33

44
PORTAL_ROOT="/opt/cantemo/portal"
5-
PLUGIN_NAME="ManualRuleButtonPlugin"
5+
PLUGIN_NAME="IFramePlugin"
66

77
if [ $(id -u) -ne 0 ]
88
then echo "Please run as root"

plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
import logging
55
log = logging.getLogger(__name__)
66

7-
class ManualRuleButtonPlugin(Plugin):
7+
class IFramePlugin(Plugin):
88
implements(IPluginBlock)
99

1010
def __init__(self):
1111
self.name = "MediaViewItemTechMetadataTop"
1212
self.plugin_guid = "063f4c81-c62b-4362-aec2-16ca5f26215f"
13-
log.debug("Init ManualRuleButtonPlugin")
13+
log.debug("Init IFramePlugin")
1414

1515
def return_string(self, tagname, *args):
1616
context = args[1]
1717
item_id = context['item_id']
1818
return {
1919
'guid': self.plugin_guid,
20-
'template': 'manual_rule_button_plugin.html',
20+
'template': 'iframe_plugin.html',
2121
'context': {
2222
'item_id': item_id,
2323
}
2424
}
2525

26-
ManualRuleButtonPlugin()
26+
IFramePlugin()

0 commit comments

Comments
 (0)