How arturduleba/anyplay works
AnyPlay is an Android media discovery, library, and playback client. Users search anime, movies, or TV, inspect metadata and episodes, then save or play available media; the frontend also manages downloads and library content through a Capacitor native bridge. The README documents AniList/TMDB metadata, torrent downloads, and HLS processing. The tree contains duplicate plugin and activity source copies; both plugin files are represented, but their equivalence is not assumed. Some workflow links are omitted because the excerpts do not show the wiring.
Main entry points: app/AnyPlayNativePlugin.java Native plugin · script.js Client logic · scrapers.js Search scrapers · native-plugin/AnyPlayNativePlugin.java Plugin copy
Components 14
Web client
- Web UI
frontend/index.html - Client logic
frontend/static/script.js
Discovery
- Search scrapers
frontend/static/scrapers.js - Metadata APIs
- Torrent sources
Android runtime
- Capacitor host
native-plugin/app/src/main/java/com/anyplay/app/MainActivity.java - Native plugin
native-plugin/app/src/main/java/com/anyplay/app/AnyPlayNativePlugin.java - Plugin copy
native-plugin/AnyPlayNativePlugin.java - Torrent engine
- HLS processor
Media and library
- Native player
native-plugin/app/src/main/java/com/anyplay/app/PlayerActivity.java - Library management
native-plugin/app/src/main/java/com/anyplay/app/AnyPlayNativePlugin.java - Device storage
Other components
- Viewer
Connections 14
- Viewer → Web UI: uses
README.md - Web UI → Client logic: loads
- Client logic → Search scrapers: initializes
- Search scrapers → Metadata APIs: fetches metadata
frontend/static/scrapers.js - Search scrapers → Torrent sources: searches sources
frontend/static/scrapers.js - Client logic → Native plugin: calls bridge
frontend/static/script.js - Capacitor host → Native plugin: registers
native-plugin/app/src/main/java/com/anyplay/app/MainActivity.java - Native plugin → Torrent engine: downloads torrents
native-plugin/app/src/main/java/com/anyplay/app/AnyPlayNativePlugin.java - Native plugin → HLS processor: processes HLS
native-plugin/app/src/main/java/com/anyplay/app/AnyPlayNativePlugin.java - Native plugin → Native player: launches
native-plugin/app/src/main/java/com/anyplay/app/AnyPlayNativePlugin.java - Native player → Device storage: saves progress
native-plugin/app/src/main/java/com/anyplay/app/PlayerActivity.java - Native plugin → Device storage: manages media
native-plugin/app/src/main/java/com/anyplay/app/AnyPlayNativePlugin.java - Plugin copy → Torrent engine: downloads torrents
native-plugin/AnyPlayNativePlugin.java - Plugin copy → HLS processor: processes HLS
native-plugin/AnyPlayNativePlugin.java