Re: Twitch.tv/Justin.tv
Can you please add license information to the script? This would help when packaging this script for Linux.
matey wrote:Hello,
I followed everything - updated ffmpeg, installed the plugin, added online source. On my TV everything shows - all qualities. However, when I try to play source it loads a few sec and it says "File was not found". When I try high quality it loads fine. Any ideas why source is not loading ?
omgfrost wrote:Hello,
i've been testing this plugin the whole day and it has been working since 6pm CEST time. After that it freezes and twitch videos was no longer playable. I don't know but maybe the plugin connects to the twitch.tv/hls/USERNAME that in those hours might be blocked.
I found a workaround tho,
you can setup serviio console as it supposed to be set by adding web sources and twitch channel addresses like normally you do, but whenever it won't anymore playable (i'm using sony bravia media server) you still can access the serviio via smartphone with somekind of DLNA app (i'm using ANDLNA), once you are there you can start playing the channel you want and then connect your smartphone via wifi with some kind of screen mirror app (i got samsung s6 and i can just use embed screen mirroring app) but you can also find any kind of same app in google play. Also install VLC app in your smartphone to playback the source from your smartphone after accessing serviio via ANDlna or something.
I know you can just install twitch app and screen mirror it but the fact is that the phone will consume more battery, instead with vlc playing the stream, the screen will stay kinda black with just VLC logo and the stream will still be playing in your smart TV! That's might be a workaround and also a battery saving power. (For ex: if you charging you battery while twitch app is always displayable this will take lot of time by fully charge your phone, on the other hand, with serviio, ANDlna and VLC and so with the screen mostly black, the phone will charge faster and you still can enjoy the stream in your TV.
Hope this will help in the meantime there will be a proper fix for "those hours" which seems twitch.tv kinda blocking playback directly via smart tv (at least it did today post 6pm when before then it run for 6 hours flawlessly!)
Enjoy!
andreyv wrote:Can you please add license information to the script? This would help when packaging this script for Linux.
jules wrote:i don't much care about what happens to this code since to me, it is strictly a convenience script without much pride or anything involved, so i would consider LGPL as a contender since that probably offers best compatibility with serviio. just out of curiosity, why would this script (which really only works linked against serviio libraries) ever be bundled with a linux install?andreyv wrote:Can you please add license information to the script? This would help when packaging this script for Linux.
andreyv wrote:This script can be packaged just like any other software. The resulting package would depend on the serviio package to function.
andreyv wrote:Or did you mean that this script needs patched ffmpeg and will therefore not work on a default install?
bloodilo wrote:Hi All! Does this plugin work with Serviio 1.8 installed on Synology DSM 6?
2018-09-25 15:53:41,939 WARN [FeedUpdaterWorker] An error occured while parsing the online resource https://go.twitch.tv/cohhcarnage, will try again soon: Unexpected error while invoking plugin (twitch.tv): Server returned HTTP response code: 400 for URL: http://usher.twitch.tv/api/channel/hls/cohhcarnage.m3u8?sig=5cfc58de7d5c12d820b897455d8344dfcd1ee243&token={"adblock":false,"authorization":{"forbidden":false,"reason":""},"blackout_enabled":false,"channel":"cohhcarnage","channel_id":26610234,"chansub":{"restricted_bitrates":[],"view_until":1924905600},"ci_gb":false,"geoblock_reason":"","device_id":null,"expires":1537884821,"game":"The Bard's Tale IV","hide_ads":false,"https_required":false,"mature":false,"partner":false,"platform":null,"player_type":null,"private":{"allowed_to_view":true},"privileged":false,"server_ads":false,"show_ads":true,"subscriber":false,"turbo":false,"user_id":null,"user_ip":"XX.70.243.XXX","version":2}&allow_source=true
org.serviio.library.online.metadata.OnlineResourceParseException: Unexpected error while invoking plugin (twitch.tv): Server returned HTTP response code: 400 for URL: http://usher.twitch.tv/api/channel/hls/cohhcarnage.m3u8?sig=5cfc58de7d5c12d820b897455d8344dfcd1ee243&token={"adblock":false,"authorization":{"forbidden":false,"reason":""},"blackout_enabled":false,"channel":"cohhcarnage","channel_id":26610234,"chansub":{"restricted_bitrates":[],"view_until":1924905600},"ci_gb":false,"geoblock_reason":"","device_id":null,"expires":1537884821,"game":"The Bard's Tale IV","hide_ads":false,"https_required":false,"mature":false,"partner":false,"platform":null,"player_type":null,"private":{"allowed_to_view":true},"privileged":false,"server_ads":false,"show_ads":true,"subscriber":false,"turbo":false,"user_id":null,"user_ip":"XX.70.243.XXX","version":2}&allow_source=true
at org.serviio.library.online.WebResourceParser.parse(WebResourceParser.java:79)
at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:187)
at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:207)
at org.serviio.library.online.metadata.FeedUpdaterWorker.getOnlineItems(FeedUpdaterWorker.java:194)
at org.serviio.library.online.metadata.FeedUpdaterWorker.run(FeedUpdaterWorker.java:100)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://usher.twitch.tv/api/channel/hls/cohhcarnage.m3u8?sig=5cfc58de7d5c12d820b897455d8344dfcd1ee243&token={"adblock":false,"authorization":{"forbidden":false,"reason":""},"blackout_enabled":false,"channel":"cohhcarnage","channel_id":26610234,"chansub":{"restricted_bitrates":[],"view_until":1924905600},"ci_gb":false,"geoblock_reason":"","device_id":null,"expires":1537884821,"game":"The Bard's Tale IV","hide_ads":false,"https_required":false,"mature":false,"partner":false,"platform":null,"player_type":null,"private":{"allowed_to_view":true},"privileged":false,"server_ads":false,"show_ads":true,"subscriber":false,"turbo":false,"user_id":null,"user_ip":"XX.70.243.XXX","version":2}&allow_source=true
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.configuredInputStream(DefaultGroovyMethods.java:16692)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.newReader(DefaultGroovyMethods.java:16760)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.getText(DefaultGroovyMethods.java:15130)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.getText(DefaultGroovyMethods.java:15102)
at org.codehaus.groovy.runtime.dgm$375.doMethodInvoke(Unknown Source)
at org.codehaus.groovy.reflection.GeneratedMetaMethod$Proxy.doMethodInvoke(GeneratedMetaMethod.java:70)
at groovy.lang.MetaClassImpl$GetBeanMethodMetaProperty.getProperty(MetaClassImpl.java:3465)
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:61)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
at Twitch.extractHlsStream(twitch.groovy:172)
at Twitch$extractHlsStream.callCurrent(Unknown Source)
at Twitch.extractItems(twitch.groovy:91)
at org.serviio.library.online.WebResourceUrlExtractor.extractItems(WebResourceUrlExtractor.java:72)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:34)
at org.serviio.library.online.WebResourceUrlExtractor$1.executePluginMethod(WebResourceUrlExtractor.java:31)
at org.serviio.library.online.PluginExecutionProcessor$1.call(PluginExecutionProcessor.java:50)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
slatanic wrote:Hi
Same problem here
EDIT:
I think i have found a solution:
Try to change line 172 in twitch.groovy from:
to
Users browsing this forum: No registered users and 2 guests