Available space for recordings in MyTVRecordedTV (1 Viewer)

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Hi,
    the attached patch adds a skin property to the MyTVRecordedTV screen, where the available space for recordings is shown.
    Currently the RecordingPath of the first capture card is used to determine the drive since normally all cards would record to the same drive or am i wrong here?
    The skin must have a label control with id 18.
    The property is named #Recorder.AvailableSpace.
    This property is just filled with e.g. 106.123,32 MB
    So an example control entry for the MyTVRecordedTV.xml file would look like this:
    Code:
    <control>
      <description>Space left for recordings</description>
      <type>label</type>
      <id>18</id>
      <posX>5</posX>
      <posY>300</posY>
      <label>Freier Speicher: #Recorder.AvailableSpace</label>
      <align>left</align>
      <font>font11</font>
      <textcolor>FFFFFFFF</textcolor>
      <visible>no</visible>
      <animation effect="fade" time="250">WindowOpen</animation>
      <animation effect="fade" time="500">WindowClose</animation>         
    </control>
    If you find this usefull just post and i will load it up to the sourceforge page.
     

    shred444

    Portal Pro
    May 13, 2006
    143
    0
    What would happen if you have two drives? I have drive A that records everything from Tuner 1.

    and i have drive B that records everthing from tuner 2
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    shred444:
    That's something i thought of too but decided to take only the first drive into account because normally one would have 1 drive for all recordings but different subdirs.
    Do you or someone else use more than 1 drive?
    In this case there should be an entry in configuration but i wanted to keep the changes at a minimum for the first try.
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Hi,
    because of the feedback, i submitted a request to the sourceforge page.
    For those who want to try themselves i attached the patch to the current stable release (0.2.2.0) and the modified skin file for Project Mayhem III
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    I have tried #Recorder.AvailableSpace in b2 skin but it didnt work me. :(
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    regeszter:
    Did you patch the MP sources and recompiled?
    Otherwise it will not work.
    The submitted patch got refused because of the limitation that only the drive of the recording path for the first capture card is used.
    I have several ideas to display e.g. all available drives or to have a config option to selected the wanted drives and perhaps build a sum of all available space on all recording paths?
    So i am ready for your input :D
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Sorry I have thought it is in a SVN. And I only patched the b2 skin with #Recorder.AvailableSpace variable and it did not work me.
    I think to display the available space on recording path for all capture cards would be nice!
     

    Users who are viewing this thread

    Top Bottom