diff --git a/.gitmodules b/.gitmodules index 54ce5f0..2da9723 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "app/torrent_search"] - path = app/torrent_search - url = https://github.com/kevinmidboe/torrent_search +[submodule "torrent_search"] + path = torrent_search + url = git@github.com:KevinMidboe/torrent_search.git diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..8e46b3f --- /dev/null +++ b/ISSUE_TEMPLATE.md @@ -0,0 +1,23 @@ +## What kind of an issue is this? + +- [ ] Bug report +- [ ] Feature request + +## Expected behaviour? + + + +## Current behaviour? +*if this is a bug report* +
+ + + +## Steps to reproduce behaviour? +*if this is a bug report* +
+ + + +## Screenshot? 📷 +*A image tells a thousands words* diff --git a/app/torrent_search b/app/torrent_search deleted file mode 160000 index bf9ed49..0000000 --- a/app/torrent_search +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bf9ed49a86ff873b3046a442878f3ae3b87878a4 diff --git a/seasoned_api/src/pirate/pirateRepository.js b/seasoned_api/src/pirate/pirateRepository.js index dcb7895..e0c2e95 100644 --- a/seasoned_api/src/pirate/pirateRepository.js +++ b/seasoned_api/src/pirate/pirateRepository.js @@ -21,10 +21,10 @@ async function find(searchterm, callback) { const options = { pythonPath: '/usr/bin/python3', // pythonPath: '/Library/Frameworks/Python.framework/Versions/3.6/bin/python3', - args: [searchterm, '-s', 'jackett', '--print'], + args: [searchterm, '-s', 'jackett', '-f', '--print'], }; - PythonShell.run('../app/torrent_search/torrentSearch/search.py', options, callback); + PythonShell.run('../torrent_search/torrentSearch/search.py', options, callback); // PythonShell does not support return } @@ -50,7 +50,7 @@ async function SearchPiratebay(query) { return await new Promise((resolve, reject) => find(query, (err, results) => { if (err) { /* eslint-disable no-console */ - console.log('THERE WAS A FUCKING ERROR!', err); + console.log('THERE WAS A FUCKING ERROR!\n', err); reject(Error('There was a error when searching for torrents')); } if (results) { diff --git a/torrent_search b/torrent_search new file mode 160000 index 0000000..4996f20 --- /dev/null +++ b/torrent_search @@ -0,0 +1 @@ +Subproject commit 4996f20bbc315b2630370b371266b2d26221fe7e