question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

filmon plugin broken not related to the url issue

See original GitHub issue

Plugin Issue

<Filmon plugin does not work anymore. Say channel sleep and then come up with an error.> - [ ] This is a plugin issue and I have read the contribution guidelines.

Description

Filmon plugin does not work anymore. Say channel sleep and then come up with an error. <Filmon plugin does not work anymore. Say channel sleep and then come up with an error. >

Reproduction steps / Explicit stream URLs to test

  1. streamlink http://www.filmon.com/tv/itv1 high --player-external-http --player-external-http-port 23555 --player-continuous-http -l debug

Log output

streamlink http://www.filmon.com/tv/itv1 high --player-external-http --player-external-http-port 23555 --player-continuous-http -l debug
[cli][info] streamlink is running as root! Be careful!
[cli][debug] OS:         Linux-4.15.0-99-generic-x86_64-with-Ubuntu-18.04-bionic
[cli][debug] Python:     3.6.9
[cli][debug] Streamlink: 1.4.1
[cli][debug] Requests(2.23.0), Socks(1.7.1), Websocket(0.57.0)
[cli][info] Found matching plugin filmon for URL http://www.filmon.com/tv/itv1
[plugin.filmon][debug] Found cached channel ID: 11
[plugin.filmon][debug] channel sleep 0
[plugin.filmon][debug] channel sleep 1
[plugin.filmon][debug] channel sleep 2
[plugin.filmon][debug] channel sleep 3
[plugin.filmon][debug] channel sleep 4
[plugin.filmon][debug] Reset cached channel: itv1
Traceback (most recent call last):
  File "/usr/local/bin/streamlink", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/streamlink_cli/main.py", line 1024, in main
    handle_url()
  File "/usr/local/lib/python3.6/dist-packages/streamlink_cli/main.py", line 585, in handle_url
    streams = fetch_streams(plugin)
  File "/usr/local/lib/python3.6/dist-packages/streamlink_cli/main.py", line 465, in fetch_streams
    sorting_excludes=args.stream_sorting_excludes)
  File "/usr/local/lib/python3.6/dist-packages/streamlink/plugin/plugin.py", line 323, in streams
    ostreams = list(ostreams)
  File "/usr/local/lib/python3.6/dist-packages/streamlink/plugins/filmon.py", line 245, in _get_streams
    data = self.api.channel(_id)
  File "/usr/local/lib/python3.6/dist-packages/streamlink/plugins/filmon.py", line 161, in channel
    return self.session.http.json(res, schema=self.api_schema)
UnboundLocalError: local variable 'res' referenced before assignment```


### Additional comments, screenshots, etc.
on stream link 1.3.1 i get this error looks like they may of changed the api.
jamie@jamie-Lenovo-Yoga-500-15IHW:~$ streamlink https://www.filmon.com/channel/itv1 low --player-external-http --player-external-http-port 23555 --player-continuous-http -l debug
[cli][debug] OS:         Linux-4.15.0-20-generic-x86_64-with-debian-buster-sid
[cli][debug] Python:     3.7.1
[cli][debug] Streamlink: 1.3.1
[cli][debug] Requests(2.21.0), Socks(1.6.7), Websocket(0.57.0)
[cli][info] Found matching plugin filmon for URL https://www.filmon.com/channel/itv1
[plugin.filmon][debug] Found channel ID: 11
[plugin.filmon][debug] Reset cached channel: itv1
error: Unable to open URL: http://www.filmon.com/api-v2/channel/11?protocol=hls (504 Server Error: Gateway Time-out for url: http://www.filmon.com/api-v2/channel/11?protocol=hls)
jamie@jamie-Lenovo-Yoga-500-15IHW:~$ 


[Love Streamlink? Please consider supporting our collective. Thanks!](https://opencollective.com/streamlink/donate)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jamiejacksoncumbriacommented, May 13, 2020

I can confirm all seems to be working again. Seems it must of been an issue from filmon’s side. This bug should be closed. It’s not a bug any more.

On Wed, 13 May 2020 at 21:04, Ian Cameron notifications@github.com wrote:

I think FilmOn may have fixed whatever it was that broke. I’ve tried a few channels and it seems all is working again. Is it working for any of you now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/streamlink/streamlink/issues/2966#issuecomment-628155293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIE6P73FWCJV3II5Y5AIBWTRRLOMHANCNFSM4M5ZXPEQ .

1reaction
mkblokecommented, May 13, 2020

I think FilmOn may have fixed whatever it was that was broken. I’ve tried a few channels and it seems all is working again. Is it working again for any of you now?

Edited to add: I didn’t mention this previously, but I emailed their support yesterday about the gateway time-outs. I have not received any further emails or notifications, but having just logged into the support website, I note the ticket has been closed and marked as resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PVR is Broken - FILMON API CHANGES - KODI Forum
I've looked into the FilmonAPI.cpp file that is part of this PVR. I've established that the login fault is due to issues with...
Read more >
Website URL is broken or have issue - WordPress.org
When opening the URL http://www.horseconcept.design …that message appears> There has been a critical error on this website. Learn more about…
Read more >
Plugins - Streamlink 5.1.2 documentation
Plugins #. This is a list of the currently built-in plugins and what URLs and features they support. Streamlink's primary focus is live...
Read more >
Plex subtitles not working
Plex plugins not working?2022. g. Still the subtitles do0 not appear. – 이렇게 하면 I have an Odroid xu4 (8-core ARM device) running...
Read more >
WordPress Permalinks Not Working: How to Fix Broken Links
Various causes may trigger broken permalinks on your website. New plugin installation. The new plugins you install may interfere with your .htaccess file....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found