1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Channel Map Tivoweb module

Discussion in 'TiVo Underground' started by Zirak, Jun 4, 2002.

  1. 1equals0

    1equals0 New Member

    13
    0
    Jun 19, 2002
    Wow, thank you Zirak.

    I ended up installing tivoweb+ and used your channelmap module.
    That is quite a functional module. I am very impressed. Thanks for developing it.
    It works very well, and it is especially convenient that you can set it to remain on the channel change page and when you update a channel, it auto increments to the next channel in this to change. Very nice. And the saving of your channel map data to a file is an exceptional touch.

    One question, after making massive channel remappings, I went in the old fashioned way thru the Tivo and toggled my Lineup from Extended Basic to Basic and back to Extended Basic again, to load the new mappings.

    When I tried to do the reload through your interface, it brought up a screen with all 6 lineups, each with a checkbox checked. Well, this scared me because I was expecting mutally exclusive radio buttons with only 1 allowable lineup choice, since the tivo only allows you to select 1 lineup at a time, and I would have picked, I suppose, my desired Extended Basic lineup. So i guess what I am asking is what was I supposed to do on that screen, unselect all other lineups? Is it possible to have channels in your channel listings ala carte from multiple lineups?
     
  2. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    The "old fashioned way" does the same thing.

    When you select the check boxes on the commit page, you need to determine which sub lineups are used in your "tivo lineup." A likely case is if your cable system has both analog and digital cable as options. In this case you will likely see sub-lineup options for "Basic," "Extended Basic," "Premium," "Pay Per View," "Digital Basic," "Digital Extended Basic," "Digital Premium," and "Digital Pay Per View."

    If you have analog cable you want to select the first 4 sub-lineups, as basic includes ONLY the basic channels, Extended Basic ONLY the extended basic channels (not basic, premium or PPV) and so on. If you have digital cable you would similarly need to select the last 4.

    If you are unsure, you can sort the main channel map page by the lineup name which may help you determine what is there. Similarly, you can look at the drop downs on the remap page to see what channels are in which sub-lineups. You will need to engage slight use of the brain to pick the right sub-lineups, as the same channel will likely exist in mutually exclusive sub-lineups.

    "A la carte" is not an option since a) by design you need to base your lineup on something tivo knows about, and b) the only possible need for an a la carte system that I can think of probably be to support some form of service theft. That is not the purpose of the module. Generally you should get tivo to fix broken lineups to avoid headaches. The module is most useful when the cable company and tivo are out of sync for short periods of time. Although, I'm sure there are many other legitimate uses.
     
  3. 1equals0

    1equals0 New Member

    13
    0
    Jun 19, 2002
    zirak,
    thank you. i am just curious why you didnt you roll up the choices as to allow the user to pick one and only one lineup, similar to the tivo gui. i assume it was for the sake of easier programming, no disrepect intended? i had mentioned a la carte only because it seemed that was your design intention by allowing multiple selections.
     
  4. 1equals0

    1equals0 New Member

    13
    0
    Jun 19, 2002
    this is strange.
    after a reboot, all my remapped channels were gone and back to their original state. i had a new "message from tivo" stating a Channel Lineup Change had occurred. in that note, each channel that i successfully remapped had a line showing it was moved back to its original channel.

    very interesting, why would that happen? luckily i had saved the Channel Map so all was good i thought.

    but performing a Reload seems to work. it says:
    "It is Done - Commit the changes to make them Active".

    But the channel lineup listed on the web page is in its original state. Its not actually loading the ChannelMapScript.tcl file when I press "Restore Channel Map from Saved" button and then the "Yes I'm Positive" button. I just validated that the channel map file looks good... i think i am going crazy there must be something i am missing here...might u have any advice please?

    ok..just tested some more. tivoweb log file show
    "Loading channel map from backup - Individual Transaction will not appear here."

    is it possible to execute the ChannelMapScript.tcl without going through the web interface?
     
  5. 1equals0

    1equals0 New Member

    13
    0
    Jun 19, 2002
    problem solved.

    ran ChannelMapScript.tcl script from the shell and got

    bash-2.02# ./ChannelMapScript.tcl
    couldn't read file "/var/hack/tivowebplus/modules/ChannelMap.itcl": no such file or directory

    so i go there and i have no idea how, but this file was now called:
    "channelmap.itcl" no caps....not sure how that happened...but all looks good.

    but i am left wondering why the channels reverting after reboot or was that simply a coincidence that tivo remapped my channels back to what they were last night?
     
  6. rbird

    rbird uses tivo "wrong"

    126
    0
    Sep 20, 2000
    Centerville, GA
    I am trying to use this module and am experiencing the exact same symptoms as in Post #25 in this thread. I am only trying to remap 4 channels, but many more are actually being changed (because some are duplicated in the lineup). In fact, the ones I'm trying to change are duplicated as well, and end up not being changed the way I want them!

    Is there any way we can modify this script to just change the channels that have been selected instead of going through the entire list and changing everything?

    In case anyone is curious, I'm trying to use this lineup to remap the listings from my local channels on Dish (which I don't subscribe to) to the HD/digital channel numbers (that I can access through my Dish receiver). Unfortunately this script in its current form doesn't work because the channels appear both on their OTA numbers AND in the 7000 range.

    Bob
     
  7. rbird

    rbird uses tivo "wrong"

    126
    0
    Sep 20, 2000
    Centerville, GA
    Interestingly enough, running the commit script again restored the incorrectly changed channels! And I had the foresight to change the other occurance of the channels I did want to change this time around, so now everything is exactly the way I want it...

    ...until tomorrow when I get a lineup change based on a ticket I have in to a lineup specialist. :p

    One thing I noticed is that the duplicate channels (in this case, many times one is a spanish version with the same name, or the same channel located on a different satellite) have the same name and station object number but a different channel object number. Maybe this tidbit would be enough to come up with a fix (that at the very least would cut down the time required for remapping on Dish systems).

    Bob
     
  8. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    It sounds like you ran the commit without de-selecting the sublineups which are not applicable to your setup. When a channel exists in multiple sublineups, as they frequently do, the code will change the channel mapping each time it encounters a channel in a sublineup, leaving you with the channel number associated with the channel in the last sublineup where it exists.

    I.E. If you select both "extended basic" and "digital extended basic" you will almost certainly have duplicate channels. The channel map will then reflect however the channel is set in the last sublineup processed. The point being, you shouldn't select both of these sublineups for the commit. This is an example for cable, I assume something similar happens with Dish, specifically, I would guess OTA and the "7000" channels are in different sublineups.

    You can sort the channels by sublineup (or channel name, number, channel object, or station object) on the main channelmap page. Just click on the column header.
     
  9. rbird

    rbird uses tivo "wrong"

    126
    0
    Sep 20, 2000
    Centerville, GA
    Well for Dish, there are only two sublineups, basic and premium. Both with a TON of channels within them. Channels repeat within the lineup, so deselecting isn't really possible in this case. Local channels are within the basic sublineup because Tivo has a separate headend for each city, plus a "national" headend for those who don't have local channels available.

    It's definitely not the ideal way to handle things, IMHO. It's caused problems before (not hack-related), and is probably a large factor in Tivo's tech support costs.

    Bob
     
  10. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    If you are making changes in only one sublineup, you could commit chosing only that sublineup to get what you want. Alternatively, you could commit twice, each time selecting only one sublineup. Commit with the sublineup you want to take precedence *last*.

    Alternatively, you could just change the mapping on all occurrences of a given channel, no matter what lineup it exists in.
     
  11. wauters

    wauters New Member

    11
    0
    Sep 29, 2003
    Why can't the script just change the channels you change instead of the whole script?

    Example - I remap 4 channels, the script should just remap those 4 without going through the whole channel list.
     
  12. wauters

    wauters New Member

    11
    0
    Sep 29, 2003
    Or is there a way to manually change the channels one at a time?
     
  13. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    It would certainly be possible. However, the script was designed to maintain the correct mappings in _both_ places they are stored on the tivo. When you change the channel numbers in the lineups, only what _you_ change will change. The commit process copies any differences from the lineups you select to the active channel list. (Same thing that happens when you select your service package from the tivo interface.)

    It still doesn't make sense to me that there would be duplicate channels in sub-lineups that are not mutually exclusive by service package. It would seem to me that you must be able to identify a set of sub-lineups that has all the channels you get without duplicates, or the tivo would have the same problem in selecting your service package.

    The problem may be that the sub-lineups needed exist on multiple headends. This module doesn't support multiple headends, although it wouldn't be too hard to add that support. Unfortunately, I don't have multiple headends and could not test the code. (Not to mention a lack of inclination to start messing with the code again)
     
  14. bdaalex

    bdaalex New Member

    76
    0
    Jun 4, 2003
    Bermuda
    hello all,

    been using this for over a year to map Detroit's lineup to mine here in Bermuda (we have almost entirely US stations) and it works great. Two questions:

    First, my cable company finally went digital and I have 40 new channels to map. Zirak, I love this module, so no offenense, but I find the process rather slow to modify channels one by one. Is there any reason I cannot just copy channelmap.tcl to my computer, modify all the channels in textpad and then put it back? I'm right in thinking that channelmap.tcl lists all channels, not only the ones I have modified, correct?

    Second, are the new channel mappings in channelmap.tcl specific to the provider that you tell Tivo you use, for me, detroit. Basically, I arbitrarily chose Detroit because my bermuda provider actually has Detroit's NBC. However, I would rather pick a provider somewhere along the canadian border as we have a few canadian channels that are offered in say, Buffalo, but not detroit. If I change providers, will this module look at channelmap.tcl and still put NBC on 6 (where my provider has it) regardless of where Detroit/buffalo have it, or will I have to redo this whole thing? I suspect and hope that this is generic to Tivo's unique ID for a channel and provider is irrelevent.

    i feel like that might be complicated, so if I made no sense, let me know.

    thanks,
    Alex
     
  15. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York

    Yes, you can just edit the saved script, however, be aware that linux end of lines are different than unix end of lines, so you will need to convert the file back to the linux format is you use textpad. The script has all the channels, not just the ones you modified.

    Yes.

    To be honest, I don't recall, its been a couple of years since I wrote it. I don't remember if the code looks for the channel name in the lineup, or if it just uses channel object saved in the script. If you redo the lineup, the channel objects will change. The script wouldn't work if it is relying on the channel object as opposed to the name. The channel object is not a unique tivo identifier, it is better described as the location of the channel in the database, which will be different on every tivo, even if they are the exact same model, software version etc, etc. I do remember that the commit process is not based on channel object, but on matching channel short and long names.

    Nope. Provider is irrelevant, but the location of the channel object in the database may not be. I would have to go look at the code, but I suspect it relies on the channel object location.
     
  16. grenex

    grenex New Member

    19
    0
    Feb 6, 2002
    New Jersey
    It would be cool to have an updated version of this script to do multiple channels at one time rather then one at a time as the last poster suggested.....

    ;)
     
  17. bdaalex

    bdaalex New Member

    76
    0
    Jun 4, 2003
    Bermuda
    all done with the changes, but textpad only allows me to save as UNIX, not Linux. How do I do that? Thing is, I think that I have used textpad before...

    while I understand that the locals will be different as NBC can be WDIV or whatever, the others must be the same right? "HBO" or "DSC" are going to mean HBO and Discovery everywhere I would think. On a sidenote, is there a transaltion of some of the less obvious abbreviations?


    I guess I am just still confused, there is no reference to the Tivo's file system other than the abbreviations I mentioned above. Thus, except for the locals, I just dont get why channlemap.tcl would be different for different providers.

    The only difference that I can see is that there would be different channels. However, the ones that are the same should remain the same in the script, right? Oh wait, by "location" do you mean lineup? Now I can see where the problem would arrise.

    thanks for the help.

    as for the idea of doing multiple channels at once in table structure, it would be very nice, but altering this script works fine too.
     
  18. Zirak

    Zirak New Member

    973
    0
    Apr 24, 2002
    New York
    This module was mostly a learning exercise, as it was the first thing I did with tivo hacking. I'm not planning any updates. If you find the web interface too cumbersome, edit the saved config file instead.

    Unix and linux should be the same.



    I looked at the saved script. Since it doesn't pass in the object number, that isn't what is used. It apparently matches on channel name and lineup name. If a channel changes which lineup its in, you will need to change that too.

    No, I meant the object numbers. The things that appear on the main channelmap page, that look like (1234/56). But, you are correct in the assertion that the lineup needs to be the same too.

    I really don't see the need. Do it once, save the configuration, and changes are then just one or two channels at a time. For most purposes, you should contact tivo to fix the map, although I understand your situation is different.
     
  19. bdaalex

    bdaalex New Member

    76
    0
    Jun 4, 2003
    Bermuda
    thanks,

    I think I have it all. If I end up switching providers, I'll just redo the saved script, seams the simplest thing.

    I agree that there is little need for the table structure given the programming involved. changing the text file is easy.
     
  20. jberman

    jberman Mostly Harmless

    102
    0
    Oct 1, 2002
    Zirak -

    I just wanted to thank you for this great module. I FINALLY was able to remap a couple of incorrect channels in my cable lineup! Your module worked great. I really appreciate your hard work!! :D

    Jesse
     

Share This Page