Merge pull request #901 from NicolasSc69/update_services_canalu_899

fix uri & frame url - issue #899
This commit is contained in:
Amauri CHAMPEAUX 2022-03-10 11:15:51 +01:00 committed by GitHub
commit 7759f5f8e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4866,14 +4866,14 @@ tarteaucitron.services.canalu = {
"key": "canalu", "key": "canalu",
"type": "video", "type": "video",
"name": "Canal-U.tv", "name": "Canal-U.tv",
"uri": "https://www.canal-u.tv/utilisation-des-cookies/", "uri": "https://www.canal-u.tv/conditions-generales-utilisations",
"needConsent": true, "needConsent": true,
"cookies": [], "cookies": [],
"js": function () { "js": function () {
"use strict"; "use strict";
tarteaucitron.fallback(['canalu_player'], function (x) { tarteaucitron.fallback(['canalu_player'], function (x) {
var video_title = tarteaucitron.fixSelfXSS(x.getAttribute("videoTitle")), var video_title = tarteaucitron.fixSelfXSS(x.getAttribute("videoTitle")),
frame_url = 'https://www.canal-u.tv/video/embed_code_plugin.1/' + video_title; frame_url = 'https://www.canal-u.tv/embed/' + video_title;
return '<div style="position:relative;padding-bottom:56.25%;padding-top:10px;height:0;overflow:hidden;">' + return '<div style="position:relative;padding-bottom:56.25%;padding-top:10px;height:0;overflow:hidden;">' +
'<iframe src="' + frame_url + '?width=100%&amp;height=100%" ' + '<iframe src="' + frame_url + '?width=100%&amp;height=100%" ' +