Skip to content

fix(mopidy-4): Replace removed mopidy.internal stream helpers#54

Open
blacklight wants to merge 1 commit into
kingosticks:masterfrom
blacklight:fix/mopidy-4-compatibility
Open

fix(mopidy-4): Replace removed mopidy.internal stream helpers#54
blacklight wants to merge 1 commit into
kingosticks:masterfrom
blacklight:fix/mopidy-4-compatibility

Conversation

@blacklight

Copy link
Copy Markdown

Summary

Mopidy 4 removes mopidy.internal.*, which broke TuneIn stream unwrapping (playlist download + playlist parsing). This PR replaces the removed internal usage by adopting the same approach as Mopidy’s built-in Stream extension:

  • Use a local download() helper (requests-based, timeout-aware).
  • Use a local parse_playlist() implementation supporting m3u/m3u8, pls, asx, xspf, and URI-list fallback.
  • Keep existing TuneIn unwrapping behavior and relative-URI handling via urllib.parse.urljoin().

Changes

  • Updated TuneIn stream unwrapping to use helper modules
  • Added HTTP helper module
  • Added playlist parsing helper module

Mopidy 4 removes `mopidy.internal.*`, which broke TuneIn stream
unwrapping (playlist download + playlist parsing).

This PR replaces the removed internal usage by adopting the same
approach as Mopidy’s built-in Stream extension:

- Use a local `download()` helper (requests-based, timeout-aware).
- Use a local `parse_playlist()` implementation supporting `m3u/m3u8`,
  `pls`, `asx`, `xspf`, and URI-list fallback.
- Keep existing TuneIn unwrapping behavior and relative-URI handling via
  `urllib.parse.urljoin()`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant