Skip to content

Merge_xmltv issue xmltv_id changing during channel creation #11

@jamesm147

Description

@jamesm147

This is resulting in epg being broken. xmltv_id"sdabc22.au" becomes "NSW - Sydney - ABC COMEDY/ABC KIDS NSW - Channel 22"

Source line--
<channel update="i" site="freeview.com.au" site_id="1010:0221:0222" xmltv_id="sdabc22.au">NSW - Sydney - ABC COMEDY/ABC KIDS NSW - Channel 22</channel>

Result after channel creation--
<channel update="i" site="merge-xmltv" site_id="sdabc22.au" xmltv_id="NSW - Sydney - ABC COMEDY/ABC KIDS NSW - Channel 22">NSW - Sydney - ABC COMEDY/ABC KIDS NSW - Channel 22</channel>

Ir has to be something in the channel creation. Here's what mine looks like.

* @auto_xml_channel_start
*index_site_id.scrub {regex||<channel [^>]*id="[^\"]*"[^>]*>.*?</channel>||}
*scope.range {(channellist)|end}
*index_site_channel.modify {addstart|'index_site_id'}
*index_site_id.modify {substring(type=regex)|<channel [^>]*id="([^\"]*)"[^>]*>}
*index_site_channel.modify {substring(type=regex)|<display-name [^>]*>(.*?)</display-name>}
*index_site_id.modify {cleanup(removeduplicates=equal link="index_site_channel")}
*end_scope
** @auto_xml_channel_end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions