GitHub - MarketingPipeline/Pluto-TV.js: A JavaScript library to fetch Pluto TV s...
source link: https://github.com/MarketingPipeline/Pluto-TV.js
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Pluto-TV.js
A JavaScript library to fetch Pluto TV free IPTV / M3U stream urls.
Show your support!
Example and usage
How to use Pluto-TV.js:
import {PlutoTV} from 'https://cdn.jsdelivr.net/gh/MarketingPipeline/Pluto-TV.js@main/dist/pluto-tv.min.js';
try {
/// Search Channels - DEFAULT USA CHANNELS.
console.log(await PlutoTV().searchChannels("360p"))
/// Search Channels by Country Code
console.log(await PlutoTV().searchChannels("360", "mx"))
/// Fetch all Channels - DEFAULT USA CHANNELS.
console.log(await PlutoTV().fetchAllChannels())
/// Fetch all Channels by Country Code.
console.log(await PlutoTV().fetchAllChannels("uk"))
} catch (error) {
console.log(error.message)
}
These are the supported country codes "br", "de", "es", "fr", "mx", "uk", "us"
.
Contributing
Want to improve this project? Create a pull request with detailed changes / improvements! If approved you will be added to the list of contributors of this awesome project!
See also the list of contributors who participate in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK