GithubHelp home page GithubHelp logo

andreiii99 / m3u8-php-parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onigetoc/m3u8-php-parser

0.0 2.0 0.0 18 KB

PHP m3u / m3u8 Parser to JSON

Home Page: http://tvcast.top

JavaScript 35.90% PHP 64.10%

m3u8-php-parser's Introduction

m3u8 / m3u PHP Parser

m3u PHP Parser.m3u8 parser to json

How to use it? (With or without callback)

m3u-parser.php?callback=jQuery112403360297908445591&url=https://pastebin.com/raw/t1mBJ2Yi

m3u-parser.php?url=https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u

Markdown created with Editconvert

Result for m3u-parser.php

{
  "list": {
    "service": "iptv",
    "title": "iptv",
    "item": [
      {
        "service": "iptv",
        "title": "Rrokum",
        "playlistURL": "https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u",
        "media_url": "http://82.114.65.202:1935/live/rrokumtv/playlist.m3u8",
        "url": "http://82.114.65.202:1935/live/rrokumtv/playlist.m3u8",
        "id": "RrokumTV.al",
        "aspect-ratio": "16:9",
        "author": "RrokumTV.al",
        "language": "Albanian/Kosovo",
        "country": "KS",
        "thumb_square": "https://2.bp.blogspot.com/-adXhlGiHqxw/WSGCBl9Y8LI/AAAAAAAAD5Q/-t48sLv989Uxb5hgB0b38QlfTdoAE576ACLcB/s1600/tvrrokum.png",
        "group": "TVSHQIP"
      },
     {
        "service": "iptv",
        "title": "JTV",
        "playlistURL": "https://raw.githubusercontent.com/onigetoc/m3u8-PHP-Parser/master/ressources/demofile.m3u",
        "media_url": "http://84.20.77.50:554/live/rtmp.stream/playlist.m3u8",
        "url": "http://84.20.77.50:554/live/rtmp.stream/playlist.m3u8",
        "id": "TVJUG.AL",
        "author": "TVJUG.AL",
        "language": "Albanian/Kosovo",
        "country": "AL",
        "thumb_square": "https://4.bp.blogspot.com/-LXFMStwz6tI/WSGLzk0QgVI/AAAAAAAAD6I/T-rFp4KD_c4zbCRN9hGrjy_jS2nmXgPJwCLcB/s1600/tvjug.png",
        "group": "TVSHQIP"
      }
    ]
  }
}

Result for m3u-parser-simple.php

[
  {
    "id": 1,
    "tvtitle": "Newsmax TV",
    "tvmedia": "http://nmxlive.akamaized.net/hls/live/529965/Live_1/index.m3u8",
    "tvname": "Newsmax TV",
    "tvlanguage": "English",
    "tvcountry": "US",
    "tvid": "Newsmax-TV",
    "tvlogo": "http://i.imgur.com/Twkovic.gif",
    "tvgroup": "Entertainment"
  },
  {
    "id": 2,
    "tvtitle": "Infowars Live",
    "tvmedia": "http://infowarslive-lh.akamaihd.net/i/infowarslivestream_1@353459/index_800_av-p.m3u8",
    "tvlogo": "http://i.imgur.com/ODIWC6n.jpg",
    "tvname": "Infowars",
    "tvid": "Infowars",
    "tvgroup": "News"
  },
]

m3u8-php-parser's People

Contributors

onigetoc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.