home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
General Forums
Newcomers Forum
EPG Genre Mapping
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RonD" data-source="post: 1055002" data-attributes="member: 117536"><p>To answer the original question, you can use any text mangling/modifying scripting language you feel comfortable using to modify tvguide.xml file.</p><p></p><p>During Saturday's NFL playoffs I wrote the attached quick/dirty vbs script. For "Sports" I added special cases for a number of Sports like Football, Basketball, etc. You can add more sports by tweaking the script. For movies I forced Movies to have priority over Drama, Action, etc. This works for my purposes, but I'm not 100% happy with how it handles Movies, Sports. I'd like to find a way to auto-detect different sub-categories so you don't need to tweak the script to add new sports and think about a better way to handle Movies. Not sure when I'll find time/energy to look into these enhancements. The script takes about 30 seconds to run on a 3 GHz i5-3450 system for a 34 MB tvguide.xml file with 122 channels, 53604 programs.</p><p></p><p>To run the vbs script I use a the following modified mc2xml.bat file. My TV Server has all the mc2xml files in my L: Drive in a "\MePo\xmltv" folder. You'll need to modify the Drive letter and paths to match your folders. The batch files has mc2xml write to the default mc2xml.xml, run the vbs script, then copy the output to tvguide.xml. I uploaded the getcat.vbs as getcat.txt, modify the extension to "vbs" to use the script.</p><p></p><p>EDIT: Jan 13-14, 2014</p><p>Uploaded a new getcat.txt file that should fix the character mapping error problems. You also need to modify the mc2xml.bat file use the new getcat.vbs script. Also added Soccer and Golf as categories. Fixed file create/update problem in vbs script.</p><p></p><p>If you want to set category priority you can add more categories to the vbs script. Look for the comment that starts with "check if saved = "good" catergory" bear the end. Add more IfElse as needed, highest priority are at the start of the "ifs".</p><p></p><p>*** start of batch file to run getcat.vbs</p><p>L:</p><p>cd "\MePo\xmltv"</p><p>mc2xml.exe</p><p>cscript //NoLogo getcat.vbs L:\MePo\xmltv\xmltv.xml L:\MePo\xmltv\xmltvtmp.xml</p><p>copy /Y L:\MePo\xmltv\xmltvtmp.xml L:\MePo\xmltv\tvguide.xml</p></blockquote><p></p>
[QUOTE="RonD, post: 1055002, member: 117536"] To answer the original question, you can use any text mangling/modifying scripting language you feel comfortable using to modify tvguide.xml file. During Saturday's NFL playoffs I wrote the attached quick/dirty vbs script. For "Sports" I added special cases for a number of Sports like Football, Basketball, etc. You can add more sports by tweaking the script. For movies I forced Movies to have priority over Drama, Action, etc. This works for my purposes, but I'm not 100% happy with how it handles Movies, Sports. I'd like to find a way to auto-detect different sub-categories so you don't need to tweak the script to add new sports and think about a better way to handle Movies. Not sure when I'll find time/energy to look into these enhancements. The script takes about 30 seconds to run on a 3 GHz i5-3450 system for a 34 MB tvguide.xml file with 122 channels, 53604 programs. To run the vbs script I use a the following modified mc2xml.bat file. My TV Server has all the mc2xml files in my L: Drive in a "\MePo\xmltv" folder. You'll need to modify the Drive letter and paths to match your folders. The batch files has mc2xml write to the default mc2xml.xml, run the vbs script, then copy the output to tvguide.xml. I uploaded the getcat.vbs as getcat.txt, modify the extension to "vbs" to use the script. EDIT: Jan 13-14, 2014 Uploaded a new getcat.txt file that should fix the character mapping error problems. You also need to modify the mc2xml.bat file use the new getcat.vbs script. Also added Soccer and Golf as categories. Fixed file create/update problem in vbs script. If you want to set category priority you can add more categories to the vbs script. Look for the comment that starts with "check if saved = "good" catergory" bear the end. Add more IfElse as needed, highest priority are at the start of the "ifs". *** start of batch file to run getcat.vbs L: cd "\MePo\xmltv" mc2xml.exe cscript //NoLogo getcat.vbs L:\MePo\xmltv\xmltv.xml L:\MePo\xmltv\xmltvtmp.xml copy /Y L:\MePo\xmltv\xmltvtmp.xml L:\MePo\xmltv\tvguide.xml [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
Newcomers Forum
EPG Genre Mapping
Contact us
RSS
Top
Bottom