[TV] Ordering not working in scheduled list (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    MediaPortal Version: SVN24699
    MediaPortal Skin: Blue3 Wide
    Windows Version: XP Pro - SP3
    CPU Type: Intel E4500 2x2.2Ghz
    HDD: WD green 500Gb
    Memory: 2Gb DDR2-6400
    Motherboard: GIGABYTE GA-E7AUM-DS2H
    Video Card: Geforce 9400 IGP
    Video Card Driver: Nvidia 191.07
    Sound Card: Nvidia HDMI
    Sound Card AC3: Asus Xonar HDAV
    Sound Card Driver: Latest
    1. TV Card: Pinnacle 7010ix
    1. TV Card Type: Dual DVB-S and Dual DVB-T
    1. TV Card Driver: Latest
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: NVidia
    MPEG2 Audio Codec: NVidia
    h.264 Video Codec: PowerDVD 7
    Satelite/CableTV Provider: Freeview (DVB-T) / Freesat (DVB-S)
    HTPC Case: Antec Fusion
    Cooling: Scythe Mini-Ninja
    Power Supply: Antec 300W
    Remote: MCE
    TV: Panasonic 42PZ80B
    TV - HTPC Connection: HDMI


    Came out of this bug.

    When you go into the upcoming schedules the order by date option does not work. (Gibman and Ronilse confirm in thread linked to that mantis)
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Hi,

    It is working fine here with 24786. Can you please post steps to reproduce?

    Best wishes,

    Mark
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    It is working fine here with 24786. Can you please post steps to reproduce?
    Steps are just
    • Add some scheduled recordings
    • Go into schedules screen from TV options (first screen after home page if autostart TV not set)
    • Optionally change to series view
    • Set order by date

    For me I find that the normal view the next sceduled recording is bottom of the list and the furthest away in the future is at the top. For usability this really should be the other way around. Guess they are being returned from database in date order and added to the top of list control or being returned sorted the wrong way in database ??

    If you select the series option then the ordering appears odd (as suggested here) it appears to be ordered based on the date of first recording in the schedule not the date of the next upcoming recording

    Will double check this when I get home but seem to recall also seeing a few odd entries.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    You probably have a lot of leftover spawned once type schedules that obscure your view.

    This certainly was the problem in my case.

    try SQL:
    SELECT *
    FROM [TvLibrary].[dbo].[Schedule]
    where scheduleType = 0
    order by programName, starttime

    How many of the schedules are old and needs to be deleted ?

    It should be fixed in next SVN.
    Meaning certain types of once schedules are automatically deleted.

    /gibman

    It is working fine here with 24786. Can you please post steps to reproduce?
    Steps are just
    • Add some scheduled recordings
    • Go into schedules screen from TV options (first screen after home page if autostart TV not set)
    • Optionally change to series view
    • Set order by date

    For me I find that the normal view the next sceduled recording is bottom of the list and the furthest away in the future is at the top. For usability this really should be the other way around. Guess they are being returned from database in date order and added to the top of list control or being returned sorted the wrong way in database ??

    If you select the series option then the ordering appears odd (as suggested here) it appears to be ordered based on the date of first recording in the schedule not the date of the next upcoming recording

    Will double check this when I get home but seem to recall also seeing a few odd entries.
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Hi,

    That's very strange.

    If I set a new schedule for Eastenders, every time on every channel (so that there are two channels, BBC1 and BBC3), then this is fine. I can switch between sorting by name, channel and date, and the list is correctly updated.

    Could this be skin-related? I tested with Blue3Wide?

    Could it be related to some schedules that were set up when there was a bug present? Maybe there is an issue with your database.

    Since we are both in the UK, maybe you can suggest a schedule that I can add, and a precise sequence of steps to try to reproduce this problem.

    Edit: Didn't see that gibman had given a far more useful response.

    Mark
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Will post up some details tonight when I get home. Just been working through the code via WebSVN (which is kinda tricky...)

    I guess I am looking at the right code in
    /trunk/TvEngine3/TVLibrary/TvPlugin/TvPlugin/TVScheduler.cs


    Edit:Found it
    /trunk/mediaportal/Core/guilib/GUIListControl.cs
    which just points me back to the implementation of ICompare in the first class :)

    Will work this through...

    Will work this through...
    Ok I am stuck now...

    code looks fine so I guess it depends on the values being passed to StartTime

    Code:
          Schedule rec1 = (Schedule)item1.TVTag;
          Schedule rec2 = (Schedule)item2.TVTag;

    is where the two items to be compared are defined but I can't find the Schedule class. Could someone please point me in the right direction of this??
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    OK figured out the problem but not the reason. In MediaPortal.xml I had

    <section name="tvscheduler">
    <entry name="sort">date</entry>
    <entry name="sortascending">no</entry>
    <entry name="series">no</entry>
    </section>

    No idea how this got there as logs I posted a week or so ago have this set to yes. Changed back to yes and now working fine. Tried new tvplugin.dll from bug thread again but can't figure out where this item would get changed. I certainly have not amended anything directly in the xml file but don't see how you can set this through application or through certain actions.

    Will do some more digging
     

    Users who are viewing this thread

    Top Bottom