tellytv / telly

An IPTV proxy
MIT License
761 stars 105 forks source link

[Help] Retrieve remote m3u file possible error #127

Closed giopas closed 6 years ago

giopas commented 6 years ago

Hi folks,

I am trying to use Telly to pass along a m3u8 stream file to Plex (around 180 channels).

The format is the following:

telly -playlist=http://domain.com/get.php?username=xxxxxxx&password=xxxxxxx&type=m3u_plus&output=ts

The file works well (tested on Android and iOS), however on Plex I receive the following message in the screen after having selected Telly: "12:00 awaiting channel scan".

On the terminal I get

[telly] [info] booting telly v0.6.2
[telly] [info] Downloading file http://domain.com/get.php?username=xxxxxxx to /tmp/telly.m3u
[telly] [info] Reading m3u file /tmp/telly.m3u...
[telly] [warning] telly is not attempting to strip out unneeded channels, please use the flag -filterregex if telly returns too many channels
[telly] [info] telly is currently not filtering for only uk television. if you would like it to, please use the flag -uktv
[telly] [info] found 0 channels
[telly] [info] creating discovery data
[telly] [info] creating lineup status
[telly] [info] creating device xml
[telly] [info] creating webserver routes
[telly] [info] Building lineup
[telly] [info] advertising telly service on network
[telly] [debug] Advertising telly as HDHomerun (telly) (12345678-AE2A-4E54-BBC9-33AF7D5D6A92)
[telly] [info] listening on localhost:6077

May it be that telly cannot download the file as the URL is truncated ("Downloading file http://domain.com/get.php?username=xxxxxxx")?

hazcod commented 6 years ago

[telly] [info] found 0 channels

Can you check the contents of /tmp/telly.m3u ?

giopas commented 6 years ago

Hi HazCod,

the file is indeed empty:

[/tmp] # ps aux |grep telly
24190 admin 1004 S grep telly
29809 admin 5332 S telly -playlist=http://domain.com/get.php?username=xxxxxxx
[/tmp] # ls |grep m3u
[/tmp] # cat /tmp/telly.m3u
[/tmp] #

FYI: If I try to directly click on the URL, I can download the m3u file, but with "wget [URL]" (no other option), it does not download it.

By the way, if I lunch Telly with the (locally downloaded) m3u file, Plex sees all channels (then I should configure EPG but that's another story).

Is there by chance a problem in how the file is downloaded by Telly?

hazcod commented 6 years ago

Does wget -L [URL] work? Perhaps there is a redirect. If a wget does not work, telly can't help it your playlist file is being returned empty.. :)

Perhaps they whitelisted the user agents? Try with wget --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0" [URL]

sparkison commented 6 years ago

I ran into the same problem before. From your example output of:

...
29809 admin 5332 S telly -playlist=http://domain.com/get.php?username=xxxxxxx
...

Notice the &password=xxxxx is missing. Try surrounding the -playlist= argument in quotes, this worked for me.

E.g. -playlist="http://domain.com/get.php?username=xxxxxxx&password=xxxxx"

giopas commented 6 years ago

@HazCod thank you, I tried, but it seems that wget does not work... I will try to check with the service provider what I am doing wrong. @sparkison thank you, this works for me!