Changed gitmodules config file and moved the submodule from app to a new directory inculde. Also changed default search site to jackett.
This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,3 +1,3 @@
|
|||||||
[submodule "app/torrent_search"]
|
[submodule "torrent_search"]
|
||||||
path = app/torrent_search
|
path = include/torrent_search
|
||||||
url = https://github.com/kevinmidboe/torrent_search
|
url = https://github.com/kevinmidboe/torrent_search
|
||||||
|
|||||||
0
include/.gitignore
vendored
Normal file
0
include/.gitignore
vendored
Normal file
@@ -5,10 +5,10 @@ async function find(searchterm, callback) {
|
|||||||
const options = {
|
const options = {
|
||||||
pythonPath: '/usr/bin/python3',
|
pythonPath: '/usr/bin/python3',
|
||||||
// pythonPath: '/Library/Frameworks/Python.framework/Versions/3.6/bin/python3',
|
// pythonPath: '/Library/Frameworks/Python.framework/Versions/3.6/bin/python3',
|
||||||
args: [searchterm, '-s', 'piratebay', '--print'],
|
args: [searchterm, '-s', 'jackett', '-f', '--print'],
|
||||||
};
|
};
|
||||||
|
|
||||||
PythonShell.run('../app/torrent_search/torrentSearch/search.py', options, callback);
|
PythonShell.run('../include/torrent_search/torrentSearch/search.py', options, callback);
|
||||||
// PythonShell does not support return
|
// PythonShell does not support return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ async function SearchPiratebay(query) {
|
|||||||
return await new Promise((resolve, reject) => find(query, (err, results) => {
|
return await new Promise((resolve, reject) => find(query, (err, results) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
console.log('THERE WAS A FUCKING ERROR!');
|
console.log('THERE WAS A FUCKING ERROR!\n', err);
|
||||||
reject(Error('There was a error when searching for torrents'));
|
reject(Error('There was a error when searching for torrents'));
|
||||||
}
|
}
|
||||||
if (results) {
|
if (results) {
|
||||||
|
|||||||
Reference in New Issue
Block a user