Comments (14)
Seems that the api doesnt work any more : it respond with a 204 No Content
I've tried the new android telerama app, and it use another api : https://api.telerama.fr/v4/
I think the old api https://api.telerama.fr/v1/ is dead.
We need to figure out how to use the new api.
from tv_grab_fr_telerama.
Hi,
Unfortunately, my cable operator discontinued DVB-T on cable, so I had to switch to a solution that is not compatible with xmltv.
I will not be able to help you with that but feel free to do any modification, I will keep this repo open and add contributors if needed.
from tv_grab_fr_telerama.
I'm working on it, but i need time to figure out how to use api v4.
from tv_grab_fr_telerama.
Do you have the necessary tools to trace network traffic between your Android phone and Telerama?
I have an iPhone and Charles Proxy. Maybe the iOS Telerama app also use v4 API then I can give you different traces if you want?
from tv_grab_fr_telerama.
@SylvainCecchetto yes please, it will help.
On my side i will try https://github.com/pxb1988/dex2jar on android apk to get the new signing key.
from tv_grab_fr_telerama.
It's funny (or maybe not xD), the iOS app use a mix of API V1, V2 and V4.
You can find here some traces, if you want more traces with a specific workflow just ask me ;-)
PS: I used a filter so the traces only contains request/get with the host api.telerama.fr, so if you think that some puzzle pieces are missing I can produce "full" traces.
PSS: Each trace start when I open the Telerama app on my iPhone.
Hope that will help you!
today_now.trace.zip
today_per_hour_14H_16H.trace.zip
programme_info.trace.zip
programmes_10_fevrier.trace.zip
from tv_grab_fr_telerama.
Seems thats it's only the method telechargement from v1 which is dead.
Can you try this patch and let me know how it works for you.
It use 'grille' instead :
diff --git a/tv_grab_fr_telerama b/tv_grab_fr_telerama
index 83dec07..501e40f 100755
--- a/tv_grab_fr_telerama
+++ b/tv_grab_fr_telerama
@@ -409,7 +409,7 @@ $XMLTV::Get_nice::ua = LWP::UserAgent->new(
$XMLTV::Get_nice::ua->env_proxy;
$CHANNEL_GRID = '/v1/application/initialisation';
-$CHANNEL_GRID_PAGE = "/v1/programmes/telechargement";
+$CHANNEL_GRID_PAGE = "/v1/programmes/grille";
$ROOT_URL = 'https://api.telerama.fr';
#***************************************************************************
@@ -960,9 +960,9 @@ sub process_channel_grid_all_pages ( $$$$ ) {
my $page = 1;
my $json_name;
do {
- my $url = mkurl($CHANNEL_GRID_PAGE, { 'dates' => $dayoff, 'id_chaines' => $chid, 'page' => $page });
+ my $url = mkurl($CHANNEL_GRID_PAGE, { 'date' => $dayoff, 'id_chaines' => $chid, 'nb_par_page' => 3200 });
if ($show_url) { print STDERR $url."\n"; }
- if ($save_json) { $jsname = mkjsonname("", { 'dates' => $dayoff, 'id_chaines' => $chid, 'page' => $page }); }
+ if ($save_json) { $jsname = mkjsonname("", { 'date' => $dayoff, 'id_chaines' => $chid, 'nb_par_page' => 3200 }); }
$nb = process_channel_grid_page($writer, $chid, $url, $offset, $jsname, $chid_name);
$page++;
} until ($nb < 100);
Seems that there is less information available with grille method.
from tv_grab_fr_telerama.
@beavis69 Sorry, it seems to go to endless loop when I try to get today's program with:
/usr/local/tnt/tv_grab_fr_telerama --days 1 --offset 0
from tv_grab_fr_telerama.
I am not able to reproduce the endless loop, for me the last commit seems to resolve the issue (I did not check concerning the programme informations details)
from tv_grab_fr_telerama.
The problem is on Gulli channel : channel="C482.api.telerama.fr"
To-morrow is OK.
from tv_grab_fr_telerama.
Seems to be related to channel with lots of programs per day like gulli, i'll look into it.
Got the same loop on France 4
from tv_grab_fr_telerama.
@SylvainCecchetto Thanks for the comment, I'll make some more tests.
@beavis69 MANY thanks for the help !!!
from tv_grab_fr_telerama.
@beavis69 YES ! It works, Thanks a lot...
from tv_grab_fr_telerama.
Thank you for your fix @beavis69!
In the future, if you need traces just ping me ;-)
from tv_grab_fr_telerama.
Related Issues (20)
- Disparition du réalisateur HOT 11
- 404 Not Found HOT 6
- Fonctionnement HOT 1
- Plus d'EPG depuis quelques jour HOT 5
- Died at /usr/share/perl5/vendor_perl/XMLTV.pm line 1239. HOT 1
- Le grabber ne fonctionne plus HOT 2
- Crédits manquants HOT 1
- Absence de casting HOT 26
- Manque le casting pour les pièces de théâtre HOT 23
- gestion des erreurs de get_nice
- Pb d'accents HOT 5
- La récupération des programmes ne fonctionne plus ? HOT 3
- Offset need to be adjusted HOT 4
- Les credits ne sont pas lus sur un telefilm sentimental HOT 6
- progress bar already finished at /usr/local/share/perl/5.26.1/XMLTV/ProgressBar.pm line 70. HOT 4
- Problème de traitement du titre des journaux de France 3 HOT 4
- Possibilité de déactiver le triage des chaînes HOT 3
- Issue since few day : Malformed Json HOT 28
- Changement dans les API en 2021 ? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tv_grab_fr_telerama.