Project

General

Profile

Username/password in m3u

Added by Jan g about 7 years ago

Hey,

Is it possible to Download a m3u from tvh Witch contain The right Username and password?


Replies (7)

RE: Username/password in m3u - Added by Chris Koster about 7 years ago

Yes, you can use standard credential notation as you would with any url, example:

http://username:[email protected]:9981/bladibla
smb://username:[email protected]/downloads/
ftp://username:[email protected]

etc

RE: Username/password in m3u - Added by saen acro about 7 years ago

Chris Koster wrote:

Yes, you can use standard credential notation as you would with any url, example:

http://username:[email protected]:9981/bladibla
smb://username:[email protected]/downloads/
ftp://username:[email protected]

etc

You don't understand correctly
Idea is to get playlist with build in link-s with user and pass

Something as:

http://ip.of.tvh:9981/playlist/user/username/pass/password

and then all links inside to have
http://username:[email protected]:9981/chanell....

without any more manipulations.

RE: Username/password in m3u - Added by Robert Cameron about 7 years ago

If that is the type of setup that you need, then you probably need to run some sort of reverse proxy. Otherwise, Tvheadend doesn't support that type addressing.

RE: Username/password in m3u - Added by Mark Clarkstone about 7 years ago

If you really want to do this use a bash script, this is mine..

#!/bin/bash

USER=username
PASSWORD=passwd
URL=http://server.net:9981/playlist
PAT_URL=server.net
result=$(wget --user ${USER} --password ${PASSWORD} -qO- ${URL})

if [ $? -ne 0 ]; then
    exit 1;
fi

echo "${result//$PAT_URL/$USER\:$PASSWORD\@$PAT_URL}" 
exit 0;

RE: Username/password in m3u - Added by Jan g about 7 years ago

okay looks that i need a reserved proxy.. can u tell me how to do this?

the bash script works but i need a script on a webserver which write the right user/pass in the m3u

second question:

i want to use the android app "smart iptv" but it will not work with user:pass@ .. only with :port/username/password/m3u or something else. but tvh had only the user:pass authorization...

RE: Username/password in m3u - Added by Daniel Lewandowski over 1 year ago

Please help. How to disable tvheadend username and password request for m3u lists completely?

RE: Username/password in m3u - Added by saen acro over 1 year ago

Daniel Lewandowski wrote:

Please help. How to disable tvheadend username and password request for m3u lists completely?

Make * user with * password, but keep in mind what permissions will have user.

    (1-7/7)