Skip to content

Commit

Permalink
fix(163/music/djradio): remove duplicate part with embedded tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cscnk52 committed Dec 20, 2024
1 parent 8952721 commit e81e9a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions lib/routes/163/music/djradio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,10 @@ async function handler(ctx) {
const list = programs.map((pg) => {
const description = (pg.description || '').split('\n').map((p) => p);
const duration = Math.trunc(pg.duration / 1000);
const mm_ss_duration = `${(duration / 60).toFixed(0).padStart(2, '0')}:${(duration % 60).toFixed(0).padStart(2, '0')}`;

const html = art(path.join(__dirname, '../templates/music/djradio-content.art'), {
pg,
description,
itunes_duration: mm_ss_duration,
});

return {
Expand Down
5 changes: 0 additions & 5 deletions lib/routes/163/templates/music/djradio-content.art
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,3 @@
<p>{{$value}}</p>
{{/each}}
</div>
<div>
<audio src="https://music.163.com/song/media/outer/url?id={{pg.mainTrackId}}.mp3" controls="controls"></audio>
<p>时长: {{itunes_duration}}</p>
<p><a href="https://music.163.com/program/{{pg.id}}">查看节目</a></p>
</div>

0 comments on commit e81e9a5

Please sign in to comment.