Skip to content

Commit

Permalink
Fixed message metadata not adding text
Browse files Browse the repository at this point in the history
  • Loading branch information
SecretShell committed Sep 11, 2020
1 parent ddcd37a commit 4644c71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions classes/prepare_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


def valid_invalid(item):
print

def sort_item(item):
class Item():
Expand All @@ -17,7 +16,6 @@ def __init__(self, option={}):
self.directory = option.get("directory", "")
self.filename = option.get("filename", "")
self.size = option.get("size", None)
print

def fix(item):
return item
Expand All @@ -31,15 +29,13 @@ def __init__(self, valid):
for items in valid:
if isinstance(items, dict):
items = [items]
print
for item in items:
x.append(sort_item(item))

x = [list(g) for k, g in groupby(
x, key=lambda x: x.post_id)]
self.sorted = x
x = sort(item).sorted
print
return x


Expand All @@ -51,11 +47,9 @@ def update_file(self):
def __init__(self, items=[]):
class Item(object):
def __init__(self, type, valid, invalid):
print
self.type = type
self.valid = valid_invalid(valid)
self.invalid = valid_invalid(invalid)
print
x = []
for item in items:
x.append(Item(**item))
Expand Down
2 changes: 1 addition & 1 deletion modules/onlyfans.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def media_scraper(result, sessions, locations, username, api_type):
continue
if "rawText" not in media_api:
media_api["rawText"] = ""
text = media_api["rawText"] if media_api["rawText"] else ""
text = media_api["rawText"] if media_api["rawText"] else media_api["text"]
matches = [s for s in ignored_keywords if s in text]
if matches:
print("Matches: ", matches)
Expand Down

0 comments on commit 4644c71

Please sign in to comment.