Qnap [ Telly ] [ 1.5.0 ] An IPTV proxy for Plex Live DVR (CLI)

QoolBox

Représentant QNAP
2 Janvier 2014
10 559
163
153
49
France
www.qnap.com
Source : https://github.com/tombowditch/telly

Download :

https://qnapclub.eu/fr/qpkg/563

Note /

only command line .. telly command added to NAS $PATH

About :

Have the .m3u file on hand from your IPTV provider of choice
Any command arguments can also be supplied as environment variables, for example -playlist can also be provided as the PLAYLIST environment variable
Run telly with the -playlist commandline argument pointing to your .m3u file. (This can be a local file or a URL) For example: ./telly -playlist=/home/github/myiptv.m3u
If you would like multiple streams/tuners use the -streams commandline option. Default is 1. When setting or changing this option, plexmediaserver will need to be completely restarted.
If you would like telly to attempt to the filter the m3u a bit, add the -filterregex commandline option. If you would like UK only tv, run telly with the -uktv commandline option. If you would like to use your own regex, run telly with -useregex <regex>, for example -useregex .*UK.*
If telly tells you [telly] [info] listening on ... - great! Your .m3u file was successfully parsed and telly is running. Check below for how to add it into Plex.
If telly fails to run, check the error. If it's self explanitory, great. If you don't understand, feel free to open an issue and we'll help you out. As of telly v0.4 sed commands are no longer needed. Woop!
For your IPTV provider m3u, try using option type=m3u_plus and output=ts.

Adding it into Plex

Once telly is running, you can add it to Plex. Plex Live requires Plex Pass at the time of writing
Navigate to app.plex.tv and make sure you're logged in. Go to Settings -> Server -> Live TV & DVR
Click 'Setup' or 'Add'. Plex won't find your device, so press the text to add it manually - input localhost:6077 (or whatever port you're using - you can change it using the -listen commandline argument, i.e. -listen localhost:12345)
Plex will find your device (in some cases it continues to load but the continue button becomes orange, i.e. clickable. Click it) - select the country in the bottom left and ensure Plex has found the channels. Proceed.
Once you get to the channel listing, telly currently doesn't have any idea of EPG data so it starts the channel numbers at 10000 to avoid complications with selecting channels at this stage. EPG APIs will come in the future, but for now you'll have to manually match up what telly is telling Plex to the actual channel numbers. For UK folk, Sky HD is the best option I've found.
Once you've matched up all the channels, hit next and Plex will start downloading necessary EPG data.
You're done! Enjoy using telly

A propos :
Vous disposez d'un fichier.m3u de votre fournisseur IPTV de votre choix.
Tous les arguments de commande peuvent également être fournis en tant que variables d'environnement, par exemple -playlist peut également être fourni en tant que variable d'environnement PLAYLIST.
Exécutez telly avec l'argument -playlist en ligne de commande pointant vers votre fichier .m3u. (Il peut s'agir d'un fichier local ou d'une URL) Par exemple : ./telly -playlist=/home/github/myiptv.m3u.
Si vous voulez plusieurs streams/tuners, utilisez l'option -streams commandline. La valeur par défaut est 1. Lors du paramétrage ou de la modification de cette option, plexmediaserver devra être complètement redémarré.
Si vous souhaitez que telly tente de filtrer un peu le m3u, ajoutez l'option -filterregex en ligne de commande. Si vous ne souhaitez que la télévision britannique, utilisez l'option -uktv en ligne de commande. Si vous souhaitez utiliser votre propre regex, exécutez telly avec -useregex <regex>, par exemple -useregex .*UK.*
Si Telly vous dit d'écouter sur .... - génial ! Votre fichier.m3u a été analysé avec succès et Telly est en cours d'exécution. Vérifiez ci-dessous pour savoir comment l'ajouter dans Plex.
Si Telly ne fonctionne pas, vérifiez l'erreur. Si ça s'explique tout seul, c'est génial. Si vous ne comprenez pas, n'hésitez pas à ouvrir un numéro et nous vous aiderons. A partir de telly v0.4, les commandes sed ne sont plus nécessaires. Woop !
Pour votre fournisseur IPTV m3u, essayez d'utiliser l'option type=m3u_plus et output=ts.

Ajouter dans Plex :
Une fois que la Telly fonctionne, vous pouvez l'ajouter à Plex. Plex Live nécessite Plex Pass au moment de l'écriture.
Naviguez jusqu'à app.plex.tv et assurez-vous d'être connecté. Allez dans Paramètres -> Serveur -> TV en direct et DVR
Cliquez sur'Setup' ou'Add'. Plex ne trouvera pas votre appareil, alors appuyez sur le texte pour l'ajouter manuellement - input localhost:6077 (ou n'importe quel port que vous utilisez - vous pouvez le changer en utilisant l'argument -listen commandline, c'est-à-dire -listen localhost:12345).
Plex trouvera votre appareil (dans certains cas, il continue à se charger mais le bouton Continuer devient orange, c'est-à-dire cliquable). Cliquez dessus) - sélectionnez le pays en bas à gauche et assurez-vous que Plex a trouvé les chaînes. Continuez.
Une fois que vous arrivez à la liste des chaînes, Telly n'a aucune idée des données EPG, donc il commence les numéros de chaînes à 10000 pour éviter des complications avec la sélection des chaînes à ce stade. Les API EPG viendront à l'avenir, mais pour l'instant, vous devrez faire correspondre manuellement ce que la télévision indique à Plex aux numéros de canaux réels. Pour le folk britannique, Sky HD est la meilleure option que j'ai trouvée.
Une fois que vous avez trouvé toutes les chaînes, cliquez sur Suivant et Plex commencera à télécharger les données EPG nécessaires.
Vous avez fini ! Profitez de l'utilisation de la Telly
 
Merci, ça a l'air super ce truc.
Est-ce que quelqu'un peux m'expliquer rapidement comment ça marche?
 
J'anticipe ta réponse...

Pour l'installer, j'ai installé le QPKG, je me suis connecté en SSH, je suis allé dans :

Code:
/opt/Telly

Si ton fichier .m3u se trouve dans /share/Public il faut que tu le lances avec la commande suivante :

Code:
./telly -playlist=/share/Public/fichier.m3u

tu devrais voir apparaitre :

Code:
[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] listening on localhost:6077

Il écoute maintenant sur le port 6077...

Tu lances maintenant Plex, tu vas dans Réglages / Serveur / TV en direct (Il faut un Plex pass pour en profiter)

Tu ajoutes un enregistreur en mettant l'adresse :

Code:
http://127.0.0.1:6077

Il ne va rien trouver mais tu auras la possibilité de cliquer sur continuer...
Ensuite tu ajoutes ton fichier .m3u et logiquement ça devrait fonctionner...

N'hésite pas à faire un retour ici.
 
wow, il paraît très intéressant... il faudrait juste trouver quelque bon .m3u :lol:
 
J'ai installé Telly, j'ai ouvert ssh et allé dans /opt/Telly et je vois:

Code:
[/opt/Telly] # ls -a
 ./  ../  .gitkeep  .list  .qpkg_icon_80.gif*  .qpkg_icon.gif*  .qpkg_icon_gray.gif*  telly*  Telly@  Telly.sh*  .uninstall.sh*

si je lance Telly, j'ai:

Code:
[/opt/Telly] # ./Telly.sh restart
killall: telly: no process killed

En effet je n'ai pas Telly qui marche:

Code:
[/opt/Telly] # ps aux |grep Telly
 23855 admin       924 S   grep Telly

J'essaye donc de démarrer Telly avec un start, mais ça ne marche non plus:

Code:
[/opt/Telly] # ./Telly.sh start
[/opt/Telly] # ps aux |grep Telly
24907 admin       936 S   grep Telly

Je vérifie les droits:
Code:
[/opt/Telly] # ls -la 
total 6628 
drwxrwxr-x  2 admin administrators    4096 2018-04-09 14:36 ./ 
drwxrwxrwx 31 admin administrators    4096 2018-04-09 14:25 ../ 
-rw-r--r--  1 admin administrators       0 2017-10-20 05:22 .gitkeep 
-rw-r--r--  1 admin administrators      92 2018-04-09 14:25 .list 
-rwxrwxr-x  1 admin administrators    8420 2018-04-05 18:05 .qpkg_icon_80.gif* 
-rwxrwxr-x  1 admin administrators    6333 2018-04-05 18:05 .qpkg_icon.gif* 
-rwxrwxr-x  1 admin administrators    2843 2018-04-05 18:05 .qpkg_icon_gray.gif*
-rwxrwxr-x  1 admin administrators 6740096 2018-04-05 17:57 telly* 
lrwxrwxrwx  1 admin administrators      33 2018-04-09 14:36 Telly -> /share/CACHEDEV1_DATA/.qpkg/Telly/
-rwxr-xr-x  1 admin administrators     733 2018-04-05 18:01 Telly.sh*
-rwxr-xr-x  1 admin administrators     771 2018-04-09 14:25 .uninstall.sh*
c'est où le problème?
 
Salut giopas,

J'aimerai pouvoir t'aider mais la je t'avoue que je ne comprends pas trop...
Si le QPKG est installé, je ne comprends pas pourquoi tu n'arrives pas à le relancer en SSH...
 
Ah si j'ai du oublié une étape...

Essaie cette commande si ton fichier m3u est dans /homes admin :

Code:
./telly -playlist=/share/homes/admin/fichier.m3u
 
J'ai corrigé le post ou je donne l'explication qui été erronée...

Désolé, j'ai répondu vite fait du boulot donc j'ai fait ça de mémoire...
 
Justement, et j'ai même fait un reboot et vérifié qu'il n'y a rien sur la même porte...

Peut être que Stéphane a une idée?

giopas

ps: ahh ok, il faut dire où se trouve le fichier! je vais voir!
 
La commande que je viens de te filer ne fonctionne pas non plus ?

Essaie cette commande si ton fichier m3u est dans /homes admin :

Code:
./telly -playlist=/share/homes/admin/fichier.m3u

Edit : Apparemment nos messages se croisent... :)
 
J'ai par contre du réduire mon fichier .m3u qui contenait énormément de lignes (chaines espagnoles, portugaises, belges et j'en passe)
Du coup, ça bloquait à chaque fois à 93 ou 94%. Après la suppression des chaines que je ne regarderai jamais c'est rentré dans l'ordre.

Ensuite tu devras faire correspondre manuellement ce que la télévision indique à Plex aux numéros de canaux réels.

Ce qui est assez long à faire si tu as beaucoup de chaines et qui en plus n'accepte pas les doublons.
 
Hello Gio

la commande telly est ajouté automatiquement au $PATH du NAS via un lien symbolique.. tu n'as pas besoin de trifouille le rep du qpkg
 
Ok, c'est bien qu'il faut dire où se trouve le fichier m3u, au moins (je crois) lors du premier démarrage:

Code:
[/opt/Telly] # telly -playlist=/share/Multimedia/IPTV/Playlist_Update_10-04-2018.m3u start
[telly] [info] booting telly v0.4.5
[telly] [info] Reading m3u file /share/Multimedia/IPTV/Playlist_Update_10-04-2018.m3u...
[telly] [error] unable to read m3u file, error below
[telly] [error] m3u files need to have specific formats, see the github page for more information
[telly] [error] future versions of telly will attempt to parse this better
panic: Invalid m3u file format. Expected #EXTM3U file header

goroutine 1 [running]:
main.main()
        /Users/tom/code/telly/main.go:182 +0x1ca0

Mnt il me faut un m3u qui marche :)

Ok, j'en ai trouvé un qui apparemment est accepté par telly:
Code:
[/opt/Telly] # telly -playlist=/share/Multimedia/IPTV/test.m3u
[telly] [info] booting telly v0.4.5
[telly] [info] Reading m3u file /share/Multimedia/IPTV/test.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] creating discovery data
[telly] [info] creating lineup status
[telly] [info] creating device xml
[telly] [info] creating webserver routes
[telly] [info] Building lineup
[telly] [info] listening on localhost:6077
Question, au nouveau démarrage, telly va savoir ce qu'il faut faire? ou il faut mettre cela dans BashIt?
 
Oui tu as raison, et de cette manière on peut aussi utiliser le fichier le plus récent ! (Il faudrait que je regarde comment faire...)

Sent from my ONEPLUS A5000 using Tapatalk