Skip to content

Commit

Permalink
feat: filter full bd rips from torrentapi
Browse files Browse the repository at this point in the history
  • Loading branch information
newt-sc committed Sep 4, 2019
1 parent 27262a0 commit 967fbbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"author": "Unknown",
"version":"2.5.1",
"version":"2.5.2",
"name":"a4kScrapers",
"update_directory": "https://github.com/a4k-openproject/a4kScrapers/archive/",
"remote_meta": "https://raw.githubusercontent.com/newt-sc/a4kScrapers/master/meta.json",
Expand Down
3 changes: 2 additions & 1 deletion providers/a4kScrapers/en/torrent/torrentapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def _search_request(self, url, query, force_token_refresh=False):
return response['torrent_results']

def _soup_filter(self, response):
return response
ignored_categories = set(['Movies/Full BD'])
return [i for i in response if i['category'] not in ignored_categories]

def _title_filter(self, el):
return el['title']
Expand Down

0 comments on commit 967fbbc

Please sign in to comment.