mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 12:15:32 +08:00
@@ -24,7 +24,7 @@ module.exports = async () => {
|
||||
url: url,
|
||||
});
|
||||
|
||||
item.description = `<video src="${videoDetail.hls_url}" controls poster="${video.img.replace(/\?.+/g, '')}" style="width: 100%"></video>`;
|
||||
item.description = `<video src="${videoDetail.hls_url}" controls="controls" poster="${video.img.replace(/\?.+/g, '')}" style="width: 100%"></video>`;
|
||||
return Promise.resolve(item);
|
||||
})
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ const ProcessVideo = (content) => {
|
||||
const link = v.attribs.src;
|
||||
switch (v.attribs.site) {
|
||||
case 'qiniu':
|
||||
content(`<video width="100%" controls> <source src="${link}" type="video/mp4"> Your RSS reader does not support video playback. </video>`).insertAfter(v);
|
||||
content(`<video width="100%" controls="controls"> <source src="${link}" type="video/mp4"> Your RSS reader does not support video playback. </video>`).insertAfter(v);
|
||||
content(v).remove();
|
||||
break;
|
||||
case 'youku':
|
||||
|
||||
@@ -84,7 +84,7 @@ module.exports = async (ctx) => {
|
||||
}
|
||||
|
||||
if (media[index][i].video) {
|
||||
content += `<video width="100%" controls> <source src="${media[index][i].video}" type="video/mp4"> Your RSS reader does not support video playback. </video>`;
|
||||
content += `<video width="100%" controls="controls"> <source src="${media[index][i].video}" type="video/mp4"> Your RSS reader does not support video playback. </video>`;
|
||||
video++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,8 @@ module.exports = async (ctx) => {
|
||||
const duration = ~~(pg.duration / 1000);
|
||||
const itunes_duration = `${(duration / 60).toFixed(0).padStart(2, '0')}:${(duration % 60).toFixed(0).padStart(2, '0')}`;
|
||||
|
||||
const html = image + description + `<div><audio src="http://music.163.com/song/media/outer/url?id=${pg.mainTrackId}.mp3" controls></audio><p>时长: ${itunes_duration}</p><p><a href="${src}">查看节目</a></p></div>`;
|
||||
const html =
|
||||
image + description + `<div><audio src="http://music.163.com/song/media/outer/url?id=${pg.mainTrackId}.mp3" controls="controls"></audio><p>时长: ${itunes_duration}</p><p><a href="${src}">查看节目</a></p></div>`;
|
||||
|
||||
return {
|
||||
title: pg.name,
|
||||
|
||||
@@ -36,7 +36,7 @@ const ProcessFeed = ({ data = [] }) => {
|
||||
}, {});
|
||||
|
||||
if (video.url) {
|
||||
content = `<br><video src="${video.url}" controls poster="${getOrigionImg(media.media_url_https)}" style="width: 100%"></video>`;
|
||||
content = `<br><video src="${video.url}" controls="controls" poster="${getOrigionImg(media.media_url_https)}" style="width: 100%"></video>`;
|
||||
}
|
||||
|
||||
return content;
|
||||
|
||||
Reference in New Issue
Block a user