Page 4 of 6

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 8:48 pm
by zoelechat
Ah right, now I remember :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 8:56 pm
by wluczykijwf
Do you know how in this case get a program?
Of course, I do not ask for ready-made solution :).

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 9:01 pm
by zoelechat
Nope, I guess sectroyer has to fix his lib :)
No idea where the hell he stores program titles...

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 9:47 pm
by sectroyer
wluczykijwf wrote:

Code: Select all

TCTvProxy_GetPresentProgram(void *this, void *channel, unsigned int startTime,  void *program)
@zoelechat your app works for orginal EPG from a provider, but this function simply doesn't allow download of the program if EPG is injected through libEPG.
What I hook is:

Code: Select all

_ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram
Just remember that in terms of hooking ORDER MATTERS :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 10:05 pm
by wluczykijwf
sectroyer wrote:[...]
What I hook is:

Code: Select all

_ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram
Just remember that in terms of hooking ORDER MATTERS :)
It is obvious to me. But if I used this hook for a channel has injected a epg from your libEPG then I don't get a program name.

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 10:56 pm
by sectroyer
wluczykijwf wrote:
sectroyer wrote:[...]
What I hook is:

Code: Select all

_ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram
Just remember that in terms of hooking ORDER MATTERS :)
It is obvious to me. But if I used this hook for a channel has injected a epg from your libEPG then I don't get a program name.
You should first inject my lib, then yours :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 11:00 pm
by wluczykijwf
sectroyer wrote:[...]
You should first inject my lib, then yours :)
The obvious obviousness ;)

Re: [App] libLogChannel B/D/E/F/H

Posted: Sun Jan 17, 2016 11:40 pm
by sectroyer
wluczykijwf wrote:
sectroyer wrote:[...]
You should first inject my lib, then yours :)
The obvious obviousness ;)
Then EVERY TIME you call this function it calls my shit. If you call it in hook FIRST dispatch and then check data :)

Re: [App] libLogChannel B/D/E/F/H

Posted: Mon Jan 18, 2016 8:06 am
by wluczykijwf
sectroyer wrote:[...]
Then EVERY TIME you call this function it calls my shit. If you call it in hook FIRST dispatch and then check data :)
Now yet not everything is for me to understand in patching. Could you explain it more schematically?

Besides, it seems to me that this doesn't solve my problem.
It seems to me that your libEPG inject a data to another area, because I can get a program title using a javascript API functions.
I tested also such a strategy:
  • 1. It is a channel which has a program title from EPG provider (providerTitle).
    2. I replace the program title (sectroyerTitle) for this channel using your libEPG.
    3. When I use the javascript API functions to get program title then I getting the sectroyerTitle.
    4. When I use _ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram TV API function to get program title then I getting the providerTitle.
Is it interesting? or -> Is it strange? otherwise -> Did I don't understands something? :D

Re: [App] libLogChannel B/D/E/F/H

Posted: Mon Jan 18, 2016 11:48 am
by sectroyer
I do NOT understand :) How do you "use _ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram" ? :) Paste code :)