Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Enhancement: Better Remapping Capability #36

@Croq360

Description

@Croq360

The current remapping that's implemented, while useful and helpful, could be improved. My suggestion is supporting a way that users could have control over the channel numbers (and possibly displayed names), and the ability to deactivate channels you don't want to have available. Emby supports sorting channels by name in the guide, which is nice, but removing a channel from the guide is not very straight-forward, and if you ever change your listings, you have to go back in and do it again. Plex allows you to remove channels from the guide in their manage Live TV & DVR page, but in the guide, you can only sort by channel number, no other option.

By giving more control to users on channel numbers/names, and activating/deactivating channels, you could have one place to manage all that in locast2tuner.

Some people might ask, "Why not just use xTeVe?" I am actually using that now. The issue there is that if you want to have both Plex and Emby supported at once, you'll likely have to run two instances of xTeVe. The reason for this is xTeVe's buffer capability, the default is to just hand the original m3u stream over to the client (like Plex/Emby) to play. This works great for Emby, but Plex doesn't support that. You could switch to have xTeVe do the buffering, but then you need to configure Emby to use locast2tuner in HDHR mode so the buffering will work, otherwise you can't play streams in Emby. Or you set up two instances of xTeVe like I have done, one with buffering, one without. Point Plex at the buffering one and Emby at the non buffering one. The problem here is that now you have to manage two separate channel remappings.

My proposal is for locast2tuner to offer a remap JSON file that allows you to go in and edit to your liking, then reference that remap when you run locast2tuner to get the numbers/names you want. While it would be nice to be able to edit these values through some tool in locast2tuner, if that's not possible, then having a way to get a starter file would be good, something like going to localhost:6077/remap.json. Save that file off, then edit, save, and point locast2tuner to use your modified list of channels.

{
  "channel.1571434910068": {
    "original-name": "KTVK (Phoenix)",
    "remap-name": "AZ Family (Phoenix)",
    "original-number": "3.1",
    "remap-number": "3",
    "active": true
  },
  "channel.1571434910374": {
    "original-name": "CBS (Phoenix)",
    "remap-name": "CBS (Phoenix)",
    "original-number": "5.1",
    "remap-number": "5.1",
    "active": true
  },
  "channel.1571434911228": {
    "original-name": "PBS (Phoenix)",
    "remap-name": "PBS (Phoenix)",
    "original-number": "8.1",
    "remap-number": "9.1",
    "active": true
  },
  "channel.1571434911800": {
    "original-name": "FOX (Phoenix)",
    "remap-name": "FOX (Phoenix)",
    "original-number": "10.1",
    "remap-number": "7.1",
    "active": true
  },
  "channel.1571434912373": {
    "original-name": "NBC (Phoenix)",
    "remap-name": "NBC (Phoenix)",
    "original-number": "12.1",
    "remap-number": "6.1",
    "active": true
  },
  "channel.1571434913084": {
    "original-name": "ABC (Phoenix)",
    "remap-name": "ABC (Phoenix)",
    "original-number": "15.1",
    "remap-number": "4.1",
    "active": true
  },
  "channel.1571434913506": {
    "original-name": "COURT (Phoenix)",
    "remap-name": "COURT (Phoenix)",
    "original-number": "15.4",
    "remap-number": "145.1",
    "active": false
  },
  "channel.1571434916392": {
    "original-name": "CW (Phoenix)",
    "remap-name": "CW (Phoenix)",
    "original-number": "61.1",
    "remap-number": "8.1",
    "active": true
  }
}

In the above example, I have disabled Court TV. I have renamed KTVK to "AZ Family" (how it is better known here). And I have renumbered ABC, CBS, NBC, FOX, CW, and PBS to 4.1, 5.1, 6.1, 7.1, 8.1, and 9.1 respectively. That gets AZ Family up top where I want it, followed by all of the network channels, and I could renumber all the remaining channels to my liking as well.

The key for each entry in the JSON data is the unique channel id for that channel (which should not be changed).

Regarding the "remap-name" and "remap-number", maybe to make things easier, they just should stay empty unless you actually want to change something (e.g., if you did this, then the entry for CW would have "remap-name": "", and locast2tuner would not rename it in that case). Just an idea.

In the event any new channels were to come along, they'd just default to no rename/renumber and be put wherever they happen to appear. Perhaps having the logging flag that could key a user to know that they have some new channels to deal with. Not sure how to deal with channels getting removed, I assume that happens. Also, I don't know if Locast would ever go through and change the channel id's, but I guess if they did, the user would have to deal with those too.

I don't know whether the current remapping process should remain (in case you have users that just want that simplicity), or if this new process replaces the current one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions