Xmltv-Enhancer

chriszero
Posts: 54
Joined: Fri Jan 07, 2011 5:21 pm
Location: Germany

Xmltv-Enhancer

Post by chriszero » Tue Jan 01, 2013 7:58 pm

Hi,

My Xmltv-Enhancer is a program to automatically preprocess and enhance xmltv files with additional information for TV-Series using the TheTvDB data.
You can add season numbering, description and a preview icon to the xmltv file.

It also can start your favorite xmltvgrabber via the included cron scheduler.

The program can run in console mode, just start it.
You can also install the enhancer as a windows service.
Open a cmd as admin -> "xmltenhancer install/uninstall" then "xmltvenhancer start" (just needed once)
You can control and configure the enhancer via a web-interface. Just call http://localhost:8123 to bring up the (very simple and ugly) web-interface.
If you want to access the web-interface from also from other computers, you must add an exception for port 8123 in your firewall.

I will setup a git-repo in near future.
The program is considered as an early beta.

...

At the moment the enhancer matches the series via a simple string.contains() case insensitive.
If you add a series with tvdbid 0, the enhancer will search for a match on TheTvDB.
For example: If you add "Star Trek" with ID "0" it will try to enhance all titles which contains "Start Trek"

edit 02012013:
Added a new version which supports a "climode". You have to configure the program via the webinterface. Or manualy edit the config XML (%ProgramData%\xmltvenhancer\)

Usage for climode: xmltvenhancer climode c:\input\file.xml c:\output\file.xml
Install service: xmltvenhancer install
Uninstall service: xmltvenhancer uninstall
Start/Stop service: xmltvenhancer start/stop
If the programm is not installed as service you can start it like normal

edit 06012013:
Bugfixes
Attachments
xmltvenhancer.0.2.1.repack.7z
beta 0.2.1
(891.95 KiB) Downloaded 952 times
Last edited by chriszero on Sun Jan 06, 2013 8:58 pm, edited 3 times in total.

Christoph21x
Posts: 1070
Joined: Wed Oct 19, 2011 9:39 am
Location: Berne / Switzerland

Re: Xmltv-Enhancer

Post by Christoph21x » Tue Jan 01, 2013 9:42 pm

Hi Chris

this sounds very interesting.
Is it also possible to have this run just once (not as a service) when a new XMLTV file is built by the grabber? Like a cmd?
"One must still have chaos within oneself, to give birth to a dancing star." (F. Nietzsche)

chriszero
Posts: 54
Joined: Fri Jan 07, 2011 5:21 pm
Location: Germany

Re: Xmltv-Enhancer

Post by chriszero » Tue Jan 01, 2013 10:58 pm

Hi,
at the moment the enhancer just watches a directory for a "new" file, processes it, and create a new one in the output directory.
It should be easy to add such kind of a command-line option.

I will write the documentation if I create the git.

Christoph21x
Posts: 1070
Joined: Wed Oct 19, 2011 9:39 am
Location: Berne / Switzerland

Re: Xmltv-Enhancer

Post by Christoph21x » Tue Jan 01, 2013 11:07 pm

Perfect, thanks.
And if you make it open source, I'd like to add the sources from my tool which changes the order of category entries (if more than one).
C#? Mine is C++ - I'm an old fart :D
"One must still have chaos within oneself, to give birth to a dancing star." (F. Nietzsche)

chriszero
Posts: 54
Joined: Fri Jan 07, 2011 5:21 pm
Location: Germany

Re: Xmltv-Enhancer

Post by chriszero » Tue Jan 01, 2013 11:18 pm

Just changing categories should be only a few lines of code.
Yes C#, because handling xml is just cool with linq ;)

chriszero
Posts: 54
Joined: Fri Jan 07, 2011 5:21 pm
Location: Germany

Re: Xmltv-Enhancer

Post by chriszero » Wed Jan 02, 2013 11:47 pm

Updated fist post.

providers
Posts: 132
Joined: Sat Jan 24, 2009 5:21 pm

Re: Xmltv-Enhancer

Post by providers » Fri Jan 04, 2013 3:17 pm

Great,
I need to test this.

Will your program support Movies later?

/Providers

providers
Posts: 132
Joined: Sat Jan 24, 2009 5:21 pm

Re: Xmltv-Enhancer

Post by providers » Fri Jan 04, 2013 3:29 pm

@chriszero

Do you have a log file anywhere?
When I start the enhancer as a windows service then the webinterface will only work for a short time
If I start the program direct then it will Crash (see picture)

Trying to run it on Win7 32bit

keep up the good work
/Providers
Attachments
error.jpg
error.jpg (141.9 KiB) Viewed 26430 times

sjeffrey
Posts: 93
Joined: Wed May 06, 2009 10:06 pm

Re: Xmltv-Enhancer

Post by sjeffrey » Fri Jan 04, 2013 7:25 pm

@providers
Looks like you aren't specifying any parameters when launching and the code probably expects at least a "install", "start"/"stop" or "climode".

@chriszero
I just download this myself and couldn't get it to work. Did you force compilation to x86? Not sure if that's the issue but here's my stack trace:

Code: Select all

onfiguration Result:
Success] Name XmltvEnhancer
Success] Description Xmltv Enhancer
Success] ServiceName XmltvEnhancer
opshelf v3.1.106.0, .NET Framework v4.0.30319.17929
opshelf.Hosts.StartHost Error: 0 : The service failed to start., System.InvalidOperationException: Cannot start service XmltvEnhancer on computer '.'. ---> Sys
em.ComponentModel.Win32Exception: The service did not respond to the start or control request in a timely fashion
  --- End of inner exception stack trace ---
  at System.ServiceProcess.ServiceController.Start(String[] args)
  at Topshelf.Runtime.Windows.WindowsHostEnvironment.StartService(String serviceName)
  at Topshelf.Hosts.StartHost.Run()
Just throwing it out there but it looks like what you are doing is very very similar to Guide Enhancer I am maintaining. If fact, it looks like you are using the exact same tools stack (Topshelf, Quartz, Nancy, Razor views...). I was putting in a bit of time during the holidays to add a simple GUI to help with the configuration and was going the direction of Nancy with Razor views. The only difference is you are using XmlTV as your source but the matching code and TVDB code would be the same. If you would be interested in merging your code with GE then let me know. If not, it's all good.

Steph

chriszero
Posts: 54
Joined: Fri Jan 07, 2011 5:21 pm
Location: Germany

Re: Xmltv-Enhancer

Post by chriszero » Sun Jan 06, 2013 7:16 pm

@providers
that should be fixed now. Just download the new one.
You will find logfiles and more in %programdata%\xmltvenhancer

@sjeffrey
I've created this app because the lack of GE couldn't enhance xmltv files directly.
Merging my code with yours should be definitely possible.
I can also help you with a web-GUI for GE. Such a web GUI for GE was already on my "to code list" ;)

You should switch GE to github, so I can fork it and send you an pull request :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests