Skip to content

Conversation

@bastimeyer
Copy link
Member

  • Rewrite FilmOnHLS{,Worker}
    • Override fetching logic of HLSStreamWorker._fetch_playlist
    • Rewrite playlist URL refresh logic and move everything to the
      FilmOnHLSStream.url property
  • Clean up FilmOnAPI and schemas
  • Clean up FilmOn plugin class
    • Move http adapter definitions to constructor
    • Set hls-playlist-reload-time to "segment"
    • Clean up _get_streams
  • Fix tests

No idea why the channel ID caching was implemented, but I kept it.

Reducing the HLS playlist reload time seemed to be necessary to not cause any issues when updating the playlist URL. Otherwise, segments were missing sometimes, leading to discontinuities in the stream. This could still be the case though, not sure, but it's an improvement compared to the old implementation.

Also not sure how relevant the 403 and 502 status code exception handling still is. At least it doesn't check the exception message anymore.

- Rewrite FilmOnHLS{,Worker}
  - Override fetching logic of HLSStreamWorker._fetch_playlist
  - Rewrite playlist URL refresh logic and move everything to the
    FilmOnHLSStream.url property
- Clean up FilmOnAPI and schemas
- Clean up FilmOn plugin class
  - Move http adapter definitions to constructor
  - Set hls-playlist-reload-time to "segment"
  - Clean up _get_streams
- Fix tests
@gravyboat gravyboat merged commit 68e6017 into streamlink:master Jun 5, 2022
@bastimeyer bastimeyer deleted the plugin/filmon/rewrite branch June 5, 2022 19:22
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Jun 7, 2022
- Rewrite FilmOnHLS{,Worker}
  - Override fetching logic of HLSStreamWorker._fetch_playlist
  - Rewrite playlist URL refresh logic and move everything to the
    FilmOnHLSStream.url property
- Clean up FilmOnAPI and schemas
- Clean up FilmOn plugin class
  - Move http adapter definitions to constructor
  - Set hls-playlist-reload-time to "segment"
  - Clean up _get_streams
- Fix tests
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Jun 7, 2022
- Rewrite FilmOnHLS{,Worker}
  - Override fetching logic of HLSStreamWorker._fetch_playlist
  - Rewrite playlist URL refresh logic and move everything to the
    FilmOnHLSStream.url property
- Clean up FilmOnAPI and schemas
- Clean up FilmOn plugin class
  - Move http adapter definitions to constructor
  - Set hls-playlist-reload-time to "segment"
  - Clean up _get_streams
- Fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants