xiaodoudou / PlexIPTV

This app simulate a DVR device for Plex by providing a layer to any IPTV provider (that provide a m3u8 playlist)
Apache License 2.0
193 stars 24 forks source link

some issue with m3u file, running on raspberry pi #34

Open cedricwalter opened 1 year ago

cedricwalter commented 1 year ago

Thanks for the program!

mkdir -p /home/pi/docker/plexiptv
vi /home/pi/docker/plexiptv/settings.json
{
  "m3u8": {
    "local": "iptv.m3u8", // Locale file
    "remote": "https://api.init7.net/tvchannels.m3u" // Remote URL of the playlist
  },
  "serverPort": 1234, // Server port
  "serverName": "PlexIPTV", // Name of the server
  "tunerCount": 1, // How many simultaneous feed your IPTV provider support
  "removeIfNotFoundOnFilter": true, // Will remove channel from playlist that aren't present on the filter list
  "doNotPullRemotePlaylist": false, // Will not pul online playlist
}

Since the raspberry pi is ARMv8, I was force to rebuild your docker image

git clone https://github.com/xiaodoudou/PlexIPTV.git

cd PlexIPTV
vi Dockerfile
replace first line with from node:9

cd ..
docker build -t plexiptvarm ./PlexIPTV

running the container

docker run -p 12345:1234 --name="plexiptvarm" \ -e NODE_TLS_REJECT_UNAUTHORIZED=0 \ --volume /home/pi/docker/plexiptv:/opt/PlexIPTV/config \ -d plexiptvarm

Note: I added NODE_TLS_REJECT_UNAUTHORIZED=0 this is insecure but the provider of the mp3 has an expired certificate! this is temporary

Now in the Logs, I see 0 channels found....

2023-02-27T18:21:45.786Z plexiptv:config:verbose 2023/02/27 18:21:45.7800 πŸ”­ init Getting settings...
2023-02-27T18:21:45.794Z plexiptv:config:verbose 2023/02/27 18:21:45.7930 πŸ”­ readSettings Reading file...
2023-02-27T18:21:45.806Z plexiptv:config:verbose 2023/02/27 18:21:45.8050 πŸ”­ fs.readFile Found file...
2023-02-27T18:21:45.809Z plexiptv:config:verbose 2023/02/27 18:21:45.8090 πŸ”­ Q.fcall.then.then Has resolve settings
2023-02-27T18:21:45.811Z plexiptv:index:info 2023/02/27 18:21:45.8110 πŸ“Ÿ pullPlaylist Pulling remote playlist: https://api.init7.net/tvchannels.m3u
2023-02-27T18:21:45.886Z plexiptv:index:verbose 2023/02/27 18:21:45.8860 πŸ”­ request Writting to local files...
2023-02-27T18:21:45.891Z plexiptv:index:info 2023/02/27 18:21:45.8910 πŸ“Ÿ fs.writeFile Sucessfully saved playlist to: iptv.m3u8
2023-02-27T18:21:45.925Z plexiptv:index:info 2023/02/27 18:21:45.9250 πŸ“Ÿ express.listen Server (v1.0.4) is started at: http://0.0.0.0:1234
2023-02-27T18:21:45.926Z plexiptv:index:info 2023/02/27 18:21:45.9260 πŸ“Ÿ express.listen Logs output: /opt/PlexIPTV/logs
2023-02-27T18:21:45.927Z plexiptv:index:info 2023/02/27 18:21:45.9270 πŸ“Ÿ express.listen Config file: /opt/PlexIPTV/config/settings.json
2023-02-27T18:21:45.928Z plexiptv:index:info 2023/02/27 18:21:45.9280 πŸ“Ÿ express.listen πŸ“ΊπŸΊ~~Enjoy your 0 channels ~~πŸΊπŸ“Ί   
2023-02-27T18:21:45.912Z plexiptv:dvr:verbose 2023/02/27 18:21:45.9120 πŸ”­ init DVR is now initiated.
2023-02-27T18:22:02.616Z plexiptv:dvr:verbose 2023/02/27 18:22:02.6160 πŸ”­ device Received a device identify request.
2023-02-27T18:22:02.633Z plexiptv:dvr:verbose 2023/02/27 18:22:02.6320 πŸ”­ discover Received a discover request.
2023-02-27T18:22:02.638Z plexiptv:dvr:verbose 2023/02/27 18:22:02.6380 πŸ”­ lineupStatus Received a lineup status request.
2023-02-27T18:22:11.560Z plexiptv:dvr:verbose 2023/02/27 18:22:11.5600 πŸ”­ lineup Received a lineup request.
2023-02-27T18:22:11.562Z plexiptv:dvr:verbose 2023/02/27 18:22:11.5610 πŸ”­ channels Return 0 channels.
2023-02-27T18:22:13.171Z plexiptv:dvr:verbose 2023/02/27 18:22:13.1710 πŸ”­ discover Received a discover request.
2023-02-27T18:22:13.176Z plexiptv:dvr:verbose 2023/02/27 18:22:13.1750 πŸ”­ lineupStatus Received a lineup status request.
2023-02-27T18:25:23.835Z plexiptv:dvr:verbose 2023/02/27 18:25:23.8350 πŸ”­ lineup Received a lineup request.
2023-02-27T18:25:23.836Z plexiptv:dvr:verbose 2023/02/27 18:25:23.8360 πŸ”­ channels Return 0 channels.
2023-02-27T18:25:27.193Z plexiptv:dvr:verbose 2023/02/27 18:25:27.1920 πŸ”­ lineup Received a lineup request.
2023-02-27T18:25:27.193Z plexiptv:dvr:verbose 2023/02/27 18:25:27.1930 πŸ”­ channels Return 0 channels.

maybe you see the error immediately?