DVB-IP MediaPortal IPTV Source Filter (8 Viewers)

Status
Not open for further replies.

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Oh, thanks for the info. Does 1.5 work then (my wife isn't exactly sympathetic with TV not working ;) )?
    MP 1.5 should be without that problem, but I'm not sure if filter is part of MP installation.
    It should be CableCARD support was added in MP 1.5. :)

    @Sebastiii can we talk about why the change was made? Is there a reason why we didn't make the change in the code that reads the playlist?
    https://github.com/MediaPortal/Medi...Tv/PlaylistSupport/PlayListM3uIO.cs?source=cc
     

    velis

    MP Donator
  • Premium Supporter
  • July 16, 2009
    237
    50
    Radovljica
    Home Country
    Slovenia Slovenia
    Thank you.

    Waiting for your answer I did some searching and it turns out my problem is reported on page before last of this thread (facepalm). Sorry about not reading first.

    Confirm that 1.5 has this filter included, file dates are 3 months older than in 1.6, but that's about it.
    Now happily importing channels :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Oh, thanks for the info. Does 1.5 work then (my wife isn't exactly sympathetic with TV not working ;) )?
    MP 1.5 should be without that problem, but I'm not sure if filter is part of MP installation.
    It should be CableCARD support was added in MP 1.5. :)

    @Sebastiii can we talk about why the change was made? Is there a reason why we didn't make the change in the code that reads the playlist?
    https://github.com/MediaPortal/Medi...Tv/PlaylistSupport/PlayListM3uIO.cs?source=cc

    Because i don't really see where it can be changed :) i was debugging and see that test in playlist trigger long scan, so yes it's surely really better to filter there (even if like this i didn't know how to do that, i think if i try to debug, i will succeed :) )
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Okay. Could you please provide a link to the playlist file that was causing problems? I can help to modify the playlist reading code.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    From Wikipedia:
    http://en.wikipedia.org/wiki/M3U#Format
    The M3U file can also include comments, prefaced by the "#" character. In extended M3U, "#" also introduces extended M3U directives.

    So I think it should be okay to do this:
    https://github.com/MediaPortal/Medi...laylistSupport/PlayListM3uIO.cs?source=cc#L73
    Code:
      if (trimmedLine.StartsWith(M3U_INFO_MARKER))
      {
        ...
      }
      else if (!trimmedLine.StartsWith("#"))
     {
       if (!AddItem("", 0, trimmedLine))
       break;
     }

    The important change is the "else if" instead of just else.
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    MM and georgius
    what do you think for implemented .XSPF as playlist ?
    http://xspf.org/

    about #EXTREM ( translated by google from wikipedia french )
    # EXTREM:
    At the beginning of any line, makes it a comment. That is to say, it will be ignored by the software that reads the file, so can contain any text, even the keywords above. (Does not work and is not ignored by rating 1Media Player Classic)
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom