Author Topic: broadcast message  (Read 9966 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: broadcast message
« Reply #15 on: August 30, 2010, 06:52:01 PM »
Quote
Also, which lines would i need to add to the python script so the results with a rating lower then a set value, say three stars, wouldn't be added to the results?

open up the python script.

and add

Code: [Select]
searchfor = searchfor+ ' and Rating>"60"'
just before the line
Code: [Select]
searchstring = searchterm+' like '+searchfor+' order by random() limit '+maxresults

edit: actually, I'm not 100% sure about this because >"60" doesn't really make sense... I'd have to experiment a bit.
« Last Edit: August 30, 2010, 06:54:09 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: broadcast message
« Reply #16 on: August 30, 2010, 08:11:46 PM »
here's the volume
Code: [Select]
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1462">
    <Macro Name="set volume to payload" Expanded="True">
        <Event Name="Broadcast.Set Volume" />
        <Event Name="Set Volume" />
        <Action>
            EventGhost.PythonScript(u'payload = eg.event.payload\neg.plugins.System.SetMasterVolume(int(payload), 0)\n\n\n   ')
        </Action>
    </Macro>
</EventGhost>