Hej,
Nu finns en första full version av SRPlay baserat på SRs nya API v2.
Det finns dock vissa begränsningar.
1. Program som finns i sändningsarkivet kräver en fix i plex klienten eftersom vissa program består av två delar. Jag har submittat patchen till Plex men den väntar på att bli godkänd.
2. SRs stödjer inte att man spolar i program som ligger i sändningsarkivet (inte i alla med den metod som är implementerad i Plex).
Annars funkar allt annat, live radio, podcasts och sändningsarkiv (med de begränsningar som jag beskrev ovan).
Prova gärna och hör av er om det ni har några problem eller förslag på förbättringar.
https://github.com/henriksp/SRPlay.bundle
/Henrik
Bra jobbat.
Dock så ser det ut som att både sändningsarkivet och podarkivet har slutat fungera.
Sändningsarkiv:
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - Request: GET /photo/:/transcode?url=http%3A%2F%2Fsverigesradio.se%2Fdiverse%2Fappdata%2Fisidor%2Fimages%2Fnews_images%2F2519%2F2872577_512_512.jpg&width=40&height=40&X-Plex-Token=abc [192.168.1.11:61658] (3 live)
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - * url => http://sverigesradio.se/diverse/appdata/isidor/images/news_images/2519/2872577_512_512.jpg
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - * width => 40
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - * height => 40
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - * X-Plex-Token => abc
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - We found auth token (abc), enabling token-based authentication.
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - Came in with a super-token, authorization succeeded.
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - Photo transcoder: Request for url [sverigesradio.se/diverse/appdata/isidor/images/news_images/2519/2872577_512_512.jpg] (is local: 0 upscaled: 0)
Sep 29, 2013 13:05:26 [0xb10c1000] DEBUG - Content-Length of /Users/pyakex/Library/Caches/PlexMediaServer/PhotoTranscoder/ff/ff1631c33459098f4abb508bfb12934b4545ec09.jpg is 1210.
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - Request: GET /music/:/transcode/universal/start.mp3?path=http%3A%2F%2Fsverigesradio.se%2Fapi%2Fv2%2Fbroadcasts%3Fpagination%3Dfalse%26programid%3D2519&mediaIndex=0&partIndex=0&X-Plex-Token=abc&X-Plex-Client-Identifier=l2dfnq5ijft7qfr&X-Plex-Username=abc&X-Plex-Product=Web%20Client&X-Plex-Device=Mac&X-Plex-Platform=Chrome&X-Plex-Platform-Version=29&X-Plex-Version=1.2.12&X-Plex-Device-Name=Plex%2FWeb%20(Chrome) [192.168.1.11:61659] (3 live)
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * path => http://sverigesradio.se/api/v2/broadcasts?pagination=false&programid=2519
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * mediaIndex => 0
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * partIndex => 0
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Token => abc
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Client-Identifier => abc
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Username => abc
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Product => Web Client
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Device => Mac
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Platform => Chrome
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Platform-Version => 29
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Version => 1.2.12
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * X-Plex-Device-Name => Plex/Web (Chrome)
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - We found auth token (abc), enabling token-based authentication.
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - Came in with a super-token, authorization succeeded.
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - Request range: 0 to 0
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - * Cookie: SESSION-GUID=abc
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - Using profile Web
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - Downloading document http://sverigesradio.se/api/v2/broadcasts?pagination=false&programid=2519&X-Plex-Token=abc
Sep 29, 2013 13:05:26 [0xb0185000] DEBUG - HTTP requesting to: http://sverigesradio.se/api/v2/broadcasts?pagination=false&programid=2519&X-Plex-Token=abc
Sep 29, 2013 13:05:26 [0xb0185000] ERROR - downloadContainer: expected MediaContainer element, found sr
Sep 29, 2013 13:05:26 [0xb0185000] ERROR - [TranscodeUniversalRequest] Unable to get container: /api/v2/broadcasts?pagination=false&programid=2519&X-Plex-Token=abc
Sep 29, 2013 13:05:29 [0xb10c1000] DEBUG - Request: GET /clients [192.168.1.13:39214] (3 live)
Sep 29, 2013 13:05:29 [0xb10c1000] DEBUG - It took 0.000025 sec to serialize a list with 1 elements.
Podarkiv:
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - Request: GET /music/:/transcode/universal/start.mp3?path=http%3A%2F%2F127.0.0.1%3A32400%2Fapp%2Fsandning%2Fp3%5Bk(164)%5D%2Fp3%20dokument%C3%A4r%5Bp(2519)%5D%2Fhelikopterr%C3%A5net%5Bl(4594298)%5D&mediaIndex=0&partIndex=0&X-Plex-Token=abc&X-Plex-Client-Identifier=l2dfnq5ijft7qfr&X-Plex-Username=abc&X-Plex-Product=Web%20Client&X-Plex-Device=Mac&X-Plex-Platform=Chrome&X-Plex-Platform-Version=29&X-Plex-Version=1.2.12&X-Plex-Device-Name=Plex%2FWeb%20(Chrome) [192.168.1.11:61993] (4 live)
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * path => http://127.0.0.1:32400/app/sandning/p3[k(164)]/p3 dokumentär[p(2519)]/helikopterrånet[l(4594298)]
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * mediaIndex => 0
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * partIndex => 0
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Token => abc
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Client-Identifier => abc
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Username => abc
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Product => Web Client
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Device => Mac
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Platform => Chrome
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Platform-Version => 29
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Version => 1.2.12
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * X-Plex-Device-Name => Plex/Web (Chrome)
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - We found auth token (abc), enabling token-based authentication.
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - Came in with a super-token, authorization succeeded.
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - Request range: 0 to 0
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - * Cookie: SESSION-GUID=abc
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - Using profile Web
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - Downloading document http://127.0.0.1:32400/app/sandning/p3[k(164)]/p3 dokumentär[p(2519)]/helikopterrånet[l(4594298)]
Sep 29, 2013 13:54:12 [0xb0db5000] DEBUG - HTTP requesting to: http://127.0.0.1:32400/app/sandning/p3[k(164)]/p3 dokumentär[p(2519)]/helikopterrånet[l(4594298)]
Sep 29, 2013 13:54:12 [0xb040f000] ERROR - Error parsing HTTP request: GET /app/sandning/p3[k(164)]/p3 dokumentär[p(2519)]/helikopterrånet[l(4594298)] HTTP/1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2b4) Gecko/20091124 Firefox/3.6b4 (.NET CLR 3.5.30729)
Host: 127.0.0.1:32400
Accept: */*
X-Plex-Token: abc
X-Plex-Client-Capabilities: protocols=http-streaming-video;videoDecoders=h264{profile:high&resolution:1080&level:41};audioDecoders=aac
Sep 29, 2013 13:54:12 [0xb0db5000] ERROR - downloadContainer: expected MediaContainer element, found html
Sep 29, 2013 13:54:12 [0xb0db5000] ERROR - [TranscodeUniversalRequest] Unable to get container: http://127.0.0.1:32400/app/sandning/p3[k(164)]/p3 dokumentär[p(2519)]/helikopterrånet[l(4594298)]
Försökte se om jag kunde göra en fix själv, men är helt oinsatt i Plex så det blev inget med det.