Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to grab in text based xml file for xmltv #4

Open
MrGrymReaper opened this issue Mar 25, 2018 · 2 comments
Open

Unable to grab in text based xml file for xmltv #4

MrGrymReaper opened this issue Mar 25, 2018 · 2 comments

Comments

@MrGrymReaper
Copy link

MrGrymReaper commented Mar 25, 2018

@Slugger Currently the Java based sdjson-grabber is unable to output the result of the grabber in a text based xmltv file format.

At the moment it is only outputting in a binary based format which is incompatible with all programs which can't handle this format. Even when you change the file extension of the target file to an xml based on which should be text based.

There needs to be a command line switch to enable support for outputting in an xml based format.

Grabber version: 0.20141201.2
Java Version: Oracle JRE SE 1.8.0_161-b12

sdjson-debug-25.03.2018-16.06-log.zip

@MrGrymReaper
Copy link
Author

@Slugger Possibly due to a "java.nio.file.NoSuchFileException" being thrown at several lines in the Java code. When attempting to access a text file with the name "seriesInfo.txt" and are currently wondering whether it is part of the problem.

Specifically these lines:-

  • ZipFileSystem.java:544

  • 3 lots of in unknown sources

  • Grabber.java:972

  • Grabber.java:827

  • Grabber.java:520

  • Grabber.java:443

  • ZipFileSystemProvider.java:278

  • ZipPath.java:645

@Slugger
Copy link
Owner

Slugger commented Mar 26, 2018

This grabber is only meant to work with the json api of Schedule's Direct. If you need the output of this api in an xmltv format then you'll need to write something that does the conversion. That is not the purpose of this grabber -- this grabber is only meant to store a local cache of data, which is then ingested by a java based program using this api.

Not sure if they still support it, but Schedule's Direct used to offer an older xml based api that might be better suited for you if you need an xmltv output.

fwiw, the output of this grabber is basically a specially formatted zip file. If you change the file extension to a .zip you can open the file in any zip reader. But, again, if you need the data in an xmltv format, you would need to write something that converts the contents of the zip file to an xmltv file.

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

No branches or pull requests

2 participants