Page 1 of 4

[App] Recording Title Patch C/D/E/F/H

Posted: Mon Jan 12, 2015 3:58 pm
by sectroyer
This patch adds date suffix to recordings having no title or a predefined title. It also allows to offset EPG for recordings to have the right title, even if launched some time before (in case of manual scheduling, for example).
May not be obvious to non-advanced users, if it looks mysterious or ununderstandable to you, simply don't use it ;)

*For D series (arm), replace /mnt below by /mtd_rwcommon/widgets/user/SamyGO/SamyGO. The same goes in command lines.
  • Get latest samyGOso from there (v1.2.4 or higher required) and copy/overwrite samyGOso file (not folder) to /mnt/opt/privateer/usr/bin
  • Set permissions if needed (usually not if overwritten)

    Code: Select all

    chmod +x /mnt/opt/privateer/usr/bin/samyGOso
  • Extract current post archives and copy libRecTitle.so to /mnt/opt/privateer/usr/libso (create folder if needed)
  • Execute. Usable switches:
    • 'String1' ... 'StringN' - The beginning or whole string that corresponds to title(s) you want to add date suffix to. Can be 'No title' (in your local language) or even 'No ti', or a serie title e.g. 'Breaking Bad', 'Friends'...
    • NO_TITLE - On some TVs (no way to know which ones until you try or check your .inf files), recordings with no titles are not parsed as plain text "No title" in inf file, but as empty string, this switch will detect such case.
    • NO_TITLE_PREFIX:'String' - To be used only concurrently with NO_TITLE, replaces title empty string by any 'String' prefix of your choice.
    • ADD_HOUR - Add not only date, but also hour in suffix.
    • MINUTES_TO_ADD:Number - Offsets EPG by Number of minutes for TV to catch the right recording title in case of anticipated schedule/instant recording.
    • CH:'Channel1'...CH:'ChannelN' - Add date suffix to ALL programs of some channel(s) (especially useful with dummy EPG).
    • REVERSE_DATE - Outputs date to YYYY.MM.DD instead of DD.MM.YYYY.
    • REVERSE_SMALL_DATE - Outputs date to MM.DD, no year shown.
    • #REVERSE_DATE_CH - To be added next to a specific channel. e.g.:
      CH:Name_Of_Channel#REVERSE_DATE_CH to reverse its date output format regardless of global setting.
    Sample usages:

    Code: Select all

    samyGOso -d -A -B -r -l /mnt/opt/privateer/usr/libso/libRecTitle.so 'No title' MINUTES_TO_ADD:10

    Code: Select all

    samyGOso -d -A -B -r -l /mnt/opt/privateer/usr/libso/libDumpTitles.so NO_TITLE NO_TITLE_PREFIX:'No title'
    Logfile is written to /dtv/RecTitle.log
  • Autostart
    • Copy 99_91_RecTitle.init to /mnt/etc/init.d
    • Set permissions

      Code: Select all

      chmod +x /mnt/etc/init.d/99_91_RecTitle.init
    • You might change OPTIONS value on top of script, default is only

      Code: Select all

      OPTIONS="MINUTES_TO_ADD:10"
      since it's not possible to establish a more advanced default configuration suitable to most people/languages.
      Example of multiple options:

      Code: Select all

      OPTIONS="'No title' NO_TITLE NO_TITLE_PREFIX:'No title' MINUTES_TO_ADD:10"
      So that's your job now. :)

Re: [App] Recording Title Patch D/E/F/H

Posted: Tue Jan 13, 2015 4:29 pm
by zoelechat
Phew, done. What a huge and laborious procedure, don't ask me more, I'm tired of that crap :D

Re: [App] Recording Title Patch D/E/F/H

Posted: Tue Jan 13, 2015 6:38 pm
by sectroyer
zoelechat wrote:Phew, done. What a huge and laborious procedure, don't ask me more, I'm tired of that crap :D
Hehe, only libEPG but this should be simpler ;)

Re: [App] Recording Title Patch D/E/F/H

Posted: Tue Feb 03, 2015 4:52 pm
by cmuc05
This is the content of my RecTitle.log. ES6300 T-MST10PDEUC.
A few things failed. And I am not sure, what this patch does. I thought it renames f.i. "20150203154055.srf" to "20150203_Gorilla.srf" or something like that.

Code: Select all

[RecTitle] SamyGO D/E/F/H libRecTitle v0.7.8 - (c) sectroyer 2014
[RecTitle] lib_init, Setting MINUTES_TO_ADD to: 10!
[RecTitle] lib_init, pthread_mutex_init success.
[RecTitle] _Znwj [0xf3fbb4].
[RecTitle] dlsym '_ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram' failed.
[RecTitle] _ZN4TCTv14GetProgramListEPK9TCChannelmmP12CCSortedList [0x168dd40].
[RecTitle] dlsym '_ZN9TCTvProxy14GetProgramListEPK9TCChannelmmP12CCSortedList' failed.
[RecTitle] dlsym '_ZN14TCTvProxyCache11GetTimeZoneEPiS0_' failed.
[RecTitle] _ZN4TCTv11GetTimeZoneEPiS0_ [0x168a458].
[RecTitle] dlsym '_ZN5TCAPI5GetTvEv' failed.
[RecTitle] g_pAppTV [0x72f7aa4].
[RecTitle] _ZN12CCSortedList6CreateEv [0x159a49c].
[RecTitle] _ZN12CCSortedList4SizeEv [0x159a504].
[RecTitle] _ZN12CCSortedList4SeekEii [0x159a5f8].
[RecTitle] _ZN12CCSortedList3AddEiPv [0x159a754].
[RecTitle] _ZN12CCSortedList4DataEv [0x159a4dc].
[RecTitle] _ZN12CCSortedList7DestroyEv [0x159a4c0].
[RecTitle] _ZTV12CCSortedList [0x402e048].
[RecTitle] _ZNK9TCChannel14GetChannelNameEPhPt [0x16e7770].
[RecTitle] _ZNK9TCChannel3PTCEv [0x16e91bc].
[RecTitle] _ZNK9TCChannel5MajorEv [0x16e91f4].
[RecTitle] _ZNK9TCChannel5MinorEv [0x16e91d8].
[RecTitle] _ZNK9TCChannel4TypeEv [0x16e9170].
[RecTitle] _ZNK9TCChannel17TransportStreamIdEv [0x16e7b94].
[RecTitle] _ZNK9TCChannel13ProgramNumberEv [0x16e7d10].
[RecTitle] _ZN9TCProgramC2Ev [0x16f9b64].
[RecTitle] _ZNK9TCProgram8GetTitleEPcPj [0x16fb704].
[RecTitle] _ZN9TCProgram8SetTitleEPci [0x16fb834].
[RecTitle] _ZN9TCProgram15SetExtendedTextEPci [0x16fb820].
[RecTitle] _ZN10TCChNumber7SetTypeEi [0x16f3cb8].
[RecTitle] _ZN10TCChNumber10SetChannelEttt [0x16f3c98].
[RecTitle] _ZN10TCChNumber16SetProgramNumberEt [0x16f3d60].
[RecTitle] _ZNK9TCProgram9StartTimeEv [0x16f8638].
[RecTitle] _ZNK9TCProgram7EndTimeEv [0x16f8698].
[RecTitle] _ZNK9TCProgram8DurationEv [0x16f8680].
[RecTitle] _ZN9TCProgram7SetTimeEjj [0x16f8604].
[RecTitle] _ZN9TCProgram20SetTransportStreamIdEt [0x16f891c].
[RecTitle] _ZN9TCProgram10SetEventIdEt [0x16f85ec].
[RecTitle] _ZN9PCWString7ConvertEPcPKtiiPi [0xf416c0].
[RecTitle] _ZN9PCWString7ConvertEPtPKciiPi [0xf41958].
[RecTitle] _ZN9PCWString6LengthEPKt [0xf41580].
[RecTitle] _ZN8CPVRUtil10StringSwapEPtPcii [0x26105e4].
[RecTitle] _ZN11CPVRInfoMgr12WriteInfFileEPKcPK9_PVR_INFO [0x260b070].
[RecTitle] dlsym '_ZN14CPVRCoreInfMgr12WriteInfFileEPKcPK9_PVR_INFO' failed.
[RecTitle] dlsym '_ZN11CPVRInfoMgr22m_GetRecordProgramInfoEP9_PVR_INFON8TCWindow7EWindowEb' failed.
[RecTitle] dlsym '_ZN14CPVRCoreInfMgr22m_GetRecordProgramInfoEP9_PVR_INFOb' failed.
[RecTitle] _ZN11CPVRInfoMgr22m_GetRecordProgramInfoEP9_PVR_INFOib [0x260c8ac].
[RecTitle] dlsym '_ZN9TCTvProxy17GetPresentProgramEP9TCChanneljP9TCProgram' failed.
[RecTitle] _ZN4TCTv17GetPresentProgramEP9TCChanneljP9TCProgram [0x168dbc0].
[RecTitle] init done...
[RecTitle] CTV_GetPresentProgram, Channel: "Das Erste HD", Total: 1, Changing program title: "Panda, Gorilla & Co. (304)" to: "Panda, Gorilla & Co. (304)"


Re: [App] Recording Title Patch D/E/F/H

Posted: Tue Feb 03, 2015 6:00 pm
by zoelechat
Failed "things" correspond to functions used on other series TV.
Patch operates on EPG info only, not on filenames. What it does is explained in first post. Especially:
May not be obvious to non-advanced users, if it looks mysterious or ununderstandable to you, simply don't use it ;)

Re: [App] Recording Title Patch D/E/F/H

Posted: Sat Feb 07, 2015 5:30 pm
by mikemcgear
Great patch, however I am facing this issue:

Code: Select all

# samyGOso -d -A -B -r -l /mnt/opt/privateer/usr/libso/libRecTitle.so MINUTES_TO_ADD:10
samyGOso v1.2.4 (c) bugficks 2013, sectroyer 2014
Injecting '/mnt/opt/privateer/usr/libso/libRecTitle.so' resident: '1'
Segmentation fault
No log file is written as a consequence.

Re: [App] Recording Title Patch D/E/F/H

Posted: Sat Feb 07, 2015 6:01 pm
by juusso
What tv model and firmware?

Re: [App] Recording Title Patch D/E/F/H

Posted: Sat Feb 07, 2015 8:17 pm
by mikemcgear
UE48H6600, T-GFSDEUC 1210.5

Re: [App] Recording Title Patch D/E/F/H

Posted: Sat Feb 07, 2015 8:24 pm
by juusso
possible this patch is not ported to T-GFS yet, cause here was almost no rooted models :) You have to wait until @sectroyer adds your tv to supported list :)

Re: [App] Recording Title Patch D/E/F/H

Posted: Sun Feb 08, 2015 10:16 am
by sectroyer
juuso wrote:possible this patch is not ported to T-GFS yet, cause here was almost no rooted models :) You have to wait until @sectroyer adds your tv to supported list :)
It works :) I am not picky :) If he has root I support his TV :P