ggiraudon / m3u2strm

A simple script to convert IPTV m3u files to a set of STRM files
GNU General Public License v3.0
4 stars 0 forks source link

require(/root/m3u2strm/vendor/autoload.php) #1

Open davyonli opened 3 years ago

davyonli commented 3 years ago

Hi, Thanks for making this script available. I look forward to get it working for the exact same usecase as you. When executing the script I get the following error : PHP Warning: require(/root/m3u2strm/vendor/autoload.php): failed to open stream: No such file or directory in /root/m3u2strm/m3u2strm.php on line 2 PHP Fatal error: require(): Failed opening required '/root/m3u2strm/vendor/autoload.php' (include_path='.:/usr/share/php') in /root/m3u2strm/m3u2strm.php on line 2

What I did was :

There is indeed no /vendor/autoload.php that got downloaded from the git clone. Hopefully you can point me in the right direction to have this resolved. Thanks in advance. Best regards, Davy

mhos commented 2 years ago

Just wanted to post what worked for me, I know it's old but figured might help others later. Steps I took to get this to work. Ubuntu 20.04 Test vm sudo apt install php git composer -y cd /var/www/html git clone https://github.com/ggiraudon/m3u2strm.git chmod 777 m3u2strm cd m3u2strm composer install

Now run the script from commandline like this: cd /var/www/html/m3u2strm php m3u2strm.php http://your.m3u.link.com or Download your m3u list to the folder using wget or curl and run: php m3u2strm.php m3u_plus

This will create an output folder that you should be able to copy into your Emby/Jellyfin media path for your TV shows. Im still waiting on Jellyfin to finish reading all of the strm files but I can see it is picking up the files. Hope this helps someone else.

Thanks