Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Program fails with period subchannels #1

Closed
tonywagner opened this issue Nov 4, 2019 · 4 comments
Closed

Program fails with period subchannels #1

tonywagner opened this issue Nov 4, 2019 · 4 comments

Comments

@tonywagner
Copy link

If the input xml has period subchannels (like "2.1") instead of dashes ("2-1"), this program fails with "No acceptable channel number found".

Fortunately, it's a pretty easy fix in src/main/java/com/dontocsata/xmltv/model/XmlTvChannel.java -- change

private static Pattern channelSubPattern = Pattern.compile("(\\d+)\\-(\\d+)");

to

private static Pattern channelSubPattern = Pattern.compile("(\\d+)[\\-\\.](\\d+)");

and it should support both!

@2celtics
Copy link

2celtics commented Jan 2, 2020

@tonywagner

How did you get the project to compile? Mine shows lots of missing classes...
For example, these to name a few:

com.dontocsata.xmltv.mxf.Channel;
com.dontocsata.xmltv.mxf.Lineup;
com.dontocsata.xmltv.mxf.Lineup.Channels;
com.dontocsata.xmltv.mxf.MXF;
com.dontocsata.xmltv.mxf.MXF.With.ScheduleEntries;

Is there a process to generate these somehow before compiling the jar?

@tonywagner
Copy link
Author

@2celtics

I describe my build process here:
https://www.thegreenbutton.tv/forums/viewtopic.php?p=133887#p133887

@raydouglass
Copy link
Owner

This is fixed in v0.0.2. You can download it here: https://github.com/raydouglass/xmltv-to-mxf/releases/tag/v0.0.2

@raydouglass
Copy link
Owner

Is there a process to generate these somehow before compiling the jar?

This project uses maven to build. You can build the project on the command line like so:

mvn clean package

The resulting jar will be in the target/ directory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants