Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

P2PProxy plugin

ValdikSS edited this page Mar 8, 2015 · 2 revisions

About plugin

This plugin emulates the behavior of P2pProxy and handles almost all of its requests.

Plugin was developed for compatibility with software and widgets that only work with TS-Proxy\P2pProxy. Some of them as follows:

Setup

To use the plugin you need an account with VIP status on Torrent-TV.

Put the account details (email and password) into plugin's configuration file /plugins/config/p2pproxy.py

P2pProxy defaults to 8081 port. To use software with hardcoded proxy port please change the httpport value in aceproxy configuration file aceconfig.py to the needed port. Make sure to change vlcoutport to any other value, too!

Complete list of supported commands:

  • http://127.0.0.1:8081/channels/ - channels playlist. By default it will give a playlist in XML format. Available parameters:
    • type=m3u - playlist in m3u format
    • group= - playlist of a group. Groups: 1-child; 2-music; 3-films; 4-sport; 5-general; 6-educational; 7-news; 8-entertainment; 9-adult; 10-for men; 11-regional; 12-religious; all-all groups
    • filter=all|channel|moderation|translation|favourite - all|channel|moderation|translation|favourite playlist

For example: http://127.0.0.1:8081/channels/?filter=favourite&group=1&type=m3u

  • http://127.0.0.1:8081/channels/play - play a channel. Available parameters:
    • id= - channel ID

For example: http://127.0.0.1:8081/channels/play?id=5462

  • http://127.0.0.1:8081/archive/ - archive playlist. Available parameters:
    • type=m3u - m3u playlist (without it you'll get XML one)
    • date= - get archive of specified date. Format: d-M-yyyy (30-6-2014)
    • channel_id= - get archive of concrete channel

For example: http://127.0.0.1:8081/archive/?type=m3u&date=30-6-2014&channel_id=17

  • http://127.0.0.1:8081/archive/play - play a record in archive. Streaming is by HTTP protocol. Available parameters:
    • id= - record ID in archive

For example: http://127.0.0.1:8081/archive/play?id=282375265

  • http://127.0.0.1:8081/xbmc.pvr - XML playlist from Torrent-TV API. Needed by xbmc-addon-p2pproxy. Without parameters.