You are here

Format <credits>, is it possible?

15 posts / 0 new
Last post
gurabli
Offline
Joined: 9 years
Last seen: 5 years
Format <credits>, is it possible?

Hi!
First of all, congratulations on the excellent software! Your work is very impressive!
I have managed to get the EPG I need, and it looks correct. If you look at the sample I post here, you will see that <credits> part is in some cases filled with so many information, directors, actors, and each entry is a new line. It shows up in MediaPortal EPG as a new line, so it is basically unusable.
Is it possible to have Credits listed one after another, or perhaps to limit these two few entries?
Many thanks!
 
</channel>
  <programme start="20140513145000 +0200" stop="20140513153500 +0200" channel="m1">
    <title lang="hu">Szívtipró gimi</title>
    <sub-title lang="hu">(Hearthbreak High)(auszt. filmsor., 6. rész, 1994)</sub-title>
    <desc lang="hu">Feliratozva a Teletext 111. oldalán.Az aktuális rész ismertetője: Chaka zaklatott viselkedése aggodalommal tölti el Christinát, de a kislány barátai is értetlenül állnak zárkózott magatartása előtt. Makacs, kitartó kérdezősködésük hatására végül kiderül a féltve őrzött titok Chaka súlyos családi hátteréről. Diákok és tanárok egy emberként sietnek a bajba jutott kislány segítségére.A film ismertetése: A világszerte nagy sikert aratott ausztrál filmsorozat kifejezetten fiataloknak, tizenéves kamaszoknak készült. Ezt sugallja témaválasztása - egy ausztrál középiskola diákjainak és tanárainak mindennapjai a 90-es évekre mindenütt jellemző problémákkal, örömökkel, fáradhatatlan tempóval. Ezt sugallja a főszerepeket alakító fiatal és tehetséges színészek közreműködése. Évadok: 4 5 6(n)</desc>
    <credits>
      <director>Andrew Prowse</director>
      <director>Michael Jenkins</director>
      <actor>Sebastian Goldspink</actor>
      <actor>Ada Nicodemou</actor>
      <actor>Callan Mulvey</actor>
      <actor>Rel Hunt</actor>
      <actor>Rebecca Smart</actor>
      <actor>Denni Gordon</actor>
      <actor>Lara Cox</actor>
    </credits>
    <date>1994</date>
  </programme>
  <programme start="20140513153500 +0200" stop="20140513162500 +0200" channel="m1">
    <title lang="hu">Az élet megy tovább</title>
    <sub-title lang="hu">(A Vida da Gente)(brazil rom. sor., 14. rész, 2011)</sub-title>
    <desc lang="hu">Feliratozva a Teletext 111. oldalán.Az aktuális rész ismertetője: Juliát hazaengedik a kórházból, így Rodrigóval átmenetileg Celinához és Lorenzóhoz költöznek. Manu az anyjával folytatott vita után, Inához költözik, és magas lázzal ágynak esik. Anát sikerül teljesen stabilizálni, így kikerül az intenzív osztályról. Cris, Vivi segítéségével új stratégiát talál ki, hogyan vegye rá Jonás-t a mesterséges megtermékenyítésre...A film ismertetése: Ana ígéretes teniszező, aki édesanyjával Evával, nővérével Manuelával, mostohaapjával és annak két gyerekével Rodrigóval és Fernandával él egy fedél alatt. A tenisz teljesen kitölti mindennapjait, és mivel szigorú edzője nem ad neki szabadnapot, titokban megy el kirándulni a barátaival és Rodrigóval... Egyéb epizódok(n)</desc>
    <credits>
      <director>Leonardo Nogueira</director>
      <director>Jayme Monjardim</director>
      <director>Fabrício Mamberti</director>
      <director>Teresa Lampréia</director>
      <actor>Rafael Cardoso</actor>
      <actor>Marjorie Estiano</actor>
      <actor>Nicette Bruno</actor>
      <actor>Fernanda Vasconcellos</actor>
      <actor>Ana Beatriz Nogueira</actor>
      <actor>Paulo Betti</actor>
      <actor>Regiane Alves</actor>
      <producer>Jayme Monjardim</producer>
    </credits>
    <date>2011</date>
 

WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 11 years
Last seen: 5 hours
Is the support helpful?
support us

Hi gurabli,

 

it looks as if you did a great job! Which site is this? Can you include the siteini next time? We may want to include it in the collection.

 

Your questions: What you ask is certainly possible. But before I point you to the solutions, realise that the xmltv example you presented is perfect and fully according to the xmltv rules. It is very strange that MP has problems with it. I suspect that there is something wrong with the setup of the MP xmltv importer, also because there are a lot of other MP users using WG++ and this problem is never reported before.

 

If you want the format of the credits despite that: First read chapter 4.6.1.3 'Multiple value elements and modify' and 4.6.1.4 of the manual

You can do :

If you want to reduce the number of credits;

actor.modify {remove(type=element)|2} * this only leaves the first two actors, the rest is removed

After that, if you wish you can merge the remaining actors in one actor element by replacing the element separator | by a comma/space combi, like this:

actor.modify {replace|\||, } * result <actor>Actor-1, Actor-2</actor>

 

(at this moment I am on the move and not able to verify the lines above, so forgive me if not perfect!!)

 

Jan

gurabli
Offline
Joined: 9 years
Last seen: 5 years

Hi Jan
thanky you for your reply and nice words regarding the grab! But it is completetely your credits as I have read the guides and used the files from you with some slight adjustments to fit my needs:)
It is the Hungary port.hu.ini from the download section that I have used! I see that there are some channels that no longer exists, and there are some new ones. I will try to update these when I will have some extra time, something I do not have lately:(
You were correct, it was MP's xmltv importer's fault that I have mixed results. However, I still find some data to be too long and will adjust the credits part usig your instructions! Will see what will it turn out.
Especially usefull will be the actor.modify command! I do have a new question: If you look at this line:
    <desc lang="hu">Feliratozva a Teletext 111. oldalán.Az aktuális rész ismertetője: Chaka zaklatott viselkedése aggodalommal tölti el Christinát, de a kislány barátai is értetlenül állnak zárkózott magatartása előtt. Makacs, kitartó kérdezősködésük hatására végül kiderül a féltve őrzött titok Chaka súlyos családi hátteréről. Diákok és tanárok egy emberként sietnek a bajba jutott kislány segítségére.A film ismertetése: A világszerte nagy sikert aratott ausztrál filmsorozat kifejezetten fiataloknak, tizenéves kamaszoknak készült. Ezt sugallja témaválasztása - egy ausztrál középiskola diákjainak és tanárainak mindennapjai a 90-es évekre mindenütt jellemző problémákkal, örömökkel, fáradhatatlan tempóval. Ezt sugallja a főszerepeket alakító fiatal és tehetséges színészek közreműködése. Évadok: 4 5 6(n)</desc>
You see that it starts with "Feliratozva a Teletext 111. oldalán." (meaning, subtitles on the page 111 of teletext). What do I need to add to remove this text from each entry, with the special remark that page numbers might be different, not always 111.
Many thanks!
 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 11 years
Last seen: 1 week
Is the support helpful?
support us

description.modify {remove(type=regex)|"Feliratozva a Teletext \d*\. oldalán\."}

should do the trick.

gurabli
Offline
Joined: 9 years
Last seen: 5 years

thanks Francis!
I added the line you suggested to port.hu.ini but I still get the teletext part, it is not removed.
description.modify {remove(type=regex)|"Feliratozva a Teletext \d*\. oldalán\."}
 
<programme start="20140514143500 +0200" stop="20140514152500 +0200" channel="m1">
    <title lang="hu">Szívtipró gimi</title>
    <sub-title lang="hu">(Hearthbreak High)(auszt. filmsor., 7. rész, 1994)</sub-title>
    <desc lang="hu">Feliratozva a Teletext 111. oldalán.Az aktuális rész ismertetője: A focicsapat - a kezdeti lelkesedést leszámítva - kevés sikerrel dicsekedhet, miközben egy újságíró látogatását Deloraine igazgató arra próbálja felhasználni, hogy nyilvánítsák az iskolát hátrányos helyzetunek. Ezzel szeretne több pénzügyi támogatást szerezni. A balul sikerült cikk nyomán a büszkeségükben megsértett diákok beneveznek egy vitaversenyre. A tét: önbecsülésük és jóhírük visszaszerzése.A film ismertetése: A világszerte nagy sikert aratott ausztrál filmsorozat kifejezetten fiataloknak, tizenéves kamaszoknak készült. Ezt sugallja témaválasztása - egy ausztrál középiskola diákjainak és tanárainak mindennapjai a 90-es évekre mindenütt jellemző problémákkal, örömökkel, fáradhatatlan tempóval. Ezt sugallja a főszerepeket alakító fiatal és tehetséges színészek közreműködése. Évadok: 4 5 6</desc>
    <credits>
      <director>Andrew Prowse,  Michael Jenkins</director>
      <actor>Sebastian Goldspink , Ada Nicodemou , Callan Mulvey , Rel Hunt , Rebecca Smart</actor>
    </credits>
    <date>1994</date>
  </programme>
 
What I am missing here?
 

WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 11 years
Last seen: 5 hours
Is the support helpful?
support us

Maybe you didn't use update="f" to force a (re)grab of the showdetails? (Else the old values of the desc will just be left untouched). If that isn't the problem add (debug) to the line Francis suggested , . That way you can see in the log what's missing. Like this:
description.modify {remove(debug type=regex)|"(Feliratozva a Teletext \d*\. oldalán\.)"}
(I also added () to the regex but it should also work without it as Francis suggests!)
 
Jan
 
 

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 11 years
Last seen: 1 week
Is the support helpful?
support us

Nothing wrong with the line.

Just tried, but got also strange behaviour.
Using
description.modify {remove(debug type=regex)|"Feliratozva a Teletext \d*\. oldalán\."}
Seems to work, if I may believe the logging. But when you look in the guide.xml, there are still traces of the text. Some are gone, some are still there. Tested with 1.1.1/53.16

I'll update the .ini on the site, because I have found an error in it as well. So just start from version 8 of the siteini.

So Jan, debug time I think ;-)

gurabli
Offline
Joined: 9 years
Last seen: 5 years

It works for some cases, but I still have the text in description.
I'm uploading the files, you can perhaps take a look at it, I do not get what could be wrong.
EDIT: Francis, you were faster:) Some entries are removed but other left, strange. Since I'm a n00b, it is way out of my scope:)

Attachments: 
WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 11 years
Last seen: 5 hours
Is the support helpful?
support us

Gurabli and Francis,

 

Gurabli, you are running a rather old version of WG++ according to your logfile (1.1.1/52.11) Upgrade to the latest beta please.

 

Francis: I am on the move untill coming sunday. I will look into it then. Con you add the logfile you got? Are you sure that there are no mismatching characters in the description wrt the regex? (I have seen sites using nonstandard 'white space' characters which look like spaces?. And things like that.)

 

Jan

gurabli
Offline
Joined: 9 years
Last seen: 5 years

OK, I will upgrade to the latest beta. I thought that using the latest non-beta version is the safest way.

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 11 years
Last seen: 1 week
Is the support helpful?
support us
WGMaker wrote:

Francis: I am on the move untill coming sunday. I will look into it then. Con you add the logfile you got? Are you sure that there are no mismatching characters in the description wrt the regex? (I have seen sites using nonstandard 'white space' characters which look like spaces?. And things like that.)

 
No, nothing like that. Remove works good, but apparently, the result is not being written to the guide.xml, or something else is going wrong.
Attached all the files.

Attachments: 
WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 11 years
Last seen: 5 hours
Is the support helpful?
support us

I notice an index_description in the ini! Are you sure the teletext data that fails to be removed is not from this index_description?

Jan

WGMaker
Offline
WGMaker's picture
WG++ Team memberDonator
Joined: 11 years
Last seen: 5 hours
Is the support helpful?
support us

Hi,

 

being back home , I was finally able to check the isue of why the teletext data was only partly removed. As I already suspected the remaining teletext sentence orginated indeed from the index_description! The problem is solved  by adding:

index_description.modify {remove(type=regex)|"Feliratozva a Teletext \d*\. oldalán\."}

and

description.modify {remove(type=regex)|"Feliratozva a Teletext \d*\. oldalán\."}

Jan

gurabli
Offline
Joined: 9 years
Last seen: 5 years

Hi Jan,
excellent and many thanks! I will try this out and post here the results!

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 11 years
Last seen: 1 week
Is the support helpful?
support us
schumi2004 wrote:

I have read manual but it's unclear how to accomplish what i want.

I want to remove all credits for tvgids.nl.ini, for some reason Kodi/XBMC can't handle this so i would like to remove it but don't know how.

Any tips?

Strange that Kodi, can't handle this.

Well, you can't just remove the credits in one go. But you can remove alle elements that can be a part of the credits.

For the tvgids.nl, just add next at the end of the file.

director.modify {clear}
actor.modify {clear}
presenter.modify {clear}
writer.modify {clear}

(Niets meer, en ook niets minder wink)

 

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