You are here

Merge XMLTV include Actor Role element

9 posts / 0 new
Last post
Kick4U
Offline
Donator
Joined: 6 years
Last seen: 6 months
Merge XMLTV include Actor Role element

Hello,
I am using v5.1.0.0 on Windows and trying to merge xmltv files using merge-xmltv.ini

The original epg file has features that the original site-ini doesn't port over like actor role, date (sometimes in year format (1999) or day format (19991231), language, rating system and the star rating seems broken.

The epg file was sourced from Schedules Direct and here is an example of a programme. See attached zip file.

I managed to pull in the actor role, but my regex is wrong and thinks the role is the actor.

index_actor.scrub {regex||<actor role=\"([^\"]*)||}

Thanks!

Kick4U
Offline
Donator
Joined: 6 years
Last seen: 6 months

I found the issue with the star rating issue. It was missing a seperator between 'ee' and 'be'.

index_starrating.scrub {single|||}

was changed to

index_starrating.scrub {single||||}

I also fixed the CHANNEL FILE CREATION too since my xmltv file had multiple display-name elements.

*** Please update the merge-xmltv with the attached file ***

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 2 days

Thanks ! Do you want to port actor role in merge or scrub from site ?

Kick4U
Offline
Donator
Joined: 6 years
Last seen: 6 months

The main issue is that the original xmltv has the actor role element, but the merge-xmltv site-ini is not keeping it and it is lost. I still need to clean up a few other things too and figure out why the language and a couple others (like audio) element isn't working.

I'm going to also figure out why having multiple display-name elements messes up the channel creation list.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 2 days

try with attached (replace the actor line in merge-xmltv.ini ). For multiple display name please post a sample with the guides

Attachments: 
Kick4U
Offline
Donator
Joined: 6 years
Last seen: 6 months

Hmmm... I tried to follow along and got what seemed to be close, but not figured it out. I'm attaching a zip file with the site-ini, config and xml file. I'm trying to pull in as much of the data as possible from movies like the "Bad News Bears".

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 2 days

you should have replaced the index_actor line with the txt i posted. Anyway check https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/master/site...
i also fixed few other things. For the language is a bit different, it should be added as lang=xxx at the end after a scrub with a temp (see index_rating), really i don't think is worth to do it as it is already taken from site line.
By the way the input file is done very bad and could create a mismatch of element information.

Attachments: 
Kick4U
Offline
Donator
Joined: 6 years
Last seen: 6 months

This is great! I used your work and added similar manipulation to grab the rating system when available. I'm uploading it for archiving sake and in case anyone runs into this too.

The channel creation is next and I'll hopefully have this figured out within a week or so...

Thank you for helping out!

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 2 days

You don't need all that, besides the rating system was already there see https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/master/site... on line 63,64,65.
Also index_temp_x are already in use, you cannot have twice the same index_temp, it will create a mess. Just use the regular merge-xmltv.ini from github.
What is the problem with channel list ?

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl