Kodi Community Forum
Release LiveTV AD Zapper - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Release LiveTV AD Zapper (/showthread.php?tid=329102)

Pages: 1 2


LiveTV AD Zapper - popy - 2018-03-05

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


RE: LiveTV AD Zapper - Atamans - 2020-06-07

Work like a charm!

thank you very much


LiveTV AD Zapper - popy - 2020-06-08

Nice that it works for you :-)
I am also using it every day.

pOpY


RE: LiveTV AD Zapper - Atamans - 2020-06-08

@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.


LiveTV AD Zapper - popy - 2020-06-08

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


LiveTV AD Zapper - ksooo - 2020-06-08

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.


RE: LiveTV AD Zapper - Atamans - 2020-06-09

@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


RE: LiveTV AD Zapper - popy - 2021-02-20

(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


RE: LiveTV AD Zapper - popy - 2021-02-20

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/tree/matrix/script.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


RE: LiveTV AD Zapper - Atamans - 2021-02-20

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


RE: LiveTV AD Zapper - popy - 2021-02-20

(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


RE: LiveTV AD Zapper - popy - 2021-02-21

Merged to repo, should be available officially soon.


RE: LiveTV AD Zapper - Atamans - 2021-02-21

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


LiveTV AD Zapper - popy - 2021-02-21

Which editor you are using?
Is it utf8 compatible?


RE: LiveTV AD Zapper - Atamans - 2021-02-21

Notepad++ ,
yes utf 8 compatible

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