ASX Playlists in media scan
I have a script that runs which creates ASX playlists for my Windows Media Center boxes (and works wonderfully) to shuffle episodes of my favorite shows or to create a "season" playlist that plays the episodes in order. It's working perfectly on there but I would like my other boxes to be able to access the playlists as well. I assumed that it was not working on Serviio because it didn't support ASX files but then I looked in the logs and saw it was having a problem parsing my files. Here is a sample log entry:
- Code:
2013-12-01 10:52:42,515 WARN [LibraryAdditionsCheckerThread] Cannot add playlist file Shuffle.asx. Message: Cannot parse playlist (ASX) 'D:\shares\Videos\Playlists\Simpsons\Shuffle.asx' because: Error on line 145: The entity name must immediately follow the '&' in the entity reference.
org.serviio.library.playlist.CannotParsePlaylistException: Cannot parse playlist (ASX) 'D:\shares\Videos\Playlists\Simpsons\Shuffle.asx' because: Error on line 145: The entity name must immediately follow the '&' in the entity reference.
at org.serviio.library.playlist.AsxParserStrategy.parsePlaylist(AsxParserStrategy.java:75)
at org.serviio.library.playlist.PlaylistParser.parse(PlaylistParser.java:64)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.addNewPlaylistFile(LibraryAdditionsCheckerThread.java:226)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:149)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:134)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:134)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:83)
And here is the "offending" entry in the ASX file:
- Code:
<Entry>
<Param Name = "SourceURL" Value = "\\motherbrain\videos\Simpsons, The\Season 18\Simpsons, The - S18E09 - Kill Gil, Volumes I & II.avi" />
<Title>Simpsons, The - S18E09 - Kill Gil, Volumes I & II.avi</Title>
<Ref href = "\\motherbrain\videos\Simpsons, The\Season 18\Simpsons, The - S18E09 - Kill Gil, Volumes I & II.avi" />
</Entry>
This appears on all playlists which have an ampersand in any of the file names. However, even if the file names don't have an ampersand, I get an error like this:
- Code:
2013-12-01 10:58:42,234 WARN [LibraryAdditionsCheckerThread] Cannot add playlist file Shuffle.asx. Message: Cannot parse playlist (ASX) 'D:\shares\Videos\Playlists\Futurama\Shuffle.asx' because: Invalid byte 2 of 4-byte UTF-8 sequence.
org.serviio.library.playlist.CannotParsePlaylistException: Cannot parse playlist (ASX) 'D:\shares\Videos\Playlists\Futurama\Shuffle.asx' because: Invalid byte 2 of 4-byte UTF-8 sequence.
at org.serviio.library.playlist.AsxParserStrategy.parsePlaylist(AsxParserStrategy.java:77)
at org.serviio.library.playlist.PlaylistParser.parse(PlaylistParser.java:64)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.addNewPlaylistFile(LibraryAdditionsCheckerThread.java:226)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:149)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:134)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.searchForNewFiles(LibraryAdditionsCheckerThread.java:134)
at org.serviio.library.local.metadata.LibraryAdditionsCheckerThread.run(LibraryAdditionsCheckerThread.java:83)
Any thoughts? I was planning to just create a second set of playlists for Serviio but if I can make both the file system and Serviio work with the same set that would be more ideal!