{"id":15880536,"url":"https://github.com/gpenverne/program-tv","last_synced_at":"2025-04-02T05:23:15.675Z","repository":{"id":106131763,"uuid":"134878917","full_name":"gpenverne/program-tv","owner":"gpenverne","description":"Ce script parse le programme tv et retourne la chaîne correspondante à ce qui est cherché.","archived":false,"fork":false,"pushed_at":"2018-05-25T16:17:15.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T20:51:10.636Z","etag":null,"topics":["parser","php","tv"],"latest_commit_sha":null,"homepage":"https://gkdv.net/Retrieve-french-tv-program/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gpenverne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-25T16:13:02.000Z","updated_at":"2019-04-04T11:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"838a2d51-ebcb-4d1c-bd43-ca7a676b82d9","html_url":"https://github.com/gpenverne/program-tv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpenverne%2Fprogram-tv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpenverne%2Fprogram-tv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpenverne%2Fprogram-tv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gpenverne%2Fprogram-tv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gpenverne","download_url":"https://codeload.github.com/gpenverne/program-tv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246759870,"owners_count":20829173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parser","php","tv"],"created_at":"2024-10-06T03:09:31.609Z","updated_at":"2025-04-02T05:23:15.660Z","avatar_url":"https://github.com/gpenverne.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProgramTv\n\nCe script parse le programme tv (récupéré depuis [http://www.xmltv.fr/guide/tvguide.xml](http://www.xmltv.fr/guide/tvguide.xml)) et retourne la chaîne correspondante à ce qui est cherché.\nExemples:\n```bash\n$ ./run.php \"documentaire\"\n# Ok j'ai mis titre du documentaire sur france5\n$ ./run.php \"scènes de ménage\"\n# Ok j'ai mis scènes de ménage sur m6\n```\n\n## Callback\nLe fichier ``callback.php`` est appelé lorsqu'un programme est trouvé.\nLe fichier est généré depuis ``callback.php.dist``\nLes infos sur le programme sont récupérables comme suit:\n```php\n\u003c?php\n    // callback.php\n    return 'Ok, j\\'ai mis \"'.$program-\u003etitle.'\" sur '.$program-\u003echannel_name.' sur le canal '.$program-\u003echannel;\n\n    // On peut imaginer un shell_exec\n    // shell_exec('/chemin/command.sh '.$program-\u003echannel);\n?\u003e\n\n```\n## Mise à jour du programme tv\n\n```bash\n$ cron.sh\n```\n\n## channels.php\nLe fichier channel.php fait la correspondance entre les noms de chaînes et leur numéros.\nEn commentant une chaîne, cela l'exclut de la recherche.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpenverne%2Fprogram-tv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgpenverne%2Fprogram-tv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgpenverne%2Fprogram-tv/lists"}