Library for parsing and creating NFO files for media content. Built in Groovy and compatible with Java.
Read existing nfo files by calling the method fromFile(String)
, fromXml(String)
or fromReader(Reader)
on a media object.
def movie = Movie.fromFile '/media/movies/movie.nfo'
def movie = Movie.fromXml '<movie>...</movie>'
def show = TvShow.fromReader(bufferedReader)
Movie movie = Movie.fromFile("/media/movies/movie.nfo");
Movie movie = Movie.fromXml("<movie>...</movie>");
TvShow show = TvShow.fromReader(bufferedReader);
Save a nfo file by calling the method toFile(String)
or toXml(String)
.
movie.toFile '/media/movies/movie.nfo'
movie.toXml()
movie.toFile("/media/movies/movie.nfo");
movie.toXml();
nfoutils does not support the following:
- Including a URL at the end of the NFO file.
- Adding the attribute
clear="true"
.
-
0.2 - 2014-02-02
- Ported to groovy and removed the pure java version
- Added methods to read from and write to Files, Strings and Readers/Writers
- Corrected the cleaning of lists of strings
- Renamed properties to match the tag names
-
0.1 - 2014-01-25
- Initial release
Please see the LICENSE file.