{"action":"created","issue":{"url":"https://api.github.com/repos/yify-pop/yify-pop/issues/119","labels_url":"https://api.github.com/repos/yify-pop/yify-pop/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/yify-pop/yify-pop/issues/119/comments","events_url":"https://api.github.com/repos/yify-pop/yify-pop/issues/119/events","html_url":"https://github.com/yify-pop/yify-pop/issues/119","id":91956986,"number":119,"title":"Trying to add some features","user":{"login":"ArdiArtani","id":5346353,"avatar_url":"https://avatars.githubusercontent.com/u/5346353?v=3","gravatar_id":"","url":"https://api.github.com/users/ArdiArtani","html_url":"https://github.com/ArdiArtani","followers_url":"https://api.github.com/users/ArdiArtani/followers","following_url":"https://api.github.com/users/ArdiArtani/following{/other_user}","gists_url":"https://api.github.com/users/ArdiArtani/gists{/gist_id}","starred_url":"https://api.github.com/users/ArdiArtani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArdiArtani/subscriptions","organizations_url":"https://api.github.com/users/ArdiArtani/orgs","repos_url":"https://api.github.com/users/ArdiArtani/repos","events_url":"https://api.github.com/users/ArdiArtani/events{/privacy}","received_events_url":"https://api.github.com/users/ArdiArtani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-30T02:10:56Z","updated_at":"2015-07-04T21:57:01Z","closed_at":null,"body":"Can someone help me??\r\n\r\nI did my own custom design i added some features i will take a screenshot and post it later :)\r\n\r\nI want to add some features.\r\n\r\n1. Upload or enter torrent link \r\n2. Movies details in streaming page (plot,title, poster, runtime, background image etc)\r\n\r\nAnd i can't create a user account when i go to users/add I keep getting a error. "},"comment":{"url":"https://api.github.com/repos/yify-pop/yify-pop/issues/comments/118557445","html_url":"https://github.com/yify-pop/yify-pop/issues/119#issuecomment-118557445","issue_url":"https://api.github.com/repos/yify-pop/yify-pop/issues/119","id":118557445,"user":{"login":"ejb1123","id":2042552,"avatar_url":"https://avatars.githubusercontent.com/u/2042552?v=3","gravatar_id":"","url":"https://api.github.com/users/ejb1123","html_url":"https://github.com/ejb1123","followers_url":"https://api.github.com/users/ejb1123/followers","following_url":"https://api.github.com/users/ejb1123/following{/other_user}","gists_url":"https://api.github.com/users/ejb1123/gists{/gist_id}","starred_url":"https://api.github.com/users/ejb1123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejb1123/subscriptions","organizations_url":"https://api.github.com/users/ejb1123/orgs","repos_url":"https://api.github.com/users/ejb1123/repos","events_url":"https://api.github.com/users/ejb1123/events{/privacy}","received_events_url":"https://api.github.com/users/ejb1123/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T21:57:01Z","updated_at":"2015-07-04T21:57:01Z","body":"in the `movies.js` stream function add `yifyresponse = geddy.config.streamingProcesses[i].data;` to the if statement\r\nand add `yifyresponse: yifyresponse` to self.respond({param1},{parm2}) param1\r\n```\r\nthis.stream = function (req, resp, params) {\r\n    var self = this;\r\n    var streamURL = false;\r\n\r\n    var hostname = (req.headers.host.match(/:/g)) ? req.headers.host.slice(0, req.headers.host.indexOf(\":\")) : req.headers.host;\r\n\r\n    // Check if there is already a stream running for this torrent\r\n    for (var i=0; i < geddy.config.streamingProcesses.length; i++) {\r\n      if (decodeURIComponent(params.file) === geddy.config.streamingProcesses[i].torrent) {\r\n        streamURL = geddy.config.streamingProcesses[i].stream;\r\n        subtitles = geddy.config.streamingProcesses[i].subtitles;\r\n        yifyresponse = geddy.config.streamingProcesses[i].yifyresponse;\r\n      }\r\n    }\r\n\r\n    if (streamURL) {\r\n      self.respond({\r\n        params: params,\r\n        streamURL: streamURL,\r\n        subtitles: subtitles,\r\n        yifyresponse: yifyresponse\r\n      }, {\r\n        format: 'html',\r\n        template: 'app/views/main/stream'\r\n      });\r\n    } else {\r\n      // Otherwise start a new stream\r\n      streams.create(self, streamURL, hostname, params);\r\n    }\r\n  };\r\n```\r\nadd `yifyresponse:yifyResponse` to geddy.config.streamingProcesses.push and self.respond in streams.js\r\n```\r\nchildStream.start(function(pid){\r\n                  geddy.config.streamingProcesses.push({\r\n                    pid: pid,\r\n                    child: childStream,\r\n                    torrent: decodeURIComponent(params.file),\r\n                    stream: streamURL,\r\n                    data: data,\r\n                    subtitles: subtitles,\r\n                    yifyresponse:yifyResponse\r\n                  });\r\n                });\r\n\r\n                self.respond({\r\n                  params: params,\r\n                  streamURL: streamURL,\r\n                  subtitles: subtitles,\r\n                  yifyresponse:yifyResponse\r\n                }, {\r\n                  format: 'html',\r\n                  template: 'app/views/main/stream'\r\n                });\r\n```\r\nuse <%= yifyresponse.data.description_full%> in the stream.html.ejs file to get the data\r\n\r\n``` json\r\n{\r\n\r\n    \"status\":\"ok\",\r\n    \"status_message\":\"Query was successful\",\r\n    \"data\":{\r\n        \"id\":10,\r\n        \"url\":\"https://yts.to/movie/snatch-2000\",\r\n        \"imdb_code\":\"tt0208092\",\r\n        \"title\":\"Snatch.\",\r\n        \"title_long\":\"Snatch. (2000)\",\r\n        \"slug\":\"snatch-2000\",\r\n        \"year\":2000,\r\n        \"rating\":8.3,\r\n        \"runtime\":102,\r\n        \"genres\":[\r\n            \"Comedy\",\r\n            \"Crime\"\r\n        ],\r\n        \"language\":\"English\",\r\n        \"mpa_rating\":\"R\",\r\n        \"download_count\":269271,\r\n        \"like_count\":293,\r\n        \"rt_critics_score\":73,\r\n        \"rt_critics_rating\":\"Fresh\",\r\n        \"rt_audience_score\":93,\r\n        \"rt_audience_rating\":\"Upright\",\r\n        \"description_intro\":\"Unscrupulous boxing promoters, violent bookmakers, a Russian gangster, incompetent amateur robbers, and supposedly Jewish jewelers fight to track down a priceless stolen diamond.\",\r\n        \"description_full\":\"Turkish and his close friend/accomplice Tommy get pulled into the world of match fixing by the notorious Brick Top. Things get complicated when the boxer they had lined up gets badly beaten by Pitt, a 'pikey' ( slang for an Irish Gypsy)- who comes into the equation after Turkish, an unlicensed boxing promoter wants to buy a caravan off the Irish Gypsies. They then try to convince Pitt not only to fight for them, but to lose for them too. Whilst all this is going on, a huge diamond heist takes place, and a fistful of motley characters enter the story, including 'Cousin Avi', 'Boris The Blade', 'Franky Four Fingers' and 'Bullet Tooth Tony'. Things go from bad to worse as it all becomes about the money, the guns, and the damned dog!\",\r\n        \"yt_trailer_code\":\"PvQnBwDejfw\",\r\n        \"date_uploaded\":\"2011-08-02 22:12:51\",\r\n        \"date_uploaded_unix\":1312279971,\r\n        \"torrents\":[\r\n            {\r\n                \"url\":\"https://yts.to/torrent/download/513EC39C73135C43AACACECDC78B300161902A45.torrent\",\r\n                \"hash\":\"513EC39C73135C43AACACECDC78B300161902A45\",\r\n                \"quality\":\"720p\",\r\n                \"resolution\":\"1280*688\",\r\n                \"framerate\":23.976,\r\n                \"seeds\":351,\r\n                \"peers\":43,\r\n                \"size\":\"449.71 MB\",\r\n                \"size_bytes\":471555113,\r\n                \"download_count\":269271,\r\n                \"date_uploaded\":\"2011-08-02 22:12:51\",\r\n                \"date_uploaded_unix\":1312279971\r\n            }\r\n        ]\r\n    },\r\n    \"@meta\":{\r\n        \"server_time\":1436019943,\r\n        \"server_timezone\":\"Pacific/Auckland\",\r\n        \"api_version\":2,\r\n        \"execution_time\":\"10.9 ms\"\r\n    }\r\n\r\n}\r\n```"}}