#279 tv_grab_il outputs visually-ordered hebrew

Or Cohen
tv_grab_il (2)

Using tv_grab_il 1.14

When running --configure, the script stores the channel names in the config file visually. This is probably done to make the interactive prompt for each channel more readable.

When it is time to create the xml file, the channel name are not flipped back to logical order.

Instead of changing the script to flip back and forth between orders, perhaps a cleaner solution would be to store the strings in the config file in their logical order, and have XMLTV::Ask display text after running a visual-ordering function on it.


  • Nick Morrott

    Nick Morrott - 2008-05-20
    • labels: --> tv_grab_il
  • David Kohen

    David Kohen - 2008-05-21

    Logged In: YES
    Originator: NO

    I'm working on an overhaul on the Israeli grabber, it would take some time.
    Meanwhile you can comment out the hebrewflip lines with a '#' character.

  • Or Cohen

    Or Cohen - 2010-03-10

    The new tv_grab_il has the same problem.
    Basically, the XMLTV package prompts the user to select the channels and then stores them in the XML file (according to the parameters).

    I'll look into it and see if I can do something about it.

  • Nick Morrott

    Nick Morrott - 2010-04-24
    • assigned_to: nobody --> lightpriest
  • Geoff

    Geoff - 2014-04-06

    I'm not sure what the problem is here

    Is it because configure displays this:

    Select the channels that you want to receive data for.
    yes india [yes,no,all,none (default=no)]
    blue hustler [yes,no,all,none (default=no)]
    yes News [yes,no,all,none (default=no)]
    CCTV 9 [yes,no,all,none (default=no)]
    ער××¥ ××××רפ×× [yes,no,all,none (default=no)]
    TVR int. [yes,no,all,none (default=no)]
    ××× [yes,no,all,none (default=no)]

    but the output has:


    If so would a fix be to say something like:

    Select the channels that you want to receive data for.
    channel 126 [yes,no,all,none (default=no)]
    channel 129 [yes,no,all,none (default=no)]
    channel 130 [yes,no,all,none (default=no)]
  • Or Cohen

    Or Cohen - 2014-04-25

    It's a bit problematic. There's no official channel number listing that I know of, and most channels are available both on Cable and Satellite with different channel numbers.

    The numeric representation output is actually an internal ID of tv.walla.co.il and has nothing to do with the channel numbers. This was my way of mapping the selection to the show listing.

    If it's possible, it should not be a problem to attach a comment to the output. That would make it more human-friendly. Is it possible?

  • Geoff

    Geoff - 2014-05-24

    I don't fully understand what you are asking for but I think what you are saying is that the xml file contains entries like:

      <programme start="20140407180000 +0300" channel="134.tv.walla.co.il">
        <title lang="he">שרדתי</title>

    and you can't tell what channel that is?

    The idea is that you take the "134.tv.walla.co.il" and look it up in the list of channel elements in the start of the file. This has:

      <channel id="134.tv.walla.co.il">
        <display-name lang="he">ערוץ ביוגרפיה</display-name>

    and so gives you the "display name" for the channel - ערוץ ביוגרפיה

    What are you using to 'read' these xml files? Are you simply opening the xml file in your browser? If so you might like to try one of the many simple 'display xmltv' programs available on the internet - e.g. XSLTv http://ericandchar.com/xsltvgrid/ - which will at least print the name rather than the internal number.

    If it's possible, it should not be a problem to attach a comment to the output. That would make it more human-friendly. Is it possible?

    It's not expected that a human would try to read the xml directly but that the file would be fed into some other program for display/processing.

    I think you would also like the programmes output in the same order as on the tv.walla.co.il website?

    Unfortunately xmltv doesn't do this (unless the website's internal ids happen to be in the same order, in which case it's a coincidence!). Having said that, it may be possible to kludge things so they come out in the same order as the website - I'll see what I can do.

    Also note that the order of <programmes> in the file is not prescribed - they don't have to be in channel or time order (although most grabbers will do it this way), and so you should not rely or expect this. If you want a different order then you can use the supplied tv_sort program but it won't sort by 'display name' since that is usually pointless.

  • Geoff

    Geoff - 2014-05-25
    • status: open --> closed-fixed
    • Group: --> 0.5.66
  • Geoff

    Geoff - 2014-05-25

    I've changed tv_grab_il so it outputs the channels in the same order as found on the website.

    While I was there, I've also added a command-line option "--slow" to output programme descriptions in the xml. :-)

    (CVS version 1.27 / XMLTV 0.5.66)


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks