Release LiveTV AD Zapper
#1
Video 
Hey guys.

I'll want to present you my first kodi addon.

Description:
I have missed a feature from my rather old DBOX2 & Dreambox DM800, the "AD Zapper" (German: Werbezapper)
It's a simple "timer" that switches back to the live tv channel where the timer was started.
Mapped to a button, it's a nice way to "skip" live tv commercials/advertisment blocks with the press of a button.
You will never forget to switch back to the channel you have watched before a commercial break started!

Screenshot:
Image

Download: available since 06.03.2018 on official kodi addon repository

Setup:
  1. Download/Install from official repo directly in kodi
  2. Setup your prefered timer settings under Add-ons - Addon Browser - My add-ons - Program add-ons - LiveTV Ad-Zapper - configure
  3. Setup a key to run script.adzapper (open rezap timer dialog):

    There are two ways of setting up an key to run script.adzapper.
    The first is, create an keymap_adzapper.xml file in your "userdata/keymap" folder with the following in it:
    Quote:<keymap>
      <global>
        <keyboard>
          <key id="61511">SetProperty(ADZapperPrompt, true, 10000)</key>
        </keyboard>
      </global>
      <VideoOSD>
        <keyboard>
          <key id="61511">SetProperty(ADZapperPrompt, true, 10000)</key>
        </keyboard>
      </VideoOSD>
      <FullscreenLiveTV>
        <keyboard>
          <key id="61511">SetProperty(ADZapperPrompt, true, 10000)</key>
        </keyboard>
      </FullscreenLiveTV>
    </keymap>
    Now adjust it to your needs like described here: https://kodi.wiki/view/keymap
    The cmd to run script.adzapper is: "SetProperty(ADZapperPrompt, true, 10000)" (without the quotes)
    With the example above, ad zapper dialog will be shown or rezap time will be extended, if keyboard key "g" is pressed.
    I have set up a custom command in Yatse (my main remote app) to send the "g" key.
    This works reliable.

    The Second way is configure it with the help of the addon "keymap editor":
    Download & install it from official repo. Run it and setup the following:

       * Edit -> Global -> Add-ons -> LiveTV Ad-Zapper -> press the key you want
       * Edit -> Fullscreen Live TV -> Add-ons -> LiveTV Ad-Zapper -> press the key you want

    To setup the same key for VideoOSD, close kodi and manually edit the gen.xml, just add the following with your correct found key id:
    Quote:  <VideoOSD>
        <keyboard>
          <key id="61511">SetProperty(ADZapperPrompt, true, 10000)</key>
        </keyboard>
      </VideoOSD>

  4. You are ready to go, Start Live TV, press your configured key during LiveTV and enjoy
The addon just shows the timer dialog if you have LiveTV running!!!

Credit's goes to 'robweb' for his script.sleep: https://github.com/robwebset/script.sleep
script.adzapper is using parts of it.

Have fun
pOpY
Reply
#2
Work like a charm!

thank you very much
Reply
#3
Nice that it works for you :-)
I am also using it every day.

pOpY
Reply
#4
@popy 

are there any chances to update this addon to kodi 19 ?


===================================
there is another one that I really like 'service.kn.switchtimer'
I need to look for some descriptions on the Kodi website
and ask the author for an update.
Reply
#5
Currently I don't have an kodi 19 nightly installation. Because the WAF is currently high on v18.7 laia on both of my android tvs.

When I am switching to v19 matrix, sure there will be an update.

pOpY
Reply
#6
PVR reminders are built in in Kodi 19 - no need for the KN Switchtimer add-on anymore. The built in reminders have even more functionality, like reminder rules.
Reply
#7
@ksooo 
thanks, I thought it didn't work

@popy 

I'm using libreelec K-19 on another device, I thought it would not be problematic.
I will wait for the official transition to K-19
Reply
#8
(2020-06-09, 09:22)Atamans Wrote: @ksooo 
thanks, I thought it didn't work

@popy 

I'm using libreelec K-19 on another device, I thought it would not be problematic.
I will wait for the official transition to K-19
@ksooo i have googled and looked at the reminders feature. Is it possible to replicate the behaviour of my addon?
Press a button -> start timer for given timespan (ex. 5minutes, also possible to change the timer). Switch to other channel.
Reminder poping up at the set time.

thx
Reply
#9
I have updated the plugin to run in python 3 under kodi matrix.
Just tested shortly on my side on windows and working as expected.

Here you can find the commit: https://github.com/popy2k14/repo-scripts...t.adzapper
And the addon for testing as zip: https://www98.zippyshare.com/v/5LBvbC3p/file.html

@Atamans Can you please test it on your side under kodi matrix v19?

If ok, i will make a PR to th official kodi repo.

thx
Reply
#10
Yes buddy, I'm testing right now and it seems to work fine, I set for example 1, 3 and 6 minutes and each time switched the channel correctly 

also script-adzapper-dialog.xml works fine when added to the 1080i folder in the skin


Image


Thanks for the update, very useful addon
Reply
#11
(2021-02-20, 20:10)Atamans Wrote: Yes buddy, I'm testing right now and it seems to work fine, I set for example 1, 3 and 6 minutes and each time switched the channel correctly 

also script-adzapper-dialog.xml works fine when added to the 1080i folder in the skin


Image


Thanks for the update, very useful addon
thx for testing. Here is the PR: https://github.com/xbmc/repo-scripts/pull/1856
Reply
#12
Merged to repo, should be available officially soon.
Reply
#13
Hi. @popy 

I don't see this in the settings also tried with the keymaps editor installed from the official kodi repo

:

<category label="32011">
       <setting label="32012" type="lsep" subsetting="true"/>
</category>

I also tried adding a translation and it works everywhere except one line

:
<setting id="intervalLength" label="32002" type="slider" default="1" range="1,1,5" option="int" />

Lang - pl_PL

Expires 1 week from now.
resource.language.pl_pl.zip
Reply
#14
Which editor you are using?
Is it utf8 compatible?
Reply
#15
Notepad++ ,
yes utf 8 compatible

also tried the options
replace tabs with spaces
but it doesn't help
Reply

Logout Mark Read Team Forum Stats Members Help
LiveTV AD Zapper2