--- /dev/null
+\n
+By default all URLs (in a playlist) with path component changes are treated as new services.
+This causes channels linked to them to be marked ```{name-not-set}```
+due to the previously-used URL "no longer existing" in the playlist, they in fact do exist but have changed slightly.
+
+Setting a number here forces tvheadend to ignore frequently-changing
+path components when deciding if a URL is new or not - starting from the end of the URL..
+
+Here are some examples:-
+
+URL in playlist | Frequently changing path component(s) in URL | Number of components to ignore | Treated as new if changed?
+----------------------------------------------------------------|------------------------------------------------|--------------------------------|-----------------------------------------------------
+```http://ip.tv/channel/BBC1/id/dHZoZWFkZW5kLm9yZw==``` | ```dHZoZWFkZW5kLm9yZw==``` | 0 | Yes, because no components are ignored.
+```http://ip.tv/channel/BBC1/id/dHZoZWFkZW5kLm9yZw==``` | ```dHZoZWFkZW5kLm9yZw==``` | 1 | No, because we're ignoring the last component ```dHZoZWFkZW5kLm9yZw==```.
+```http://ip.tv/channel/BBC4/id/dHZoZWFkZW5kLm9yZw==/1234``` | ```dHZoZWFkZW5kLm9yZw==``` / ```1234``` | 1 | Yes, but only if the second-from-last component ```dHZoZWFkZW5kLm9yZw==``` changes. We're ignoring the last component ```1234```, so if that changes it won't make any difference.
+```http://ip.tv/channel/BBC4/id/dHZoZWFkZW5kLm9yZw==/1234``` | ```dHZoZWFkZW5kLm9yZw==``` / ```1234``` | 2 | No, because we're ignoring the last two components ```dHZoZWFkZW5kLm9yZw==```/```1234```.
return m;
}
+PROP_DOC(ignore_path)
+
const idclass_t iptv_auto_network_class = {
.ic_super = &iptv_network_class,
.ic_class = "iptv_auto_network",
.intextra = CHANNEL_SPLIT,
.id = "channel_number",
.name = N_("Channel numbers from"),
- .desc = N_("Lowest starting channel number."),
+ .desc = N_("Lowest starting channel number (when mapping). "),
.off = offsetof(iptv_network_t, in_channel_number),
},
{
.type = PT_BOOL,
.id = "tsid_zero",
.name = N_("Accept zero value for TSID"),
+ .desc = N_("Accept transport ID if zero."),
.off = offsetof(iptv_network_t, in_tsid_accept_zero_value),
},
{
.name = N_("Ignore path components"),
.desc = N_("Ignore last components in path. The defined count "
"of last path components separated by / are removed "
- "when the identical source is compared."),
+ "when the identical source is compared - see Help for a detailed explanation."),
+ .doc = prop_doc_ignore_path,
.off = offsetof(iptv_network_t, in_ignore_path),
- .def.s = "",
+ .def.s = 0,
.opts = PO_EXPERT
},
{}