File prio code added, API rewrite completed, some core features rewritten for clarity

This commit is contained in:
2018-02-15 22:49:11 -05:00
parent b843cfc11b
commit c5b86597cb
22 changed files with 215 additions and 234 deletions

View File

@@ -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))

View File

@@ -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 = {

View File

@@ -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 () {