Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 1bc69e1

Browse files
committed
add titles
1 parent 024e066 commit 1bc69e1

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

server/server_rss.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,6 @@ func (s *Server) serveRSS(w http.ResponseWriter, r *http.Request) {
177177
results = append(results, ritem)
178178
}
179179

180-
b, err := json.Marshal(results)
181-
if err != nil {
182-
http.Error(w, err.Error(), http.StatusInternalServerError)
183-
return
184-
}
185180
w.Header().Set("Content-Type", "application/json")
186-
w.WriteHeader(http.StatusOK)
187-
w.Write(b)
181+
json.NewEncoder(w).Encode(results)
188182
}

static/files/template/omni.html

+4-5
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,15 @@ <h4 class="ui dividing header">
9393
</td>
9494
<td class="size" ng-if="r.size">{{ r.size }}</td>
9595
<td class="users">
96-
<span class="seeds">{{ r.seeds }}</span>
96+
<span class="seeds" title="seeds">{{ r.seeds }}</span>
9797
<br />
98-
<span class="peers"> {{ r.peers }}</span>
98+
<span class="peers" title="peers">{{ r.peers }}</span>
9999
</td>
100100
<td class="controls">
101-
<i ng-click="submitSearchItem(r)" class="ui green magnet icon" title="load the magnet link"></i>
101+
<i ng-click="submitSearchItem(r)" class="ui green magnet icon" title="load magnet link"></i>
102102
</td>
103103
<td ng-if="r.torrent" class="controls">
104-
<i ng-click="submitTorrentItem(r)" class="cloud green download alternate icon"
105-
title="load the .torrent file"></i>
104+
<i ng-click="submitTorrentItem(r)" class="cloud green download alternate icon" title="load .torrent file"></i>
106105
</td>
107106
</tr>
108107
</table>

0 commit comments

Comments
 (0)