2013-08-19, 18:38
I have been struggling for hours to get this thing to use my regexp parser that i specify for the subfolder. I searched the forums and kept seeing code from people with a custom_parser="playon" bit, and one person asking what custom_parser is because its not documented. So i started going through the source and i learned some interesting things that will be of help to people and werent so readily obvious before.
custom_parser can be "netflix" "hulu" "cbs" "comedy central" or "playon". if your source is one of those then you should specify that because there are built-in parsers for videos from those specific sources. if you leave it out or specify something other than what i listed then it defaults to "playon", unless of course you have included <parser> in your config file. If you have included a <parser> properly then it will parse just the filename of the video you are adding, not the entire path, with your <regexp>. if your source has a few different naming schemes you can use multiple <regexp> tags and it will apply them in order until one matches the filename.
If you are having trouble with your regular expression, you might find these links useful:
http://docs.oracle.com/javase/1.4.2/docs...ttern.html
http://www.regexplanet.com/advanced/java/index.html
That being said, it would be really awesome, bradvido, if you could add another entry for custom_parser that will parse the entire path for show and episode names. I think it would only be 2 if statements in archiver.java. Ive never worked with java before and dont know how to compile it, otherwise i would do it myself.
custom_parser can be "netflix" "hulu" "cbs" "comedy central" or "playon". if your source is one of those then you should specify that because there are built-in parsers for videos from those specific sources. if you leave it out or specify something other than what i listed then it defaults to "playon", unless of course you have included <parser> in your config file. If you have included a <parser> properly then it will parse just the filename of the video you are adding, not the entire path, with your <regexp>. if your source has a few different naming schemes you can use multiple <regexp> tags and it will apply them in order until one matches the filename.
If you are having trouble with your regular expression, you might find these links useful:
http://docs.oracle.com/javase/1.4.2/docs...ttern.html
http://www.regexplanet.com/advanced/java/index.html
That being said, it would be really awesome, bradvido, if you could add another entry for custom_parser that will parse the entire path for show and episode names. I think it would only be 2 if statements in archiver.java. Ive never worked with java before and dont know how to compile it, otherwise i would do it myself.