“Widget:BilibiliVideo”的版本间的差异

来自Ballance Wiki
跳转至: 导航搜索
第277行: 第277行:
 
                             var href = title_text.attr('href');
 
                             var href = title_text.attr('href');
 
                             if (list[index] !== undefined && list[index].VideoCid !== undefined) {
 
                             if (list[index] !== undefined && list[index].VideoCid !== undefined) {
                                 iframe.attr('src', 'player.bilibili.com/player.html?aid=' + id + '&cid=' + list[index].VideoCid + '&page=' + _page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
+
                                 iframe.attr('src', 'https://player.bilibili.com/player.html?aid=' + id + '&cid=' + list[index].VideoCid + '&page=' + _page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
 
                                 // iframe.attr('src', 'https://www.bilibili.com/blackboard/html5player.html?aid=' + id + '&cid=' + list[index].VideoCid + '&enable_ssl=1&crossDomain=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
 
                                 // iframe.attr('src', 'https://www.bilibili.com/blackboard/html5player.html?aid=' + id + '&cid=' + list[index].VideoCid + '&enable_ssl=1&crossDomain=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
 
                                 if (iframeContainer.is(':visible')) iframe.execAppend();
 
                                 if (iframeContainer.is(':visible')) iframe.execAppend();
第288行: 第288行:
 
                                 // //player.bilibili.com/player.html?aid=65168654&cid=113108903&page=1
 
                                 // //player.bilibili.com/player.html?aid=65168654&cid=113108903&page=1
 
                                 // iframe.attr('src', 'https://www.bilibili.com/blackboard/player.html?aid=' + id + '&page=' + _page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
 
                                 // iframe.attr('src', 'https://www.bilibili.com/blackboard/player.html?aid=' + id + '&page=' + _page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
                                 iframe.attr('src', 'player.bilibili.com/player.html?aid=' + id + '&page=' + _page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
+
                                 iframe.attr('src', 'https://player.bilibili.com/player.html?aid=' + id + '&page=' + _page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
 
                                 if (iframeContainer.is(':visible')) iframe.execAppend();
 
                                 if (iframeContainer.is(':visible')) iframe.execAppend();
 
                                 else iframe.data('ready', true);
 
                                 else iframe.data('ready', true);
第296行: 第296行:
 
                             title_text.text((title || 'av' + id) + ([0, 1].indexOf(page) === -1 ? ' (' + page + ')' : '') + (tIsInvalid ? '' : '[视频从' + time + '开始播放]'));
 
                             title_text.text((title || 'av' + id) + ([0, 1].indexOf(page) === -1 ? ' (' + page + ')' : '') + (tIsInvalid ? '' : '[视频从' + time + '开始播放]'));
 
                             if (e && e.responseJSON && e.responseJSON.message && e.responseJSON.message === "Authentication is required for accessing this video.") title_text.parent().append('<sup title="“Bilibili采用会员制,大部分投稿视频会员与游客都可以观看,\n  但部分视频在UP主设定下只有会员才可以观看(这些视频常被称为‘只有会员才知道的世界’)。”\n  - Bilibili#用户制度 @ ZhMoegirl\n在这种情况下我们无法为您解析视频及其分P标题、分P数量等,也不能强制使用H5播放器。\n但如果您已经登录B站并且设置默认播放器为H5播放器时此处仍会是H5播放器。">(只有会员才知道的世界)</sup>');
 
                             if (e && e.responseJSON && e.responseJSON.message && e.responseJSON.message === "Authentication is required for accessing this video.") title_text.parent().append('<sup title="“Bilibili采用会员制,大部分投稿视频会员与游客都可以观看,\n  但部分视频在UP主设定下只有会员才可以观看(这些视频常被称为‘只有会员才知道的世界’)。”\n  - Bilibili#用户制度 @ ZhMoegirl\n在这种情况下我们无法为您解析视频及其分P标题、分P数量等,也不能强制使用H5播放器。\n但如果您已经登录B站并且设置默认播放器为H5播放器时此处仍会是H5播放器。">(只有会员才知道的世界)</sup>');
                             iframe.attr('src', 'https://www.bilibili.com/blackboard/player.html?aid=' + id + '&page=' + page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
+
                             iframe.attr('src', 'https://player.bilibili.com/player.html?aid=' + id + '&page=' + page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
 +
                            // iframe.attr('src', 'https://www.bilibili.com/blackboard/player.html?aid=' + id + '&page=' + page + '&enable_ssl=1&as_wide=1' + (tIsInvalid ? '' : '&t=' + t));
 
                             if (iframeContainer.is(':visible')) iframe.execAppend();
 
                             if (iframeContainer.is(':visible')) iframe.execAppend();
 
                             else iframe.data('ready', true);
 
                             else iframe.data('ready', true);

2019年8月30日 (五) 21:29的版本

摘抄自萌娘百科,详细情况请点击链接查看。