phpbg / watchtv Goto Github PK
View Code? Open in Web Editor NEWThis is a small server that allows you to watch digital television on your computer and your local network.
License: MIT License
This is a small server that allows you to watch digital television on your computer and your local network.
License: MIT License
Can you please explain how it works and what I need to set up .
I live in Australia, I want to watch streams from India, I have Linux servers from Digital Ocean & AWS in India. Do I need any hardware ?
I am having Digital TV subscription in India (have user ID & Password)
You help is appreciated
Thanks
Hi Samuel,
My pull request #7 fixed the syntax error when I was clicking on the "Refresh channels" button of the configure page because of the quote mark in the channel "L’Equipe".
The error (from PHP) was : PHP Warning: syntax error, unexpected $end, expecting ']'
The channels can be displayed after adding the INI_SCANNER_RAW option in parse_ini_file().
They can all be played correctly with mpv but not "L’Equipe". Tinkering in your code, I thought I fixed the problem by removing the quote mark in the M3u8.php file because the weird thing is that sometimes it’s possible to play the channel "L’Equipe" (it worked by chance just after I modified the code and I didn’t try enough times). So I thought I fixed the problem before you show me that the M3u8.php file is only generating a m3u8 file.
The error (from bash) playing the channel "L’Equipe" is [warning] sh: 1: Syntax error: Unterminated quoted string
The only solution I found was to add a sed command after the dvbv5-scan like that :
sudo dvbv5-scan -v -o /path/to/channels.conf /path/to/data/dtv-scan-tables/dvb-t/fr-All && sudo sed -i -e "s/'/_/g" /path/to/channels.conf
The sed command replaces all single quotes with an underscore which seems fine as the single quotes should only appear in the channels’ names.
It is also possible to put back the quote mark in the M3u8.php generator as I have done in the pull request →replace("_","’")
As I don’t know PHP, I can’t add the sed command after the dvbv5-scan but it seems it solved the quote mark problem because I can always play the "L’Equipe" channel after replacing the quote mark by _.
What a stupid idea to put a quote mark in a tv channel name! :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.