You are here

Updated vodafone.de.ini to get <sub-title>

6 posts / 0 new
Last post
sualfred
Offline
Joined: 6 years
Last seen: 5 years
Updated vodafone.de.ini to get <sub-title>

Sorry if this is the wrong board section but I couldn't find the correct place to upload my small fix.

With the attached ini it's possible to get the short description of vodafone.de

@Blackbear199

I guess you just forgot it.

 

 

Attachments: 
sualfred
Offline
Joined: 6 years
Last seen: 5 years

Your ini, your decision :) I'll fetch all short data for my needs. I use Kodi as frontend and TV Headend as backend and I like that movies and other shows also get informations for this info value. 

sualfred
Offline
Joined: 6 years
Last seen: 5 years

Makes sense to add it to the description and I agree with you.

I'm a skin developer and my skin benefits if it's also in the subtitle. So I just leave it as it is for my personal use. As I said, it's up to you :) Just wanted to point you that the short description was missing.

By the way:

If you are using TV Headend as backend for Kodi -> Here are the correct category values to get the genres and color codes. 

category.modify {replace(type=regex)|"^Special Interest/Sonstige$"|magazines/reports/documentary}
category.modify {replace(type=regex)|"^Serie/Sonstige$"|show/game show}
category.modify {replace(type=regex)|"^Unterhaltung/Sonstige$"|variety show}
category.modify {replace(type=regex)|"^Unterhaltung/Talkshow$"|talk show}
category.modify {replace(type=regex)|"^Themen/Bildung$"|education/science/factual topics}
category.modify {replace(type=regex)|"^Unterhaltung/Shows$"|variety show}
category.modify {replace(type=regex)|"^Unterhaltung/Kochen$"|cooking}
category.modify {replace(type=regex)|"^Serie/Drama$"|movie/drama}
category.modify {replace(type=regex)|"^Serie/Action$"|adventure/western/war}
category.modify {replace(type=regex)|"^Serie/Krimi$"|detective/thriller}
category.modify {replace(type=regex)|"^Spielfilm/Action$"|adventure/western/war}
category.modify {replace(type=regex)|"^Spielfilm/Thriller$"|detective/thriller}
category.modify {replace(type=regex)|"^Spielfilm/Kriegsfilme$"|adventure/western/war}
category.modify {replace(type=regex)|"^Spielfilm/Krimi$"|detective/thriller}
category.modify {replace(type=regex)|"^Themen/Reise$"|tourism/travel}
category.modify {replace(type=regex)|"^Spielfilm/Sonstige$"|movie/drama}
category.modify {replace(type=regex)|"^Spielfilm/Comedy$"|comedy}
category.modify {replace(type=regex)|"^Spielfilm/Abenteuer$"|adventure/western/war}
category.modify {replace(type=regex)|"^Spielfilm/Drama$"|movie/drama}
category.modify {replace(type=regex)|"^Spielfilm/Romantik$"|romance}
category.modify {replace(type=regex)|"^Nachrichten/Info/Politik$"|news/current affairs}
category.modify {replace(type=regex)|"^Nachrichten/Info/Sonstige$"|news/current affairs}
category.modify {replace(type=regex)|"^Nachrichten/Info/Dokumentation$"|documentary}
category.modify {replace(type=regex)|"^Themen/Geschichte$"|education/science/factual topics}
category.modify {replace(type=regex)|"^Themen/Natur$"|nature/animals/environment}
category.modify {replace(type=regex)|"^Sport/Reportage$"|sports}
category.modify {replace(type=regex)|"^Themen/Wissenschaft$"|technology/natural sciences}
category.modify {replace(type=regex)|"^Nachrichten/Info/Wetter$"|news/weather report}
category.modify {replace(type=regex)|"^Themen/Religion$"|religion}
category.modify {replace(type=regex)|"^Musik/Sonstige$"|music/ballet/dance}
category.modify {replace(type=regex)|"^Spielfilm/Fantasy$"|science fiction/fantasy/horror}
category.modify {replace(type=regex)|"^Kinder/Jugend/Serien$"|children's/youth programmes}
category.modify {replace(type=regex)|"^Unterhaltung/Kunst und Handwerk$"|leisure hobbies}
category.modify {replace(type=regex)|"^Serie/Comedy$"|comedy}
category.modify {replace(type=regex)|"^Unterhaltung/Comedy$"|comedy}
category.modify {replace(type=regex)|"^Sport/Motorsport$"|motor sport}
category.modify {replace(type=regex)|"^Nachrichten/Info/Magazin$"|news magazine}
category.modify {replace(type=regex)|"^Nachrichten/Info/Finanzen$"|news magazine}
category.modify {replace(type=regex)|"^Unterhaltung/Reality$"|variety show}
category.modify {replace(type=regex)|"^Serie/Soap$"|soap/melodrama/folkloric}
category.modify {replace(type=regex)|"^Unterhaltung/Haus&amp;Garten$"|gardening}
category.modify {replace(type=regex)|"^Themen/Gesundheit$"|fitness and health}
category.modify {replace(type=regex)|"^Sport/Sonstige$"|sports}
category.modify {replace(type=regex)|"^Spielfilm/Science fiction$"|science fiction/fantasy/horror}
category.modify {replace(type=regex)|"^Musik/Oper$"|musical/opera}
category.modify {replace(type=regex)|"^Musik/Musical$"|musical/opera}
category.modify {replace(type=regex)|"^Serie/Science fiction$"|science fiction/fantasy/horror}
category.modify {replace(type=regex)|"^Unterhaltung/Game$"|show/game show}
category.modify {replace(type=regex)|"^Sport/Wassersport$"|water sport}
category.modify {replace(type=regex)|"^Erotik/Serie-Erotik$"|adult movie/drama}
category.modify {replace(type=regex)|"^Erotik/Spielfilm-Erotik$"|adult movie/drama}
category.modify {replace(type=regex)|"^Serie/Romantik$"|romance}
category.modify {replace(type=regex)|"^Kinder/Jugend/Show$"|children's/youth programmes}
category.modify {replace(type=regex)|"^Spielfilm/Zeichentrick$"|cartoons/puppets}
category.modify {replace(type=regex)|"^Spielfilm/Musical$"|musical/opera}
category.modify {replace(type=regex)|"^Sport/Wintersport$"|winter sports}
category.modify {replace(type=regex)|"^Nachrichten/Info/Sonstiges$"|news/current affairs}

sualfred
Offline
Joined: 6 years
Last seen: 5 years

@blackbear199

Today I've noticed a lot of those error messages:

---
Unable to update channel Sky Cinema Comedy
Generic syntax exception:
   message: 
no index page data received from Sky Cinema Comedy
unable to update channel, try again later
Existing guide data restored!
----

They are completely random on each run. Sometimes a channe works, sometimes not.  I've tried to adjust the <retry> in my config but it doesn't change anything. 
Is this a problem at Vodafone or is it possible to change something in the vodafone.de.ini?

sualfred
Offline
Joined: 6 years
Last seen: 5 years

I thought so. It was running perfectly  the last couple of days. Let's hope for a better tomorrow :)

Sadly wg++ doesn't try it again by itself.

 

sualfred
Offline
Joined: 6 years
Last seen: 5 years

Still facing the 250 error issue. 

I solved it by using a small self hosted JSON wrapper.

 

<?php

 

$startdate = $_GET['startdate'];

$enddate = $_GET['enddate'];

$channel = $_GET['channel'];

 

function getJSONfromSite($channel, $startdate, $enddate) {

        $json = file_get_contents('https://tv-manager.vodafone.de/tv-manager/backend/auth-service/proxy/epg...'.$channel.'/'.$startdate.'T00:00:00/'.$enddate.'T23:59:00');

        if (strstr($json, 'Error-Page')) {

                return false;

        }

        return $json;

}

 

$maxtries = 10;

$i = 0;

while (true) {

        $json = getJSONfromSite($channel, $startdate, $enddate);

 

        if ($json) {

                header('Content-Type: application/json');

                echo $json;

                break;

        }

 

        $i++;

        if ($i >= $maxtries) {

                break;

}

}

   

and just changed the index url to something like this:

url_index{url|http://127.0.0.1/guide/wrapper.php?channel=|channel|&startdate=##start##&enddate=##stop##}

Just want to share my solution for the others :)

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