Git Product home page Git Product logo

m3u-proxifier's Introduction

m3u-proxifier

Go

This small tool is used to retrieve remote m3u playlist and insert a custom proxy URL for each entry.

Install

You have to have Golang >=1.13 version installed. To compile the program to a single binary executable:

go build -v ./cmd/m3u-proxifier/

This command will create a binary inside the current working directory.

Usage

This tool receives a single command parameter --config. Pass a valid configuration JSON file to the executable like this:

m3u-proxifier --config=/some/dir/config.json

It is strictly recommended passing an absolute path to the config as there might be some unexpected behavior using relative paths. Also, it would be wise to use absolute paths inside the config JSON as well.

A config file example can be found at configs directory of this repo, but the overall structure is this:

{
  "location": "http://m3u.example.com",
  "proxy": "192.168.1.42:7777",
  "old": "/test/file.m3u",
  "new": "/test/new_file.m3u"
}
  • location - Path to the new updated playlist to be proxified. Location can be either HTTP URL or local file path.
  • proxy - Address of a proxy to be added to every entry of a playlist.
  • old - Path to the existing playlist. If no path specified, just a new proxified updated playlist is going to be saved. Otherwise, new proxfied entries are going to be merged to old playlist (added without deleting old entries).
  • new - Name (path) of a new resulting file created.

Bug Reporting

Feel free to report any found issues at GitHub page. Have fun :)

m3u-proxifier's People

Contributors

gren236 avatar nickbaev avatar

Stargazers

Jorge Javier avatar

Watchers

 avatar

m3u-proxifier's Issues

Entry description awareness

In case description is the same, but address changed - create a copy of this entry with (copy) signature.

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.