-
Notifications
You must be signed in to change notification settings - Fork 8
Static Channel Number with wildcard naming #38
Comments
Hello 👋 Most probably you've described the best solution to this problem. By the way, here is another fork https://github.com/Fyb3roptik/PlexTeVe/tree/beta, it's author already did a lot of PPV-related work, so it's also worth checking out. |
For example you have a channel: For this we have two new fields: For the channel If we want to guard ourselves from accidental renames, then into the field Side notes:
|
That is absolutely brilliant. |
I haven't tested it much, but let's hope it will work as intended. |
@tunes0710 Just throwing this out there as another option: if the streaming URI for those name-changing channels stays the same, you can use this script to give each channel an ID. Then even though the name changes, xTeVe sees it as the same channel. |
@tunes0710 @joshjryan can I ask for your opinions guys? if nameRx.MatchString(m3uChannel.Name) == false {
// New channel name does not match the regex specified. Leaving name as it is.
continue
} I could modify this check, futurer restricting user to what type of renames can be done: if nameRx.MatchString(m3uChannel.Name) == false || nameRx.MatchString(xepgChannel.Name) == false {
// New Or Old channel name does not match the regex specified. Leaving name as it is.
continue
} So we prevent the following (accidental) rename, for example: But from the other side, let's say we know one channel has many (different) name aliases and provider changes them sometimes: So-o-o-o-o what do you think, more safety (change it) or more possibilities (leave it as it is)? |
I actually solved this with my fork! I will submit a PR! |
https://github.com/Fyb3roptik/PlexTeVe/tree/beta Has the code in question. It adds a setting to check Channel Name for PPV and then it adds the programme info for it and everything. You set XMLTV to Dummy then choose PPV |
Wow, these updates sound great. |
I did add this as a request on the main xTeVe page, but it seems like this fork is actively worked on, so thought I would switch over and ask here :)
Is your feature request related to a problem? Please describe.
There are is a group of channels (PPV) whereby part of the channel name changes on a regular (daily basis)
So day one it may be
PPV1: Swimming championships
PPV2: Knitting live fron granny house
etc etc
So I add a filter, group = PPV and then in mapping, I set channel numbers and map a dummy xteve file to the channels
Then on day 2 it's changed
PPV1: Championship mowing
PPV2: Hot air ballooning world championships
When xteve does its' daily import, because the channel name is different, it loses its channel number and mapping (as it thinks it is a new channel) and because it has no XMLTV file associated with it, it then wouldn't be seen in NextPVR and Kodi etc..
Describe the solution you'd like
Is it possible that when you click on a channel in the mapping section to be able to have additional checkbox and input line under "channel description".
Tickbox saying "Allow wildcard?"
And the input line saying "Channel Wildcard"
So I could click on channel 3001 where the channel name currently reads PPV1: Swimming championships
Select allow wildcard
in in channel wildcard, enter "PPV1: *"
Meaning that he next day, when xteve updates and the imported channel name is now PPV1: Championship mowing
It will still know to assign it the channel 3001 amd use the XMLTV File: xTeVe Dummy and the XMLTV Channel 30 Minutes
As a further protection against it incorrectly naming other channels that may start PPV1 in.. it will also use the "group" that it is assigned to as another check... so will only match PPV1: * to 3001 if it's in the PPV group.
There may be a way to already do this? but if there is... I do not know what it is :(
The text was updated successfully, but these errors were encountered: