hoersuppe / doc

Documentation of the hoersuppe.de API
http://hoersuppe.de/
1 stars 0 forks source link

An einigen Stellen antwortet die API mit einer falschen Webchat Url #2

Open funkenstrahlen opened 8 years ago

funkenstrahlen commented 8 years ago

Die Webchat Url ist manchmal falsch, d.h. es ist keine Webchat Url.

luto commented 8 years ago

Hast du ein Beispiel dazu?

On November 18, 2015 9:48:05 AM EST, Stefan Trauth notifications@github.com wrote:

Die Webchat Url ist manchmal falsch, d.h. es ist keine Webchat Url.


Reply to this email directly or view it on GitHub: https://github.com/hoersuppe/doc/issues/2

funkenstrahlen commented 8 years ago

Ich muss das nochmal raussuchen, aber liefere ich nach.

funkenstrahlen commented 8 years ago

Einmal der Geektalk:

http "http://hoersuppe.de/api/?action=getPodcastData&podcast=geektalk"                 
HTTP/1.1 200 OK
Cache-Control: max-age=604800
Connection: keep-alive, Keep-Alive
Content-Encoding: gzip
Content-Length: 671
Content-Type: application/json
Date: Wed, 25 Nov 2015 09:22:43 GMT
Expires: Wed, 02 Dec 2015 09:22:43 GMT
Keep-Alive: timeout=2, max=10
Link: <http://hoersuppe.de/?p=43845>; rel=shortlink
Server: Apache/2.2.22 (Debian)
Vary: Accept-Encoding,User-Agent
X-Pingback: http://hoersuppe.de/xmlrpc.php
X-Powered-By: PHP/5.4.45-0+deb7u2

{
    "data": {
        "ID": 31451, 
        "adn": "", 
        "adnbroadcast": "52675", 
        "alternates": [], 
        "chat_channel": "", 
        "chat_server": "", 
        "chat_url": "", 
        "cluster": "", 
        "contact": {
            "email": "martin.rechsteiner@mac.com", 
            "twitter": "geektalk_ch"
        }, 
        "description": "#GeekTalk - der europäische Tech-Podcast\nGeeks aus der Schweiz und Deutschland unterhalten sich über aktuelle Themen rund um Technik, Web und Gadgets. \nUnser Team könnt ihr auf unserem Blog einsehen www.GeekTalk.ch/team\n\nDer GeekTalk ist ein Podcast Projekt vom @pokipsie Network", 
        "feature": "0", 
        "featureimageurl": "/feature/cache/geektalk.jpg", 
        "featuretext": "", 
        "feedurl": "http://geektalk.ch/feed/podcast/", 
        "flattrid": "geektalk_ch", 
        "freeze": "1", 
        "imageurl": "http://www.geektalk.ch/logo/geektalk.png", 
        "mzcat": "Technik", 
        "obsolete": "", 
        "otitle": "#GeekTalk Podcast", 
        "payment": "https://flattr.com/submit/auto?user_id=geektalk_ch&popout=1&url=http%3A%2F%2Fgeektalk.ch%2F&language=de_DE&category=text&title=%23GeekTalk+Podcast&description=Geeks+und+ihre+Welt+im+Podcast&tags=blog", 
        "rec_neg": "", 
        "rec_pos": "", 
        "recension": "", 
        "rundfunk": "", 
        "slug": "geektalk", 
        "subtitle": "", 
        "thumburl": "/feature/cache/thumbs/geektalk.png", 
        "title": "Geektalk", 
        "url": "http://geektalk.ch"
    }, 
    "msg": "ok", 
    "status": 1
}

Die Brüllaffen Couch:

http "http://hoersuppe.de/api/?action=getPodcastData&podcast=brullaffen"        
HTTP/1.1 200 OK
Cache-Control: max-age=604800
Connection: keep-alive, Keep-Alive
Content-Encoding: gzip
Content-Length: 768
Content-Type: application/json
Date: Wed, 25 Nov 2015 09:24:31 GMT
Expires: Wed, 02 Dec 2015 09:24:31 GMT
Keep-Alive: timeout=2, max=10
Link: <http://hoersuppe.de/?p=43845>; rel=shortlink
Server: Apache/2.2.22 (Debian)
Vary: Accept-Encoding,User-Agent
X-Pingback: http://hoersuppe.de/xmlrpc.php
X-Powered-By: PHP/5.4.45-0+deb7u2

{
    "data": {
        "ID": 2067, 
        "adnbroadcast": "35385", 
        "alternates": {
            "m4a": "http://www.bruellaffencouch.de/feed/m4a/"
        }, 
        "chat_channel": "#bruellaffencouch", 
        "chat_server": "irc.freenode.org", 
        "chat_url": "irc://irc.freenode.org/#bruellaffencouch", 
        "cluster": "", 
        "contact": {
            "adn": "germanstudent", 
            "email": "podcast@bruellaffencouch.de", 
            "twitter": "bruellaffen"
        }, 
        "description": "Die Unterhaltungsgala frisch von der Couch im Urwald. Ein Potpourri unterschiedlicher Themen wird dem Hörer von bis zu fünf Brüllaffen dargeboten.", 
        "feature": "0", 
        "featureimageurl": "/feature/cache/brullaffen.jpg", 
        "featuretext": "", 
        "feedurl": "http://www.bruellaffencouch.de/feed/podcast/", 
        "flattrid": "germanstudent", 
        "freeze": "", 
        "imageurl": "http://www.bruellaffencouch.de/wp-content/cache/podlove/dc/ae64074786681fd397df0b954b76c5/bruellaffencouch_original.png", 
        "mzcat": "", 
        "obsolete": "", 
        "otitle": "Brüllaffencouch (mp3)", 
        "payment": "https://flattr.com/submit/auto?user_id=germanstudent&language=de_DE&url=http%3A%2F%2Fwww.bruellaffencouch.de&title=Br%C3%BCllaffencouch&description=Die+Br%C3%BCllaffen+sind+wieder+los", 
        "rec_neg": "Studioqualität? Neee... Eh! Es ist aus'm Dschungel!", 
        "rec_pos": "Locker vom Sofa herunter und in den Dschungel. Vertexteter Alltag und hin und wieder Ungewöhnliches.", 
        "recension": "", 
        "rundfunk": "", 
        "slug": "brullaffen", 
        "subtitle": "Die Brüllaffen sind wieder los", 
        "thumburl": "/feature/cache/thumbs/brullaffen.png", 
        "title": "Brüllaffencouch", 
        "url": "http://www.bruellaffencouch.de"
    }, 
    "msg": "ok", 
    "status": 1
}

in chat_url steht beides Mal keine ordentliche webchat url, sondern der IRC link. Das sollte nicht so sein, denke ich.