== EDIT 2012-09-19: New Version 1.0.1 of SwapCat available under http://21x.eu/downloads/SwapCategory.html ==
Attachment version 1.0 deleted. - See Post https://forum.team-mediaportal.com/threads/webgrab-plus-a-new-xmltv-grabber.88425/page-19#post-916902 for the most recent version.
Ok - solved the "multiple categories" for me: My EPG showed categeory information like "USA 2009" (especially coming from grabbed web sites like tvtoday.de, tvtv.* etc. - but maybe you encounter the same.
If anyone encounters the same issues as described on the previous pages, he might want to have a look at this helper application - see attachment.
The easiest way: download - read the SwapCat.readme.txt from within the package and TRY OUT!
If you have any question or suggestion, post it here - I'll read it.
More information:
I wrote a tiny application to solve my issues - maybe also interesting to others (see attachment below) , facing a similar issue:
Using several scrapers on several internet guide sites and a variety of front-ends may lead to the fact, that various EPG's may show "irrelevant" category information as the main category for a show in Fortherecord.
Reason is, that 4TR only uses the FIRST category definde for its EPG, recordings and suggestions.
Gettting started: Download and try out the attached ZIP archive, read the SwapCat.readme.txt for an quick start AND extensive explanatory.
Most of the scrapers support (as defined) "multiple fields" for the category information, whereas most of the EPG viewers (including Fortherecord and MediaPortal) only reference the first entry of all those categories (per programme).
If you encounter categories like "USA 2009" in your main EPG - you should use SwapCat.
If you encounter categories like "Thriller" in your EPG and the online view of the grabbed website shows something like "Thriller; Comedy; Thriller Comedy" and you want to see the latter in your EPG (meybe it's even the Sub-Category, depending on your grabber, and you want to see rather THIS) - you should use SwapCat.
(For a quick check, whether SwapCat will be able to serve you, read the SwapCat.readme.txt of the archive and jump to the section "2.1. Quick start guide".)
Two basic modes are available: the interactive and the automated run.
The interactive mode will let you do step by step whatever you want or simply run an analysis on the given source file. In this mode you may safely run this analysis (only) on your source TV guide XML file without changing anything - it will tell you, if SwapCat will be of use for you on the given source file - and then invoke run the swap.
You may select the target TV guide XML file (which MUST be different from the source) and select a logging file to give you more details on analysis or swapping.
The automated run is performed when you call SwapCat with the appropriate command line arguments - see "2. Usage".
SwapCat will open your source TV guide XML file (read-only; no changes are done), parsing the file and find multiple field-entries of categories in your XMLTV file.
On finding them (if not running analysis only) will make SwapCat swap the order of the category occurences within a program. The last entry will become the first one, the order will be inverted. Everything else in your TV guide source XML will simply be copied to the target.
EXAMPLE:
Usage of SwapCat - interactively or automated with command line parameters:
'SwapCat.exe': starts the interactive SwapCat (supports analyzing a source)
'SwapCat.exe <guide source xml file> <swapped target guide xml file>': automated run: swaps the order into a newly created guide xml file, switches to interactivity on error
'SwapCat.exe <guide source xml file> <swapped target guide xml file> <log file>': automated run: swaps the order into a newly created guide xml file, writes log file but exits on error
Details are described in the package. Interaqctive run, automated run with error detection, unconditional automated rn with log creation... see it in the package.
If you have any questions or suggestions, please post them here.
Kind regards - Christoph
Kind regards from Switzerland - Christoph
Attachment version 1.0 deleted. - See Post https://forum.team-mediaportal.com/threads/webgrab-plus-a-new-xmltv-grabber.88425/page-19#post-916902 for the most recent version.
Ok - solved the "multiple categories" for me: My EPG showed categeory information like "USA 2009" (especially coming from grabbed web sites like tvtoday.de, tvtv.* etc. - but maybe you encounter the same.
If anyone encounters the same issues as described on the previous pages, he might want to have a look at this helper application - see attachment.
The easiest way: download - read the SwapCat.readme.txt from within the package and TRY OUT!
If you have any question or suggestion, post it here - I'll read it.
More information:
I wrote a tiny application to solve my issues - maybe also interesting to others (see attachment below) , facing a similar issue:
Using several scrapers on several internet guide sites and a variety of front-ends may lead to the fact, that various EPG's may show "irrelevant" category information as the main category for a show in Fortherecord.
Reason is, that 4TR only uses the FIRST category definde for its EPG, recordings and suggestions.
Gettting started: Download and try out the attached ZIP archive, read the SwapCat.readme.txt for an quick start AND extensive explanatory.
Most of the scrapers support (as defined) "multiple fields" for the category information, whereas most of the EPG viewers (including Fortherecord and MediaPortal) only reference the first entry of all those categories (per programme).
If you encounter categories like "USA 2009" in your main EPG - you should use SwapCat.
If you encounter categories like "Thriller" in your EPG and the online view of the grabbed website shows something like "Thriller; Comedy; Thriller Comedy" and you want to see the latter in your EPG (meybe it's even the Sub-Category, depending on your grabber, and you want to see rather THIS) - you should use SwapCat.
(For a quick check, whether SwapCat will be able to serve you, read the SwapCat.readme.txt of the archive and jump to the section "2.1. Quick start guide".)
Two basic modes are available: the interactive and the automated run.
The interactive mode will let you do step by step whatever you want or simply run an analysis on the given source file. In this mode you may safely run this analysis (only) on your source TV guide XML file without changing anything - it will tell you, if SwapCat will be of use for you on the given source file - and then invoke run the swap.
You may select the target TV guide XML file (which MUST be different from the source) and select a logging file to give you more details on analysis or swapping.
The automated run is performed when you call SwapCat with the appropriate command line arguments - see "2. Usage".
SwapCat will open your source TV guide XML file (read-only; no changes are done), parsing the file and find multiple field-entries of categories in your XMLTV file.
On finding them (if not running analysis only) will make SwapCat swap the order of the category occurences within a program. The last entry will become the first one, the order will be inverted. Everything else in your TV guide source XML will simply be copied to the target.
EXAMPLE:
Code:
Your source TV guide XML file shows: ...will convert to... order in your newly created TV guide target XML file:
<category>USA 2009</category> <category>Thriller-Comedy</category>
<category>Thriller</category> <category>Comedy</category>
<category>Comedy</category> <category>Thriller</category>
<category>Thriller-Comedy</category> <category>USA 2009</category>
Your EPG shows as category: Your EPG shows as category:
"USA 2009" "Thriller-Comedy"
Usage of SwapCat - interactively or automated with command line parameters:
'SwapCat.exe': starts the interactive SwapCat (supports analyzing a source)
'SwapCat.exe <guide source xml file> <swapped target guide xml file>': automated run: swaps the order into a newly created guide xml file, switches to interactivity on error
'SwapCat.exe <guide source xml file> <swapped target guide xml file> <log file>': automated run: swaps the order into a newly created guide xml file, writes log file but exits on error
Details are described in the package. Interaqctive run, automated run with error detection, unconditional automated rn with log creation... see it in the package.
If you have any questions or suggestions, please post them here.
Kind regards - Christoph
Kind regards from Switzerland - Christoph
Last edited: