soundcloudthumbnail in itempage
This commit is contained in:
parent
c3656a06dd
commit
5ad62b5c5d
|
@ -8,6 +8,11 @@
|
|||
<body>
|
||||
<div class="id">[ID: {{ id }} | by: {{ username }}]</div>
|
||||
<div class="return"><a href="/" title="return to main">f0ck.me</a></div><br />
|
||||
{% if thumb != null %}
|
||||
<div class="thumbnail">
|
||||
<img src="{{ thumb }}" />
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="medium">
|
||||
{% if item == "video" %}
|
||||
<video src="{{ dest }}" style="max-width: 1024px" preload="auto" autoplay controls loop></video>
|
||||
|
|
|
@ -51,7 +51,7 @@ a:hover {
|
|||
color: #74c100;
|
||||
}
|
||||
|
||||
.medium {
|
||||
.medium, .thumbnail {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
|
|
@ -106,6 +106,7 @@ function Websrv(tbot, tsql, tlib) {
|
|||
size: '',
|
||||
userchannel: '',
|
||||
usernetwork: '',
|
||||
thumb: null,
|
||||
next: null,
|
||||
prev: null
|
||||
};
|
||||
|
@ -131,6 +132,7 @@ function Websrv(tbot, tsql, tlib) {
|
|||
|
||||
data.srcurl = e.src;
|
||||
data.src = urlm.parse(e.src).hostname;
|
||||
data.thumb = (e.thumb != '' && e.thumb.match(/sndcdn\.com/i))?e.thumb:null;
|
||||
|
||||
data.dest = e.dest;
|
||||
data.mime = e.mime;
|
||||
|
|
Loading…
Reference in New Issue
Block a user