This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -177,12 +177,6 @@ func (s *Server) serveRSS(w http.ResponseWriter, r *http.Request) {
177
177
results = append (results , ritem )
178
178
}
179
179
180
- b , err := json .Marshal (results )
181
- if err != nil {
182
- http .Error (w , err .Error (), http .StatusInternalServerError )
183
- return
184
- }
185
180
w .Header ().Set ("Content-Type" , "application/json" )
186
- w .WriteHeader (http .StatusOK )
187
- w .Write (b )
181
+ json .NewEncoder (w ).Encode (results )
188
182
}
Original file line number Diff line number Diff line change @@ -93,16 +93,15 @@ <h4 class="ui dividing header">
93
93
</ td >
94
94
< td class ="size " ng-if ="r.size "> {{ r.size }}</ td >
95
95
< td class ="users ">
96
- < span class ="seeds "> {{ r.seeds }}</ span >
96
+ < span class ="seeds " title =" seeds " > {{ r.seeds }}</ span >
97
97
< br />
98
- < span class ="peers "> {{ r.peers }}</ span >
98
+ < span class ="peers " title =" peers " > {{ r.peers }}</ span >
99
99
</ td >
100
100
< 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 >
102
102
</ td >
103
103
< 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 >
106
105
</ td >
107
106
</ tr >
108
107
</ table >
You can’t perform that action at this time.
0 commit comments