Code Monkey home page Code Monkey logo

m3u-gen-acestream's Introduction

m3u-gen-acestream

M3U playlist generator for AceStream.

How to use?

  • Install Python 3.7.0 or higher.

  • Run ./src/m3u_gen_acestream.py to start a program. When playlist(s) is generated, you can close the program if you do not need automatic updates.

  • Run AceStream if it is not running yet. In default configuration, assuming that AceStream Engine is listening at 127.0.0.1:6878.

    If you use HTTPAceProxy, you can use it instead. In default configuration, assuming that HTTPAceProxy is listening at 127.0.0.1:8000.

  • Open generated playlist with your favorite IPTV player.

  • Done.

Notes:

Default output folder: ./out/.

See ./src/config/config.py to configure program behavior.

See ./src/filter/filter.json to configure filter. See formatting in the config file.

See ./src/channel/injection.json to configure channel injections. See formatting in the config file.


If you use player with built-in AceStream support, you can add new 'DataSet' to the config file with URL format like 'acestream://{CONTENT_ID}'.


If you want to serve generated files over http, you can use python built-in http server module, for example:

cd out
python -m http.server 7999

The command above will serve output directory on port 7999.

So generated files can be accessed via local network and you can open links like <your-local-ip>:7999/<playlist-file-name> in IPTV player directly.

m3u-gen-acestream's People

Contributors

scp002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

m3u-gen-acestream's Issues

Cannot run m3u_gen_acestream.py

Hi.
Ubuntu 16.04.5 LTS

Python 2.7.12
$ python m3u_gen_acestream.py
File "m3u_gen_acestream.py", line 20
def main() -> None:
^
SyntaxError: invalid syntax

Python 3.5.2

$ python3 m3u_gen_acestream.py
File "m3u_gen_acestream.py", line 21
channel_handler: ChannelHandler = ChannelHandler()
^
SyntaxError: invalid syntax

FileNotFoundError: [Errno 2] No such file or directory: './filter/filter.json'

Started at Nov 24 17:50:55

Internet connection is up.

Processing data set 1 of 1
Traceback (most recent call last):
File "./src/m3u_gen_acestream.py", line 53, in
M3UGenAceStream.main()
File "./src/m3u_gen_acestream.py", line 33, in main
channel_handler.data_set = data_set
File "/src/channel/channel_handler.py", line 37, in data_set
self._filter_handler.data_set = data_set
File "/src/filter/filter_handler.py", line 33, in data_set
with closing(open(filter_file_name, 'r', filter_file_encoding)) as filter_file:
File "/usr/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)

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.