Ignore by default, only dl w/ hashtag
This commit is contained in:
parent
49c800ab39
commit
4f7c84c54c
1 changed files with 4 additions and 4 deletions
|
@ -119,13 +119,13 @@ def handle_hashtag(bot, update):
|
||||||
# noinspection PyBroadException
|
# noinspection PyBroadException
|
||||||
def handle(urls, message, download, filename=None):
|
def handle(urls, message, download, filename=None):
|
||||||
try:
|
try:
|
||||||
logger.info("Downloading %s" % urls)
|
|
||||||
hashtag = get_first_hashtag(message)
|
hashtag = get_first_hashtag(message)
|
||||||
|
if hashtag is None:
|
||||||
if hashtag == 'IGNORE':
|
logger.info("Ignoring %s due to no hashtag present..." % urls)
|
||||||
message.reply_text('Ignoring...')
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
logger.info("Downloading %s" % urls)
|
||||||
|
|
||||||
reply = 'Downloading'
|
reply = 'Downloading'
|
||||||
if hashtag:
|
if hashtag:
|
||||||
mkdir_p(f'{OUT_DIR}/{hashtag}')
|
mkdir_p(f'{OUT_DIR}/{hashtag}')
|
||||||
|
|
Loading…
Reference in a new issue