Skip to content

Error parseando el XML de EPG #4143

Description

@scinos

Estoy intentando añadir TDTChannels a Jellyfin. La lista de canales funciona bien, pero cuando intento añadir la EPG, da el siguiente error:

[2024-11-27 06:52:47.071 +01:00] [ERR] Error getting programs for channel "La Urban TV España"
System.Xml.XmlException: '[' is an unexpected token. The expected token is ';'. Line 2981, position 91.
   at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
   at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
   at System.Xml.XmlTextReaderImpl.ParseAttributes()
   at System.Xml.XmlTextReaderImpl.ParseElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at Jellyfin.XmlTv.XmlTvReader.GetChannels()
   at Jellyfin.LiveTv.Listings.XmlTvListingsProvider.GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken)
   at Jellyfin.LiveTv.Listings.ListingsManager.GetEpgChannels(IListingsProvider provider, ListingsProviderInfo info, Boolean enableCache, CancellationToken cancellationToken)
   at Jellyfin.LiveTv.Listings.ListingsManager.GetProgramsAsync(ChannelInfo channel, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken)
   at Jellyfin.LiveTv.DefaultLiveTvService.GetProgramsAsync(String channelId, DateTime startDateUtc, DateTime endDateUtc, CancellationToken cancellationToken)
   at Jellyfin.LiveTv.Guide.GuideManager.RefreshChannelsInternal(ILiveTvService service, IProgress`1 progress, CancellationToken cancellationToken)

Revisando el XML (https://www.tdtchannels.com/epg/TV.xml.gz), veo que la linea 2981 contiene

		<icon src="https://www.movistarplus.es/recorte/n/caratula5/F4165123?od[]=Z3V:COMPM3_V&od[]=Z1V:HBOMAX_V"/>

Si no me equivoco, el & no es legal en XML y rompe el parseado. Deberia ser &amp.

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