[Approved] Mantis 2624 patch (1 Viewer)

romuz

Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Home Country
    Russian Federation Russian Federation
    That Bug happens because of duplicate channel mapping has created while importing channels (double mapping for All Channels group)
    this patch prevent it by checking if mapping already exists and update it.
     

    Attachments

    • doublemap_v2.patch
      30.6 KB

    elliottmc

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

    Thanks. I will brought this to the attention of the team. Hopefully someone with the relevant expertise will review your patch soon.

    Best regards,

    Mark
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,070
    7,459
    Home Country
    Germany Germany
    AW: Mantis 2624 patch

    1 quick comments to this patch:

    1) have you checked that the layer.AddChannelToRadioGroup/layer.AddChannelToGroup don't check for double assignments? at least I thought they do.

    3) what's the difference between:
    a) layer.AddChannelToGroup
    b) GroupMap map = new GroupMap(group.IdGroup, channel.IdChannel, sortOrder); map.Persist();

    if b) does the same as a), I would prefer to change it to layer.AddChannelToGroup (also to avoid doubles)

    If point 1) is not the case, those 2 functions need to be fixed, that they won't map more than one time...

    (removed point2, as it is a list.contains, not string :oops:)
     

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Home Country
    Russian Federation Russian Federation
    Re: AW: Mantis 2624 patch

    1 quick comments to this patch:

    1) have you checked that the layer.AddChannelToRadioGroup/layer.AddChannelToGroup don't check for double assignments? at least I thought they do.

    3) what's the difference between:
    a) layer.AddChannelToGroup
    b) GroupMap map = new GroupMap(group.IdGroup, channel.IdChannel, sortOrder); map.Persist();

    if b) does the same as a), I would prefer to change it to layer.AddChannelToGroup (also to avoid doubles)

    If point 1) is not the case, those 2 functions need to be fixed, that they won't map more than one time...

    (removed point2, as it is a list.contains, not string :oops:)

    imho difference between
    a) layer.AddChannelToGroup
    b) GroupMap map = new GroupMap(group.IdGroup, channel.IdChannel, sortOrder); map.Persist();
    in that b) sets SortOrder and a) no

    ill check "AddChannelToRadioGroup" part 1 tomorrow.
     

    romuz

    Retired Team Member
  • Premium Supporter
  • July 26, 2008
    1,045
    250
    Moskau
    Home Country
    Russian Federation Russian Federation
    part 1 is true so i have reverted it and prepared patch with GroupMap map = new GroupMap(group.IdGroup, channel.IdChannel, sortOrder); map.Persist(); only.
    (see first post):D
     

    Users who are viewing this thread

    Similar threads

    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra benefit is that it collects from the Sky platform so it will give EPG for all the FreeSat channels plus the unencrypted movie channels on the Sky platform. It also allows me to pick the channels dedicated...
    I used to use the grabber but a few years back it disappeared on FreeSat DVBS. That is when I changed to EPG Collector. The extra...
    Hi everyone, I hope you are all well My Mum's Mediaportal lost it's marbles thanks to Microsoft update, (even though I had update...
    Replies
    2
    Views
    1K
    Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
    Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
    I recently did a fresh install of 2.5 on a new Windows 11 PC. My previous (Windows 10) version of 2.5 gave my broadcast TV channel...
    Replies
    2
    Views
    2K
    Hey CyberSimian you nailed it! Looks like the secret is:- After EPG Collector has Run and provided the TVGuide.xml Open MediaPortal - TV Server Configuration "Force Import" on the Plugins/Xmltv/General dialogue, (ignore the status) Go to the Mappings dialogue and Load/Refresh and Save a Group - (It does not appear to matter which...
    Hey CyberSimian you nailed it! Looks like the secret is:- After EPG Collector has Run and provided the TVGuide.xml Open...
    Hi everyone I posted in the EPG section a while back concerning MediaPortal EPG using EPG Collector and MediaPortal xmltv plugin...
    Replies
    51
    Views
    9K
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which solved the problem with dolby digital plus audio. I want to thank Doskabouter for all his time and energy he put into resolving this!!
    To other people reading about this 'issue', Doskabouter provided me with a fix/patch. It is a modified version of tswriter.ax which...
    Hi all, I could use some help with the following; OS: Win11 24H2 TV server: 1.37.000.0|x64 (working with Mediaportal for maybe 20...
    Replies
    4
    Views
    2K
    Sadly, it seems that development of MP2 has come to a stop. Perhaps it will restart in the future. Meanwhile... MP1 has a "Tuning Details" panel that displays signal strength, signal quality, and picture resolution. It is updated in real time when viewing a channel: However, perhaps you are already aware of this, but prefer MP2...
    Sadly, it seems that development of MP2 has come to a stop. Perhaps it will restart in the future. Meanwhile... MP1 has a "Tuning...
    For those of us watching broadcast (over-the-air) television, it would be very handy to have a signal strength meter readily...
    Replies
    1
    Views
    3K
    Top Bottom