File prio code added, API rewrite completed, some core features rewritten for clarity
This commit is contained in:
@@ -63,7 +63,7 @@ const inlineStyle = {
|
||||
showRSSFiles = (key) => {
|
||||
let RSSTorrentsRequest = {
|
||||
MessageType: "rssTorrentsRequest",
|
||||
Payload: [this.props.RSSList[key].RSSURL]
|
||||
Payload: {"RSSURL": this.props.RSSList[key].RSSURL}
|
||||
}
|
||||
ws.send(JSON.stringify(RSSTorrentsRequest))
|
||||
|
||||
|
@@ -108,7 +108,7 @@ const inlineStyle = {
|
||||
handleAddRSSFeed = () => {
|
||||
let RSSURLSubmit = {
|
||||
MessageType: "addRSSFeed",
|
||||
Payload: [this.state.textValue]
|
||||
Payload: {"RSSURL": this.state.textValue}
|
||||
}
|
||||
ws.send(JSON.stringify(RSSURLSubmit));
|
||||
let RSSRequest = {
|
||||
|
@@ -65,12 +65,12 @@ class RSSTorrentList extends React.Component {
|
||||
console.log("element", element)
|
||||
sendMagnetLinks.push(element.TorrentLink)
|
||||
})
|
||||
let magnetLinkSubmit = {
|
||||
let magnetLinkMessage = {
|
||||
MessageType: "magnetLinkSubmit",
|
||||
Payload: sendMagnetLinks,
|
||||
}
|
||||
console.log(JSON.stringify(magnetLinkSubmit))
|
||||
ws.send(JSON.stringify(magnetLinkSubmit))
|
||||
Payload: {"MagnetLinks": [sendMagnetLinks], "Label": "RSS"}
|
||||
}
|
||||
console.log(JSON.stringify(magnetLinkMessage))
|
||||
ws.send(JSON.stringify(magnetLinkMessage))
|
||||
}
|
||||
|
||||
componentWillReceiveProps () {
|
||||
|
Reference in New Issue
Block a user