Commit Graph

54 Commits

Author SHA1 Message Date
KevinMidboe 27f4b67d8b Removed print statement 2022-05-30 20:02:31 +02:00
KevinMidboe a9f51551be Convert size to human readable size using imported utils funcs 2022-05-30 20:02:21 +02:00
KevinMidboe a52f5f9690 mport version from separate file 2022-05-30 20:01:09 +02:00
KevinMidboe 1899a9f54d Updated to version 0.2 2021-07-04 15:27:11 +02:00
KevinMidboe ad7ac7c71b Renamed config with default_ prefix. 2021-07-04 15:25:34 +02:00
KevinMidboe 06e00938d5 Moved config file to /Users/kemi01/.config/torrentSearch. 2021-07-04 15:23:44 +02:00
KevinMidboe ef4789b246 Moved logger setup to __init__ file. 2021-07-04 15:23:03 +02:00
KevinMidboe 254abd7f58 Updated version number 2021-07-03 19:25:54 +02:00
KevinMidboe 88d91af382 Moved getConfig to utils. 2021-07-03 18:41:28 +02:00
KevinMidboe 9bfa913912 Setup default parameters for searchTorrentSite 2021-07-03 18:41:17 +02:00
KevinMidboe bd91939121 Save size in bytes and compute & save human_size. 2021-07-03 18:40:13 +02:00
KevinMidboe 2112147e3c Try find uploader and add to instance of Torrent 2021-07-03 18:37:16 +02:00
KevinMidboe f6987eb3f2 Encode any spaces in query as %20. 2021-07-03 18:36:05 +02:00
KevinMidboe 58c59a6a58 Created __main__ file as entry for pacakge. Updated imports. 2021-07-03 18:34:55 +02:00
KevinMidboe d875e7bedb Extended timeout duration from 10 --> 60 seconds. 2021-07-03 18:34:06 +02:00
KevinMidboe 467615b355 Use __init__ to append this package's dir to path. 2021-07-03 18:33:26 +02:00
KevinMidboe bb456d51af Added default values for SITE_OPTIONS in config file. 2018-03-09 13:54:36 +01:00
KevinMidboe 4996f20bbc Now we have a option to filter on high quality releases with the -f flag. 2018-02-26 18:19:54 +01:00
KevinMidboe 3deaed48b7 Added better import for jackett. 2017-12-22 12:53:55 +01:00
KevinMidboe d327f0fc72 To adhear to http_utils the path is split into a list. 2017-12-22 12:53:31 +01:00
KevinMidboe 98c05a380d Added docstring to all functions. 🎉 2017-12-22 12:52:38 +01:00
KevinMidboe 6bdf904a40 Changed indentation and wrote docstring for each function. 2017-12-22 12:07:49 +01:00
KevinMidboe 662c8678ee Added docstring to functions and removed unused print statements. 2017-12-22 11:52:19 +01:00
KevinMidboe 2c245a5a5c Removed unused and commented code. 2017-12-22 11:47:28 +01:00
KevinMidboe db75cba06a Rewrote most of search. Now we use docopt instead of argparser for parsing input arguments. Changed indentation to 3 spaces from 4 tabs. Added logging, this is where the parent logger for the project is defined. Main function changes things like logging level and makes sure that the query is defined. 2017-12-22 11:47:10 +01:00
KevinMidboe 46455dc04a Added representsInt to check if a string only contains numbers and ColorizeFilter to set specific colors to levels of log severity. 2017-12-22 11:43:47 +01:00
KevinMidboe 39c12b8ede Added logging and stricter import of functions from local scripts. 2017-12-22 11:42:50 +01:00
KevinMidboe a4d400f086 Added logging support. Now we also find and return seed and leech count. Size is now tested before troed to convert to int. 2017-12-22 11:42:11 +01:00
KevinMidboe b09695c0fd Http utils now supports logging on our main logger torrentSearch. Changed indentation and added better error handling for requests.urlopen which is the function that fetches from the internet. 2017-12-22 11:41:03 +01:00
KevinMidboe bab8536b0c Added init file in script folder that holds the current version of the repo. 2017-12-22 11:34:24 +01:00
KevinMidboe ceed5ba145 Wanted to add a init file here. 2017-11-19 00:29:03 +01:00
KevinMidboe d12ef55ef8 Added test base and coverage report for codecov. 2017-11-19 00:26:51 +01:00
KevinMidboe dd7885ad57 Removed unused file. 2017-11-19 00:19:29 +01:00
KevinMidboe 7da6975243 Now we don't only select our bluray, but all our matches from the query. 2017-11-19 00:08:41 +01:00
KevinMidboe cc672efed2 Since the piratebay has the file size in human readable form it is hard to sort by file size. Now we have a de-human size function in our utils that can be used to convert these sizes to byte form. 2017-11-19 00:07:40 +01:00
KevinMidboe 8ec95cf216 Added a todo for changing default site. 2017-11-18 23:44:29 +01:00
KevinMidboe 72d0c74061 forgot to add this, removed import. 2017-11-18 23:39:12 +01:00
KevinMidboe 783d9870f5 When building jackett url we no longer use, convert_query_to_percent_encoded_octets, this is now done in our build_url function in http_utils. 2017-11-18 23:38:47 +01:00
KevinMidboe 655259c146 Changed default site to piratebay and added a description on how to change it in our readme. 2017-11-18 23:34:29 +01:00
KevinMidboe bc826db4de Reads from the changed config file name and removed some variable declaration that is no longer in use. 2017-11-18 23:33:20 +01:00
KevinMidboe ff2f822b5e Renamed our config file and change the apikey variable to be upper case. This is reflected in search.py where we import this config file. Other changes in the search.py file is to so that when importing our config file we use the complete path of our file so we can run our script from anywhere, and still this file will find our config file. That is not use a relative path., 2017-11-18 23:03:24 +01:00
KevinMidboe 8586521d15 Added humansize for converting byte file sizes to human readable sizes. 2017-11-02 16:24:39 +01:00
KevinMidboe c768d1424a Now removes all items we are not intersted in. 2017-11-02 16:24:19 +01:00
KevinMidboe dd1c0cabfd Appends only the torrent object. 2017-11-02 16:23:57 +01:00
KevinMidboe 7a2c760818 Now returns human size of size 2017-11-02 16:23:40 +01:00
KevinMidboe ccf55d2654 Also added in our torrent class so that all our indexing sites can create the same class so to be easily managed under the same type. 2017-11-02 15:17:08 +01:00
KevinMidboe a8c4e84086 Changed import to not import entire datetime library. 2017-11-02 15:16:13 +01:00
KevinMidboe 48aab5785f Our main entry where we now handle our args with argparse and can now enter a query and select site to index using our -s option. 2017-11-02 15:15:53 +01:00
KevinMidboe eae828a723 A script for doing all our http funcitons like building urls and calling requests. 2017-11-02 15:15:06 +01:00
KevinMidboe db570df549 Also modular script for calling piratebay, still need a lot of cleanup, but now works. 2017-11-02 15:13:43 +01:00