Files
RSSHub/lib/routes/psyche/templates/video.art
T
Enoch MaandTony ec4a03e221 feat(route): support psyche.co (#15772)
* support psyche

* Update lib/routes/psyche/topic.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/routes/psyche/topic.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update lib/routes/psyche/topic.ts

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* graphql + _next/data/buildID

* add link

* delete json

* cache link

* hotfix: redundent 's'

---------
2024-06-02 13:15:26 +08:00

11 lines
411 B
Arturo

{{ set video = article.hosterId }}
{{ if article.hoster === 'vimeo' }}
{{ set video = "https://player.vimeo.com/video/" + video + "?dnt=1"}}
{{ else if article.hoster == 'youtube' }}
{{ set video = "https://www.youtube-nocookie.com/embed/" + video }}
{{ /if }}
<iframe width="672" height="377" src="{{ video }}" frameborder="0" allowfullscreen></iframe>
{{@ article.credits}}
{{@ article.description}}