Coder Social home page Coder Social logo

phpbg / watchtv Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 5.0 869 KB

This is a small server that allows you to watch digital television on your computer and your local network.

License: MIT License

JavaScript 68.75% CSS 4.89% PHP 24.15% HTML 2.01% Shell 0.20%

watchtv's People

Contributors

dependabot[bot] avatar oliviernes avatar phpbg avatar samuelchemla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

watchtv's Issues

Problem playing channels with a quote mark in the name

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! :-)

Please Help

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.